hi all I am trying to filter emails to a user (weather) based on the subject: :0 *^Subject:.*Weather | /usr/bin/formail | /path/to/executable *^Subject:.*Tornado | /usr/bin/formail | /path/to/executable All it does is deliver the email to the weather inbox. For testing I tried. echo 1 | mail -s "Tornado" weather Enabling verbose and log file gives me: From root at devcentos5x64.msgnet.com Fri Mar 13 10:04:07 2009 Subject: Tornado Folder: /var/mail/weather 671 Seems like it should work... What did I miss. Jerry
Jerry Geis wrote:> hi all > > I am trying to filter emails to a user (weather) based on the subject: > > :0 > *^Subject:.*Weather > | /usr/bin/formail | /path/to/executable > > *^Subject:.*Tornado > | /usr/bin/formail | /path/to/executable > > All it does is deliver the email to the weather inbox. > > Seems like it should work... What did I miss.That above there is only *one* recipe. You probably need two. Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20090313/e9f30b78/attachment-0003.sig>