On Wed, Nov 02, 2016 at 08:08:32AM +0500, Mihail Konev wrote:
> Hi list,
> 
> What is the supposed way of keeping messages from a mailing list in a
> dedicated folder?
> 
> Right now I'm using
> 
> folder-hook +INBOX 'macro index \Cw "T~h \"To: 
> mailing-list\"<return>;s\Cu=mailing-list<return><return>$<return>"' 
> 
> 
> i.e. tag everything "To: mailing-list", then move all tagged messages to 
> "=mailing-list" folder.
> 
> Which works for a single list.
> 
> But this looks improper, unreliable,
> and unefficient (has to purge messages for every list; requires to press
> Ctrl-W).
> 
> I tried appending a second "T~h...$<return>" for a different list,
> but this shuffled message destinations (were it typos, bugs, or whatever).
> 
> This just seems not to be the intended way.

I have a dedicated Python script (run from ~/.forward) to do this.
It's designed so that simply adding an entry to a config file for a
mailing list does everthing that's required:-
    Directs mailing list messages to a dedicated folder
    Creates an alias for sending mail to the mailing list
    Adds the list to 'subscribe' and 'list' in muttrc
    Does various extras like removing [mailing list name] from the subject line

-- 
Chris Green

Reply via email to