procmail
[Top] [All Lists]

existance of a field?

1997-05-20 21:14:00
I would like to check for the existance of a field...
If it does exist, nomatter what the contents, the script is successfull;
if it isn't there, the script fails.

Below is part of a nesting block I'm pritty sure will do the job:

{
:0
* ^x-list-id:.*
listname | formail -rxx-list-id:

:0
noname
}

A bit strange; but will it do the job?--Putting all messages that don't
have a "x-list-id:" field into the "noname" folder, and if it does have
such  a field, placing the contents (not field name) of the field in the
var "listname"?

Thanks

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