procmail
[Top] [All Lists]

Re: Auto-reply according file extension.

2008-06-10 07:39:08

On 7-Jun-2008, at 17:12, Michelle Konzack wrote:

Am 2008-06-06 12:33:48, schrieb LuKreme:
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.

No.

You can repeat no all you want, but you're still going to be wrong. Please reread the full thread before replying again and in particular my entire original post.

 { 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.

Aand WHY do you use at all the line:

   { FILENAME = $MATCH }

Because then you can check for the presence of a pdf

# Is this message just a pdf?
:0
* ^Content-type:.*"\/\.pdf"
{ FILENAME = $MATCH }

# OK, no pdf header, let's look closer
:0E
* Content-type:.*multi
{
  .. check for a pdf in the body
  FILENAME = <something>
}

:0
* ! FILENAME ^^^
{
 ..do what you need to do with messages that have a PDF
}


--
Though it's cold and lonely in the deep dark night I can see
        paradise by the dashboard light.

____________________________________________________________
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