procmail
[Top] [All Lists]

Re: Recipe to auto-unsubscribe from mailing lists?

1998-04-22 23:30:57
        Author:        Ian Bishop <ibishop(_at_)globec(_dot_)com(_dot_)au>
        Original-Date: Thu, 23 Apr 1998 15:23:33 +1000
        Message-ID:    
<3(_dot_)0(_dot_)5(_dot_)32(_dot_)19980423152333(_dot_)007a3cc0(_at_)globec(_dot_)com(_dot_)au>

I'm fairly new with Procmail, but have been asked to look into this as a
project.

Well it's not a great idea, but I'd recommend starting with this:

SmartList uses 'X-Mailing-List' 'Precendence: list' and 'Resent-Sender'

:0
* ^X-Mailing-List:
* ^X-Loop:
* ^Precedence: list
* ^Resent-Sender: ()\/
| (echo 'unsubscribe' | Mail -s unsubscribe $MATCH)



Majordomo uses some different headers:

:0
* ^Precedence: bulk
* ^From .*(owner-|-owner)@
* ^Sender:.*(owner-|-owner)@
* ^Sender:()\/
| (echo 'unsubscribe' | Mail -s unsubscribe $MATCH)

There's a little redundancy there to do a little more checking to make sure  
that you're only responding to mailing list software.


If they use LISTSERV then you're probably SOL because they usually use  
totally different addresses, in my experience.


Trying the parse the footer messages is way too prone to misfires for my liking.

Note all these are right off the top of my head, and it's after my bedtime

TjL




<Prev in Thread] Current Thread [Next in Thread>