procmail
[Top] [All Lists]

Re: formail -A command corrupting attachments

2009-03-08 01:18:28
On 7-Mar-2009, at 17:17, Phill Edwards wrote:
The headers look the same (except for the added extra header of course), so
the difference must be in the attachments.
How do they differ?

I've tested this sending a PNG attachment. When I use the formail line
the PNG gets corrupted. The _exact _same_ attachment PNG file doesn't
get corrupted when I omit the formail line. When I say corrupted I
mean I end up with only some of the PNG file. Odd, I know, but true.

Your write method is odd, and one I've never tested.

Try what Michelle posted:

:0:
* some_condition
{
   :0fw
   |formail -A "X-PMERule: Pass thro to default"
   :0
   $DEFAULT
}

or the simpler

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

:0
$DEFAULT

What you are doing is peculiar and you've not given a reason for why you are you doing this this way.


--
Lobotomy means never having to say you're sorry -- or anything
        else.

____________________________________________________________
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