Peter Jones:
* ^Subject:.*\/[^ ].*
which sets $MATCH to [first_nonspace_character] followed by .* (which
can, of course, match [nothing].)
Only if there is nothing, because \/ is greedy.
If a field can be empty, you can do
H_SUBJ # unset
:0
* ^Subject:.*\/[^ ].*
{ H_SUBJ = "$MATCH" }
or
:0
* ^Subject:.*\/[^ ].*
{ H_SUBJ = "$MATCH" }
:0E
{ H_SUBJ } # unset
or even
MATCH # unset
:0
* ^Subject:.*\/[^ ].*
{ } H_SUBJ = "$MATCH"
--
Grtz, Ruud
____________________________________________________________
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