procmail
[Top] [All Lists]

Re: formail -A command corrupting attachments

2009-03-07 20:12:42
By the way, I've never seen a "Phill" with 2 L's before.
My brother is Phillip, but he still writes "Phil."

It is a little unusual, but it's just the way I've always done it.
Interestingly, I saw a plumber's van the other day with Phill written
on the side with 2 L's so there's obviously a few of us!

This recipe adds a message header called "X-PMERule" but attachments
get corrupted:
:0:
* ^TO_.*
| formail -A "X-PMERule: Pass thro to default">>$DEFAULT

I don't see why it wouldn't work, off-hand, but that's
not the usual way to do things.  Also, you don't need
that condition, and the trailing ".*" is pointless.  Just
leave off the condition if you don't want a condition.

Thanks. Procmail isn't my strong point so I'm sure my recipes are
generally a bit kludgy.

Try:

 :0 fw h
 | formail -A "X-PMERule: Pass thro to default"

 :0 A:
 $DEFAULT

This worked (as did the one from the other poster) and the attachments
are coming through fine now.

Thanks to everyone for helping.

Regards,
Phill

____________________________________________________________
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