I have the following recipe:
----------
FORMAIL = "/usr/bin/formail"
TAG = ""
to_ = '^((Apparently-)?To|Cc|Resent-From|Reply-To):(.*\<)?'
:0E
*$ $to_()openldap-software(_at_)OpenLDAP(_dot_)com
{
TAG = "[OpenLDAP]"
}
MATCH
:0 fhw
* ! TAG ?? ^^^^
* ^Subject: *\/[^ ].*
| $FORMAIL -I "Subject: $TAG ${MATCH:-<no subject>}"
----------
And I have two questions:
a) how can I make it so that it's case INsensitive?
b) Occasionally someone will send a message without a subject, and
I would like those messages to still be tagged, however that's
not happening. What'd I miss?
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley(_at_)pcraft(_dot_)com> . 303.442.6410
x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail