procmail
[Top] [All Lists]

Re: How to get the actual message?

2002-07-03 16:35:16
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

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