procmail
[Top] [All Lists]

sync References with In-Reply-To

2006-02-09 15:58:57
Pseudo-code:

  if <In-Reply-To> contains a single <Message-ID> 
 and <References> doesn't end with that <Message-ID>
then append the <Message-ID> to the <References>.

  :0
  * ^References:.*@
  * ^In-Reply-To:.*\/[$NWS](_dot_)*(_at_)(_dot_)*
  * 1^1 MATCH ?? @
  { H_IRT = $MATCH } H_IRT_IDS = "$="

  :0
  *   H_IRT_IDS ?? ^^1^^
  *  ^References:.*\/[$NWS].*
  * ! MATCH ?? $\H_IRT[$WS]*^
  | $FORMAIL -i References: ${MATCH} ${H_IRT}

(untested)

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

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