procmail
[Top] [All Lists]

Re: to delete emails with empty body

2007-04-24 17:20:34
On Tue, Apr 24, 2007 at 11:07:29PM +0000, Tom Lee wrote:


I tried to forward all emails with attachment to a different account.
The following code works fine. not sure if there is any better way?

:0
* ^Content-Type: multipart/mixed; boundary=
! different_user_name(_at_)yahoo(_dot_)com

Looks okay, but if you want to forward postmaster daemon messages
with attachments you'll need to expand the test.  That is,
often nondeliveries get reported by "postmaster" and are text-
based per the headers, but the MIME body is nonetheless included
(and often quoted).

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail