procmail
[Top] [All Lists]

Re: Can't get action | to work

2006-04-03 17:21:06
Michelle Konzack schreef:

* $ ^Subject:$WS\/.*$

That is an awkward way to capture the value of the Subject header field.
Only the first whitespace is chopped (there can be more), and the ending
newline is captured too.

Put this somewhere at the start

  H_SUBJ   # unset
  :0
  * $ ^Subject:.*\/[^$WS].*
  { H_SUBJ = "$MATCH" }

and use ${H_SUBJ} in your further recipes.


{
  BLUB=`echo "$TIME bounce address $MATCH" >> spamtest/spam.log`

With the awkward caption, that would write out $MATCH including the
extra newline.

-- 
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

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