[prev in list] [next in list] [prev in thread] [next in thread] 

List:       getmail
Subject:    Re: [getmail] List-identifier prefix
From:       Robin Bowes <robin-lists () robinbowes ! com>
Date:       2004-10-08 21:01:57
Message-ID: 41670045.5030904 () robinbowes ! com
[Download RAW message or body]

Frank Benkstein wrote:
  > Why? If you want a prefix you can preprocess your incoming mail, 
look for any of
> 
> list-help: <mailto:getmail-help@discworld.dnsalias.org>
> list-unsubscribe: <mailto:getmail-unsubscribe@discworld.dnsalias.org>
> list-post: <mailto:getmail@discworld.dnsalias.org>
> 
> and insert the prefix yourself.

I use maildrop to deliver mail and use the following regexp to match 
mailing lists:

if ( /^List-Post: <mailto:![0-9A-Za-z_\-]*!@.*!>/ \
   || /^Delivered-To: mailing list ![0-9A-Za-z_\-]*!@.*/ \
   || /^X-Mailing-List:[:space:]![0-9A-Za-z_\-]*!@.*/
)
   {
     LIST_NAME="${MATCH2}${MATCH3}"
   }

These three expressions catch all the mailing lists from which I receive 
mail.

R.
-- 
http://robinbowes.com

---------------------------------------------------------------------
To unsubscribe, e-mail: getmail-unsubscribe@discworld.dnsalias.org
For additional commands, e-mail: getmail-help@discworld.dnsalias.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic