procmail
[Top] [All Lists]

Re: Re: Re: Re: Filtering MS-Office Attachments

2009-09-10 10:20:30
Am 2009-09-10 13:00:07, schrieb Thomas Göbel:
The whole recipe looks like this:

TO=`formail -rtzxTo:`

:0HB
* ^content-type:.*multipart/(mixed|alternative)
* .*name=.*\.(ppt|xls|doc)
* ! ^X-Loop: mail(_at_)web(_dot_)www
{

      :0
      { 
Remove this!

              FOO=`sed -e "1a\To: $TO" $HOME/.mailreply > $HOME/.mail`
              DUMMY=`msmtp -a gmx "$TO" < $HOME/.mail`
              BAR=`rm $HOME/.mail`

      }
Remove this!

      :0
      * ^TO.foo
      maildir1/

      :0
      * ^TO.*bar
      maildir2/
}



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 #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strabourg/France
IRC    #Debian (irc.icq.com)                  Tel. DE: +49 177 9351947
ICQ    #328449886                             Tel. FR: +33  6  61925193
____________________________________________________________
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