Martin Jermyn skribis:
MLSUBJECT=`formail -xSubject:`
Another way to capture the Subject header-value
(if at all there):
MLSUBJECT
:0
* ^Subject:[ ]*\/[^ ].*
{ MLSUBJECT=$MATCH }
(where both [ ] and [^ ] contain a <space> and a <tab>)
Another way to initialise MLSUBJECT:
MLSUBJECT=""
Because MATCH is greedy-from-the-right, you could also
write the matching condition as:
* ^Subject:.*\/[^ ].*
--?
Affijn, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail