[ale] Procmail rule

Joe Steele joe at madewell.com
Wed Feb 9 10:44:35 EST 2005


On Wednesday, February 09, 2005 8:35 AM, Christopher Fowler wrote:
> I've turned on this rule:
>
> :0
> * ^Subject:[ ]*\/[^ ].*
> Temp
>
>
> To catch all email that either A) Has a blank subject or B) has no
> subject line.  The problem is that it is catching all my email and
> sending it to Temp.

Your recipe is equivalent to:

  :0
  * ^Subject:[ ]*[^ ]
  Temp

Your recipe will match any message that has a non-empty subject 
line -- just the opposite of what you want to do.

You probably want something like this (untested):

SBJ=""
:0f
* ^Subject:[ ]*\/[^ ].*
{
SBJ="$MATCH"
}
:0:
* SBJ ?? ^^^^
Temp

--Joe



More information about the Ale mailing list