LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Mutt Magic Please

[ILUG] Mutt Magic Please

Andrew McCarthy andrewmc-ilug at celt.dias.ie
Mon Mar 6 15:29:10 GMT 2006


On Mon, Mar 06, 2006 at 02:33:11PM +0000, Declan Moriarty wrote:
> Any other Mutt users in Ilug? Good.
> 
> I want to extract from a (spam) folder all spam addressed to any
> mailing list I am on. Just viewing today's entries, they look like 
> 
> 52 L Mär 04 To ilug at linux.i ( 132) [ILUG] Financial Freedom Has Arrived!
>  
> whereas the normal <To: me at myisp> don't have the 'L' designating a
> registered mailing list, line this entry
> 
> 8    Nov 09 Cornelius Atkin ( 145) You want to earn much more money?
> 
> The figures in the middle in brackets being the length of the
> message. Now this could be done by 10 or so lines in .procmailrc
> to sort them, but if mutt is as clever as every user tells me,
> there must be a neat way. I just want to delete those entries, or
> else separate them into a separate folder. 

To do it manually, use the <delete-pattern> key, D, and specify ~l as
the pattern. This will mark all messages addressed to known lists for
deletion. If this is something you *always* do, then you could specify a
folder-hook in your .muttrc. Supposing your folder is =spam you'd want:
	folder-hook =spam 'push <delete-pattern>~l<enter>'
This would execute every time you change into the =spam folder.

Andrew



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell