[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail Regel --> bei *.doc Dateien --> antwort Mail



Hallo Lothar,

* Lothar Schweikle-Droll schrieb [22-11-02 11:29]:
> 
> Ich möchte allen Versender von Properitären Formaten wie z.B. doc ein
> Antwort Mail schicken, in der erklärt wird, warum ich damit nichts
> anfangen kann.
> 
> Wie muß so eine Regel aussehen?

FROM=`formail -xFrom: | sed -e 's/ *(.*)//; s/>.*//; s/.*[:<] *//; s/ //'`

:0
* ^Content-Type: multipart.*
{
  :0 B
  * 1^0 filename=.*\.(asd|dll|js|ocx|shb|pif|exe|doc|dot|md|vbs|vb|vbe|wsf|wsh|bat|reg|chm|inf|sct|com|cmd|cpl|hlp|hta|lnk|msi|scr|shs|ppt|pps)
  {
    :0:
    | mail -s "Cant read this attachment" $FROM
  }
}

HTH

Gruss Udo

-- 
Statistik für die Debian-Mailingliste gefällig?
    -> http://woody.informatik.uni-oldenburg.de/~udo/?id=debian <-

Attachment: pgpo5LLO4diiA.pgp
Description: PGP signature


Reply to: