procmail
[Top] [All Lists]

Re: NEED TO SEPARATE (SPECIFIC) ATTACHMENTS

2000-12-13 18:26:03
At 04:36 PM 12/13/2000, you wrote:
I must be doing something wrong -- it didn't work; I used:

VERBOSE=on
LOGFILE=/etc/.procmail-log

*
9876543210^0
^Content-[-a-z0-9_]+:.*="?[^"]*\.(vb[se]|ws[fh]|hta|shs|exe)
* 9876543210^0 B ??
^Content-[-a-z0-9_]+:.*($[  ].*)*="?[^"]*\.(vb[se]|exe|ws[fh]|h$
/dump                     /\
                          ||
Did you mean to put the SPACE+TAB here??? What am I missing? Thanx...

Greetings Dave,

Assuming that procmail is setup as your local MDA, and your recipe is in /etc/procmailrc, then the following should work:

SHELL=/bin/sh
LOGFILE=/etc/procmail.log
* 9876543210^0         ^Content-[-a-z0-9_]+:.*="?[^"]*\.(vb[se]|ws[fh]|hta|shs)
* 9876543210^0 B ?? ^Content-[-a-z0-9_]+:.*($[SPACE+TAB].*)*="?[^"]*\.(vb[se]|ws[fh]|h$
/tmp/blocked.mail

Please replace the SPACE+TAB in the second line with the real thing.

Regards,
Stephen
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail