Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Wiki Markup
h2. 4.16. How do I prevent duplicate copies of email coming to the list

Occassionally I get the same email message coming to a list. Sometimes this is because people with broken MUAs (like Outlook) do a "group reply" and it puts the list address in twice, and sometimes it's a mail server hiccup. In order to prevent that, I run the mailing list through procmail as shown in the previous FAQ entry. Near the top of my procmail recipe file, I put the following code:

 :0 Whc: msgid.lock
 | formail -D 8192 /tmp/msgid.cache

 :0 a

The first bit keeps a message id cache of the last 8192 message ids recieved on the list, and the second bit deletes any messages whose message id matches one in the cache.

If you run more than one email list through the same procmail recipe file, be sure and use a different msgid.cache file for each list, possibly by calling it /tmp/msgid.cache.$
If you don't, people won't be able to send a message to two of your mailing lists at a time. That may be desirable to you.

_Last changed on Fri Jan 25 00:22:17 2008 by_ jidanni
{color:darkgreen}Converted from the Mailman FAQ Wizard{color}

This is one of many [Frequently Asked Questions].