View previous topic :: View next topic |
Author |
Message |
Dralnu Veteran
Joined: 24 May 2006 Posts: 1919
|
Posted: Sun Jul 29, 2007 12:05 am Post subject: Mutt - grouping emails from mailing list |
|
|
Anyone know of a way to group emails from mailing list, either in diffrent folders in $HOME, or in how mutt displays them, as well as display which list they are from? _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
|
cynric Guru
Joined: 08 Oct 2004 Posts: 439
|
Posted: Sun Jul 29, 2007 5:40 am Post subject: |
|
|
I don't use mutt (yet), but in reading some stuff hoping to migrate I ran across Gentoo's Guide to mutt which answers how to sort mails into different folders. As for how mutt displays them, I'm pretty sure you can color and add your own, custom flag for mail items. This is done in the .muttrc file (as opposed to procmail for the sorting above). This link may be of help with regards to that: http://linuxbrit.co.uk/mutt/
Hopefully that helps some. _________________ "This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash |
|
Back to top |
|
|
Dralnu Veteran
Joined: 24 May 2006 Posts: 1919
|
Posted: Sun Jul 29, 2007 5:46 am Post subject: |
|
|
I'll look at that tomorrow. Thanks. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
|
gentuse Tux's lil' helper
Joined: 15 Aug 2002 Posts: 75 Location: Seattle
|
Posted: Mon Jul 30, 2007 4:29 am Post subject: Re: Mutt - grouping emails from mailing list |
|
|
Can you use procmail? Here's a rule the will group incoming messages by mailing list:
Code: | :0
* ^(Mailing-List: (contact|list)|Delivered-To: mailing list|X-BeenThere:) \/[^@]+
.lists.$MATCH/ |
|
|
Back to top |
|
|
Dralnu Veteran
Joined: 24 May 2006 Posts: 1919
|
Posted: Mon Jul 30, 2007 4:43 am Post subject: Re: Mutt - grouping emails from mailing list |
|
|
gentuse wrote: | Can you use procmail? Here's a rule the will group incoming messages by mailing list:
Code: | :0
* ^(Mailing-List: (contact|list)|Delivered-To: mailing list|X-BeenThere:) \/[^@]+
.lists.$MATCH/ |
|
I've got procmail installed. I havn't ever dealt with it THAT much, but I'll look into that as well as the above. Thanks. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Mon Jul 30, 2007 4:24 pm Post subject: |
|
|
what exactly do you want to do?
If you just want to save all mail from a certain list to a certain mailbox, something like this should do
Code: |
# save any mail addressed to GWN to Mail/gentoo-gwn
save-hook '~C gentoo-gwn@lists.gentoo.org' =gentoo-gwn
# save all email from SF announcements to Mail/sourceforge
save-hook '~f noreply@sourceforge.net' =sourceforge
|
|
|
Back to top |
|
|
Dralnu Veteran
Joined: 24 May 2006 Posts: 1919
|
Posted: Mon Jul 30, 2007 6:16 pm Post subject: |
|
|
Well, I'd like 1 of 2 things. Either I'd like it to group the emails by the "To:/From:" Fields, and later on into the account I grabed them from. This is what I would prefer, as well as listing the mailing list they are from (iunstead of the person who sent it), or maybe throwing them into a diffrent mailbox, but I'm still not sure on that one.
I tried the prior snippet of code
gentuse posted, and I've lost a few emails because of it, and really don't know why. I uncommented it from my procmailrc.
I've never dealt with diffrent mailboxes before, either (I currently only have the one in /var/spool/mail and a Mail dir in my homedir). _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Mon Jul 30, 2007 7:43 pm Post subject: |
|
|
All you want to do is list them together in the inbox? Well, this is automatically done by mutt's superb thread detection and custom ordering.
(hit "o" in the menu, or look up order in "man muttrc") |
|
Back to top |
|
|
Dralnu Veteran
Joined: 24 May 2006 Posts: 1919
|
Posted: Mon Jul 30, 2007 9:38 pm Post subject: |
|
|
I messed around some with the way it sorts stuff, but it seemed to not like the idea of grouping + threading. I'll look more into that in a little while. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
|
|