procmail
[Top] [All Lists]

Re: Problem with missing "Message-ID:"

2005-04-28 10:19:51
Hello Dallman,

Am 2005-04-28 18:00:29, schrieb Dallman Ross:

Ruud already showed what he had in mind.  No perl, no sed, no
formail, just procmail to grab the header and test it.  But his

The REAL procmail Freaks...

That's not bad, but it's two calls to formail.  We only need one,
actually, as Ruud showed.  Here's how I might do it:
  
  :0 h fw   # in brackets just below are caret, space, & tab
  * ^Message-Id:.*\/[^        ]+
  * ! MATCH ?? ^^<.*>^^
  *   MATCH ?? ()\/[^><]+
  | formail -i "Message-ID: <$MATCH>"

cool.

(Tested.)

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

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