Changes between Version 1 and Version 2 of MailToTracPlugin


Ignore:
Timestamp:
Apr 23, 2009 6:33:59 PM (5 years ago)
Author:
k0s
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MailToTracPlugin

    v1 v2  
    33== Description == 
    44 
    5 provides a command line script and extension point that allows email messages to be handled by Trac plugins 
     5provides a command line script and extension point that allows email messages to be handled by Trac plugins.  This ticket provides a command-line script, `mail2trac` which may be called by an [http://en.wikipedia.org/wiki/Mail_transfer_agent MTA] (e.g. [http://www.postfix.org/ postfix]) to open a Trac environment and run through each enabled [source:mailtotracplugin/0.11/mail2trac/interface.py IEmailHandler] and executes its `invoke()` method if its `match()` method returns `True`.  If invoke returns an [http://docs.python.org/library/email email] message, then subsequent `IEmailHandler`s will also process the message.  If `None` is returned, then the message is consumed and execution stops. 
     6 
     7To enable the plugin for `postfix`, add an appropriate line to the aliases file (usually `/etc/aliases` or `/etc/postfix/aliases` and then refreshing the aliases database (see [http://www.postfix.org/aliases.5.html man aliases]).  The `mail2trac` script takes a `-p` command line argument for the path to the project environment.  The incoming email address should equal 
     8 
     9{{{ 
     10[notification] 
     11smtp_replyto = 
     12}}} 
     13 
     14in the [http://trac.edgewall.org/wiki/TracIni trac.ini] file. 
     15 
     16As an example, if `smtp_replyto` is set to `foo@example.com` and the project is in `/var/trac/bar`, the `aliases` file on `example.com` should have a line like 
     17 
     18{{{ 
     19foo: "|/path/to/mail2trac -p /var/trac/bar" 
     20}}} 
     21 
    622 
    723== Bugs/Feature Requests ==  
     
    1935== Source == 
    2036 
    21 You can check out MailToTracPlugin from [http://trac-hacks.org/svn/mailtotracplugin here] using Subversion, or [source:mailtotracplugin browse the source] with Trac. 
     37You can check out MailToTracPlugin from [http://trac-hacks.org/svn/mailtotracplugin/0.11 here] using Subversion, or [source:mailtotracplugin browse the source] with Trac. 
    2238 
    2339== Example == 
    2440 
    25 The email2ticket is an example plugin to convert an email message to a ticket.  This plugin is still in a very fledgling state and doesn't have much functionality as of yet. 
     41[source:mailtotracplugin/0.11/mail2trac/email2ticket.py email2ticket] is an example [source:mailtotracplugin/0.11/mail2trac/interface.py IEmailHandler] plugin to convert an email message to a ticket. 
    2642 
    2743== Recent Changes ==