From: Andreas Tindlund <tindlund(_at_)stud(_dot_)ntnu(_dot_)no>
:0
^TO: fg(_at_)stud(_dot_)ntnu(_dot_)no
FG
doesn't work. I don't understand why...
The problem seems to be that you are using "^TO" (with capital "O"),
which is a special regex shortcut to procmail.
From "man procmailrc":
If the regular expression contains `^TO' it will be substituted by
`(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To)
:(.*[^a-zA-Z])?)', which should catch all destination specifications
containing a specific word.
This should work if all mail from the list matches the headers you showed:
:0: # note that we want the second colon, which gives a lockfile
* ^To:(_dot_)*fg(_at_)stud(_dot_)ntnu(_dot_)no
FG
Note the asterisk before "^To:" on the condition line, which you also failed
to supply.
Probably better would be actually to use the "^TO" substitution:
:0:
* ^TOfg(_at_)stud(_dot_)ntnu(_dot_)no
FG
Still better would be to use "^TO_", which is a newer regex. Check your
version of procmail and man procmailrc to see if it is supported; and, if
so, use it:
:0:
* ^TO_fg(_at_)stud(_dot_)ntnu(_dot_)no
FG
See also "man procmailex" for examples, and to make sure you don't forget
essentials like the asterisk that you'll need to keep your recipes working.
--
dman(_at_)nomotek(_dot_)com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail