procmail
[Top] [All Lists]

Re: Auto-reply according file extension.

2008-06-10 07:32:01

On 9-Jun-2008, at 03:11, Professional Software Engineering wrote:

At 12:33 2008-06-06 -0600, LuKreme wrote:
On 5-Jun-2008, at 18:28, Michelle Konzack wrote:
Am 2008-06-04 15:09:27, schrieb LuKreme:
:0
* ^Content-type:.*"\/\.pdf"
{ FILENAME = $MATCH }

This does not work

Yes it does.

I'd agree that it doesn't - at least not in MANY cases. Since it's checking the HEADERS, not the body, it is looking for a message which itself IS an attachment

Right, which is what we were talking about if you go back and read the message.


==begin
If the message you want is JUST an attachment with no "Hi, here's the file you wanted" then the filename (and extension) will be in the headers, making it much easier to avoid false positives.

:0
* ^Content-type:.*"\/\.pdf"
{ FILENAME = $MATCH }
==end

--
It was a fifty-four with a mashed up door and a cheesy little amp
        with a sign on the front said "Fender Champ" and a second-hand
        guitar it was a Stratocaster with a whammy bar

____________________________________________________________
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