procmail
[Top] [All Lists]

Re: Filtering MS-Office Attachments

2009-07-17 11:35:17
Hallo Thomas,

Am 2009-07-17 17:04:10, schrieb Thomas Göbel:
:0HB
* ^content-type:.*multipart/(mixed|alternative)
* .*name=.*\.(ppt|xls|doc)
* ! ^X-Loop: my.mail-at-foo.bar
{
        :0
        | msmtp -a gmx "$TO" < $HOME/.mailreply.iso

Do you want to send the incoming message or only the mailreply?
If later one, you should use:

        :0
        { DUMMY=`msmtp -a gmx "$TO" < $HOME/.mailreply.iso` }

if not, you should definitively add the "c" flag

        :0c
        | msmtp -a gmx "$TO" < $HOME/.mailreply.iso

because otherwise the two following recipes are never reached...

        :0
        * ^TO.students
        hochschule/

        :0
        * ^TO.*private
        gmx/
}

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


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   c/o Shared Office KabelBW  ICQ #328449886
+49/177/9351947    Blumenstasse 2             MSN LinuxMichi
+33/6/61925193     77694 Kehl/Germany         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

<Prev in Thread] Current Thread [Next in Thread>