| 285 | |
| 286 | == Parentdir == |
| 287 | |
| 288 | This variable is set in the ''[DEFAULT]'' section of email2trac.conf, eg: |
| 289 | {{{ |
| 290 | [DEFAULT] |
| 291 | parentdir: /data/trac/oss/projects |
| 292 | |
| 293 | [email2trac] |
| 294 | debug: 1 |
| 295 | |
| 296 | [pbs-python] |
| 297 | project: /data/trac/pbs_python-project |
| 298 | }}} |
| 299 | |
| 300 | In 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 | |
| 302 | With this new feature you can use one script for aliases. Here is an example from ''sto add iti dot upvdot es'' |
| 303 | {{{ |
| 304 | To 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 | |
| 308 | Where /usr/local/sbin/email2trac-alias is a script that does more or less the following: |
| 309 | |
| 310 | #!/bin/sh |
| 311 | parentdir="/srv/trac" |
| 312 | if [ -f "$parentdir/$EXTENSION/conf/trac.ini" ]; then |
| 313 | exec /usr/local/bin/run_email2trac --project="$EXTENSION" |
| 314 | fi |
| 315 | exit 67 # Unknown user |
| 316 | }}} |