procmail
[Top] [All Lists]

Re: Procmail auto reply rule based on file extension.

2008-06-02 09:06:29
Am 2008-06-02 16:38:00, schrieb Eduardo Luís:
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

This looks a little bit crapy.  Maybe you should use:

: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" ; \
          cat /etc/message.txt ) | sendmail -t

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   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>