procmail
[Top] [All Lists]

Procmail auto reply rule based on file extension.

2008-06-02 08:40:21
Hi,

I can't figure out how to make a new rule to send an automatic message
to the sender when the sender sends me an e-mail containing certain
attached files like XLSX and DOCX.

Can someone help me with this?!


This doesn't work:

:0 B
* filename=".*\.(xlsx)"
|(formail -r -A .Precedence: Auto. \
- -I.From: Testy <noreply(_at_)mydomain>. \
- -I.Subject: Automated acknowledgement. \
- -A .X-Loop: eluis(_at_)castelhano-ferreira(_dot_)pt(_dot_); \
cat /etc/message.txt )| sendmail -t
____________________________________________________________
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>