| 110 | === Using procmail with fetchmail & email2trac === |
| 111 | You may want to filter bounced messages from ever getting to email2trac, otherwise you can end up in an infite loop. |
| 112 | Simply change your mda in your .fetchmailrc to procmail and create a .procmailrc like this: |
| 113 | {{{ |
| 114 | PATH=/bin:/usr/bin:/usr/bin |
| 115 | MAILDIR=$HOME/Mail #you'd better make sure it exists |
| 116 | DEFAULT=$MAILDIR/mbox #completely optional |
| 117 | LOGFILE=$MAILDIR/from #recommended |
| 118 | |
| 119 | :0 h c |
| 120 | * !^FROM_DAEMON |
| 121 | * !^X-Loop: your.email2trac@emai.address |
| 122 | | /usr/local/bin/run_email2trac |
| 123 | }}} |
| 124 | |
| 125 | Now only messages that aren't from a daemon or bounced will make it to email2trac. |
| 126 | |