procmail
[Top] [All Lists]

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

2009-09-10 18:31:43
Am 2009-09-10 19:00:34, schrieb Thomas Göbel:
* <linux4michelle(_at_)tamay-dogan(_dot_)net> [10.09.2009 18:53]:
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!

I changed the 
{
      FOO
      DUMMY
      BAR
}

lines to this: 
{ DUMMY=`echo "To: $TO" | cat - .mailreply | msmtp -a gmx "$TO"` }

Or what did you mean?

If it works OK, but I was meaning the

        :0
        { 
           ...
        }

surounding the three lines, because they are not neccesary.

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

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