Re: Two copies of email when cc-ed in mailing lists

dvalin--- via Mutt-users <[email protected]>
Newsgroups gmane.mail.mutt.user
Message-ID <019cfe2b-c35b-4044-96cd-2978848c53a6@localhost>
On 27.10.24 10:38, Sadeep Madurange wrote:

> Hello,

>

> In some lists, users send replies to the list address while cc-ing my

> email address. So, I get two copies of the same email.

>

> Is there anything I can do so that I only receive/see one copy?

If you use procmail to sort incoming mail, then a simple solution is the two-part rule:

# Collapse duplicate messages, but

:0 Whc: msgid.lock                  # not your posts, BCCed for testing.

* !^From: Sadeep Madurange

| formail -D 8192 msgid.cache

# And save duplicates, in case of recipe

:0 a:                               # flaws below. (See man procmailex)

duplicates

That has served me for some decades now. The only irritation is that the

direct CC almost always arrives first, so it is the list post which goes

to "duplicates". That can necessitate using e.g. the "List-Id:" rather

than "From" header line to also direct CCs to the list mailbox.

Erik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.