<<< Date Index >>>     <<< Thread Index >>>

Re: automating list subscribe/unsubscribe



* Matt Price <matt.price@xxxxxxxxxxx> [2003-12-02 17:10]:
> I'd like to take, say, a list of mailing lists and
> automatically generate unsubscribe messages to be sent to the
> mailing list request address; or alternatively, a macro that
> reads the "list-unsubscribe" header and sends a message
> directly to that address with a single keystroke.  
> 
> Has anyone done such athing, either in mutt or with someo
> thertool?  

This should get you on your way - pipe the message into:

formail -cxlist-unsubscribe: | sed 's/.*<mailto:\([^>]*\).*/\1/'

It'd also be possible to detect whether a message is coming from
a ezmlm- or majordomo-driven list by looking at which headers get
generate, and automatically send the right majordomo command.

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."