Dealing with list messages that are Cc to you

LuKreme <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
I know we covered this several times many years ago, but at the time my solution was "If it's to my list account and it's not from a list, discard it"

Sadly, that is no longer an option, so I need a way to do the following:

If a message is TO me and ONLY to me, file it.
If a message is to me and ALSO to a list, file it somewhere else (possibly /dev/null :)
If a message is NOT to me, treat it as a list message (that is, let it fall through)

I have all the recipes in place to deal with the list messages.

I though that maybe this,a after all list processing might work:

:0
* 9876543210^1 ! X-Original-To:.*[email protected]
* 9876543210^1 ! TO_kremels@kreme\.com
{
   TRAP='mv "$LASTFOLDER" "${LASTFOLDER}:2,S"'

   :0
   .not-to-me/
}

Which should let all the mail that is addressed to my list account fall through to $DEFAULT (the InBox) right?

-- 
When men talk to their friends, they insult each other. They don't
really mean it.
When women talk to their friends, they compliment each other. They don't
really mean it.
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.