« Plugin Manager Bugfix Release | Main | Teaching Mutt about the wonders of Microsoft »

January 03, 2004

How files are installed by the Plugin Manager

I received a request a couple weeks ago to explain specifically how the Plugin Manager works. So, here is the list of rules that it currently follows when installing a plugin:

  • If the file ends in .pl:
    • Evaluate it
    • Test to see if it creating any tags or filters using the regular plugin API
      • If so, place the file in the plugins/ directory
      • Otherwise, place it in the base directory
  • If the file ends in .doc, .htm, .html, or .txt:
    • Place the file in the plugins/docs/Plugin-Name/ directory
  • If the file ends in .pm:
    • Attempt to extract a package name (e.g. package A::B::C;)
    • Place the file based on the package name in the extlib/ directory (e.g extlib/A/B/C.pm)
  • Otherwise, place it in the plugins/docs/Plugin-Name/ directory

Posted by rayners at January 3, 2004 02:42 AM

Trackback Pings

TrackBack URL for this entry:
http://mt.rayners.org/mt-tb.cgi/262

Comments

Post a comment




Remember Me?

(you may use HTML tags for style)