procmail
[Top] [All Lists]

Dealing with list messages that are Cc to you

2013-03-06 13:14:49
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:.*kremels(_at_)kreme(_dot_)com
* 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.


____________________________________________________________
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>
  • Dealing with list messages that are Cc to you, LuKreme <=