Changes between Version 110 and Version 111 of Email2tracConfiguration


Ignore:
Timestamp:
01/04/11 15:01:07 (12 years ago)
Author:
bas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Email2tracConfiguration

    v110 v111  
    283283 * ''closed'' it will execute the ''reopen'' workflow.
    284284 * ''infoneeded'' it will execute the  ''infoneeded'' workflow
     285
     286== Parentdir ==
     287
     288This variable is set in the ''[DEFAULT]'' section of email2trac.conf, eg:
     289{{{
     290[DEFAULT]
     291parentdir: /data/trac/oss/projects
     292
     293[email2trac]
     294debug: 1
     295
     296[pbs-python]
     297project: /data/trac/pbs_python-project
     298}}}
     299
     300In this example the parent directory is ''/data/trac/oss/projects''.  You can override the project directory per section, see ''section pbs-python''.  In the above example the project directory for ''section email-debug'' is ''/data/trac/oss/projects/email2trac''
     301
     302With this new feature you can use one script for aliases. Here is an example from ''sto add iti dot upvdot es''
     303{{{
     304To avoid touching the postfix alias database I'm using addresses of the form trac+PROJECT@mail.domain (I have recipient_delimiter = + on the postfix main.cf file) and the alias file has an entry like the following:
     305 
     306 * trac: /usr/local/sbin/email2trac-alias
     307
     308Where /usr/local/sbin/email2trac-alias is a script that does more or less the following:
     309
     310#!/bin/sh
     311parentdir="/srv/trac"
     312if [ -f "$parentdir/$EXTENSION/conf/trac.ini" ]; then
     313  exec /usr/local/bin/run_email2trac --project="$EXTENSION"
     314fi
     315exit 67 # Unknown user
     316}}}