procmail
[Top] [All Lists]

Re: catching x-Advert headers

1997-09-17 11:42:05
Aaron Dougherty suggested to Chuck Campbell,

| You'd check for X-Advertisement, the same way you would check for any
| header,
| 
| :0
| * ^X-Advertisement
| folder 

Right ... but if it's a plain folder and not /dev/null nor a directory,
the recipe needs a local lockfile.

| If you're trying to filter out spam, you may also want to filter X-UIDL
| headers
| 
| :0
| * ^(X-Advertisement|X-UIDL)
| /dev/null/

Uh, no.  That trailing slash will make procmail look for a directory named
/dev/null/, which it will not find.  Delivery will fail and procmail will
go on reading recipes.  It is mandatory to leave off the trailing slash (and
one can also condense the regexp a little, but that's far less important):

  :0h
  * ^X-(Advertisement|UIDL)
  /dev/null

The advisability of trashing all mail with X-UIDL: headers has been dis-
cussed on this list recently; apparently it's possible for one to appear
in legitimate mail.

<Prev in Thread] Current Thread [Next in Thread>