Suggestion when saving mails

2010-07-21 Thread Christoph Kluenter
Hi all, when I press "s" to save a mail to another folder, mutt suggest the foldername. But mutt is mostly always wrong :-) So I thought it would be nice if I could write my own script which would parse the mail and suggest a folder. Is something like this possible or feasable ? Alternatively I w

Re: Suggestion when saving mails

2010-07-21 Thread Joost Kremers
On Wed, Jul 21, 2010 at 09:36:54AM +0200, Christoph Kluenter wrote: > when I press "s" to save a mail to another folder, mutt suggest the > foldername. > But mutt is mostly always wrong :-) > So I thought it would be nice if I could write my own script which would > parse the mail > and suggest a

Re: Suggestion when saving mails

2010-07-21 Thread Christoph Kluenter
* Am Wed, Jul 21, 2010 at 10:02:08AM +0200 , schrieb Joost Kremers: > On Wed, Jul 21, 2010 at 09:36:54AM +0200, Christoph Kluenter wrote: > > when I press "s" to save a mail to another folder, mutt suggest the > > foldername. > > But mutt is mostly always wrong :-) > > So I thought it would be nic

Re: Suggestion when saving mails

2010-07-21 Thread Rado S
=- Christoph Kluenter wrote on Wed 21.Jul'10 at 10:30:34 +0200 -= > Thank you very much. save-hooks is exactly what I want. There are some vars controlling save-location, if you want to make it constant. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least t

Re: Suggestion when saving mails

2010-07-21 Thread Roger
On Wed, Jul 21, 2010 at 09:36:54AM +0200, Christoph Kluenter wrote: >Hi all, > >when I press "s" to save a mail to another folder, mutt suggest the foldername. >But mutt is mostly always wrong :-) >So I thought it would be nice if I could write my own script which would parse >the mail >and sugges

Re: Suggestion when saving mails

2010-07-21 Thread Patrick Shanahan
* Roger [07-21-10 14:57]: > > You do have a valid point with Mutt being *always* wrong, to the point it just > makes up some folder name that doesn't even exist from the idea of the > sender's > email address! mutt can only be wrong as it is configured (or not) to be. > A likely more appropria

Re: Suggestion when saving mails

2010-07-21 Thread Roger
On Wed, Jul 21, 2010 at 06:50:12PM +0200, Rado S wrote: >=- Christoph Kluenter wrote on Wed 21.Jul'10 at 10:30:34 +0200 -= > >> Thank you very much. save-hooks is exactly what I want. > >There are some vars controlling save-location, if you want to make >it constant. force_name & save_name?

Re: Suggestion when saving mails

2010-07-21 Thread Steve Searle
Around 07:56pm on Wednesday, July 21, 2010 (UK time), Roger scrawled: > Since I'm always saving/moving email to $HOME/.maildir/.Spam... you > would think Mutt would catch-on after the 10th email. ;-) I attach the following macros to the z key in my .muttrc macro index z "s=mutt/spam\n" "move me

Re: Suggestion when saving mails

2010-07-21 Thread Roger
On Wed, Jul 21, 2010 at 10:12:34PM +0100, Steve Searle wrote: >Around 07:56pm on Wednesday, July 21, 2010 (UK time), Roger scrawled: > >> Since I'm always saving/moving email to $HOME/.maildir/.Spam... you >> would think Mutt would catch-on after the 10th email. ;-) > >I attach the following macros

Re: Suggestion when saving mails

2010-07-22 Thread David Champion
* On 21 Jul 2010, Roger wrote: > >> Since I'm always saving/moving email to $HOME/.maildir/.Spam... you > >> would think Mutt would catch-on after the 10th email. ;-) > > > >I attach the following macros to the z key in my .muttrc > > > > macro index z "s=mutt/spam\n" "move message to spam" > > ma

Re: Suggestion when saving mails

2010-07-22 Thread rogerx
On Thu, Jul 22, 2010 at 10:35:43AM -0500, David Champion wrote: >* On 21 Jul 2010, Roger wrote: >> >> Since I'm always saving/moving email to $HOME/.maildir/.Spam... you >> >> would think Mutt would catch-on after the 10th email. ;-) >> > >> >I attach the following macros to the z key in my .muttr

Re: Suggestion when saving mails

2010-07-22 Thread rogerx
Here's what I've simply settled on: # Remap S to move spam to the spam folder macro index S "unset wait_key\nbogofilter -s\nset wait_key\ns=.Spam\n" macro pager S "unset wait_key\nbogofilter -s\nset wait_key\ns=.Spam\n"

Re: Suggestion when saving mails

2010-07-22 Thread David Champion
* On 22 Jul 2010, rog...@sdf.org wrote: > > spam "X-Spam-Status: Yes, score=([^ ]+)" "SA:%1" > > # Add more patterns as needed for other spam engines you use. > > So, I'm experimenting with Bogofilter. Bogofilter, doesn't seem to > be catching much at all and has to be trained -- so I've been m