procmail
[Top] [All Lists]

Re: Re: Re: Filtering MS-Office Attachments

2009-09-10 06:15:49
* <goebel(_dot_)thomas(_at_)gmx(_dot_)net> [10.09.2009 11:22]:
* <linux4michelle(_at_)tamay-dogan(_dot_)net> [17.07.2009 18:45]:
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` }

Hi,
tried this recipe and it works, thank you. Just one thing i want to
change. I get the reply-adress via 
      TO=`formail -rtzxTo:`
This also works very well, but now sending the reply with the dummy
command shown above there is no TO: header in the sent reply.
Is it possible that the adress where the reply will be sent to is
written in a TO: header?


Hi again,
i found a solution. A part of the recipe is now:

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

I have no idea if this is a good procmail code or not. If i should
change it to something else please let me know!

Tom
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: pgpZGUx9Y6oWj.pgp
Description: PGP signature

____________________________________________________________
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