procmail
[Top] [All Lists]

Re: Auto-reply according file extension.

2008-06-06 11:35:52
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.

but this:

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

otherwise the filename would end with a '"'.

But that is not relevant to the task. The point was not to find the name of the pdf, only IF there was a pdf.


--
Fairy Tales are more than true; not because they tell us that
        dragons exist, but because they tell us that dragons can be
        beaten.

____________________________________________________________
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