procmail
[Top] [All Lists]

Correcting broken Message-ID:

2007-07-13 08:18:24
############################################################
#  ATTENTION:  I am currently NOT in Strasbourg because    #
#              haveing the last 4 weeks of my military     #
#              service and can not reply in short delays.  #
############################################################

Hello,

I like the 'mutt' feature to repare broken threads but sometimes it does
not work because they are:

        Message-ID: 12345(_dot_)67890(_at_)somedomain(_dot_)tld

but according to the RFC it should be

        Message-ID: <12345(_dot_)67890(_at_)somedomain(_dot_)tld>

So, now I have in my "procmailrc" at the beginning following construct:

----[ '~/.procmailrc' ]-----------------------------------------
:0fhw
* ! ^Message-ID:
| formail -a Message-ID:

:0
* ! ^Message-ID:.*<.*>
{
  MSGID=`formail -czx Message-ID: |sed 's/<> //g'`
  
  :0fw
  |formail -I "Message-ID: <${MSGID}>"
}
----------------------------------------------------------------

and like to know, whether someone has a better solution for it.

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    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>