procmail
[Top] [All Lists]

Re: formail -A command corrupting attachments

2009-03-07 08:53:42
Am 2009-03-07 17:22:55, schrieb Phill Edwards:
I have had the same recipe file for years but for recently I started
having a problem where attachments such as PNG files, JPEGs, Acrobat
files etc were getting corrupted. I have tracked this down to a
formail line in a procmail recipe.

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

The ^TO:.* looks a little bit useless.
But what is $DEFAULT?

Normaly it should look like:

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

If $DEFALT is the default mailfolder, the you need nothing more  as  the 
two above lines otherwise you could use (If you need a condition)

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


Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>               <http://www.can4linux.org/>
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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