From: Michael Packer <pac(_at_)stingrayboats(_dot_)com>
:0 c:
* ! ^TO_pac
* ! ^FROM_.*mysql.com
/var/spool/mail/backup
does this copy all mail to /var/spool/mail/backup except for messages
coming in to "pac" AND anything coming from any address at mysql.com?
No.
Read man procmailrc. There is no such thing as "^FROM_".
Since we don't expect a header to say "From_", this will
never match anything. You probably want ^From.* .
Also, you use the word "AND" (and even capitalize it for
emphasis). I take it you mean "OR". When you say
"Not 'A' AND Not 'B'" (which is what your recipe says),
and then turn it around linguistically using the verbal
equivalent of associative property in math, it must
become ORed. That is,
Not 'A' AND Not 'B' == Not ( 'A' OR 'B' )
See DeMorgan's Law. If you want to ask if your recipe
(with ^From.* corrected) means to clone all mail to backup
except messages coming in to "pac" OR anything from mysql.com,
the answer is: yes.
(You also might want to quote with a forward-slash[1] the period in
"mysql.com", if you care about that level of precision; because
without being quoted, the dot means to procmail "any single character"
[except newline].)
--
\ .-. .-. .-. .-. .-. .-. .-. /
\-d-/-m-\-a-/-n-\-(_at_)-/-n-\-e-/-t-\-c-/-o-\-m-/-.-\-c-/-o-\-m-/
'-' '-' '-' '-' '-' '-' '-' '-'
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail