Re: Thunderbird-like mail archives (macro)

2010-12-26 Thread seanh
On Thu, Dec 23, 2010 at 11:37:33PM +0100, Daniel Schömer wrote: > Hi! > > seanh schrieb: > > [...] > > > > But this still saves each message to an archive folder based on the current > > year when mutt was started, rather than on the year of the message. You > > can't > > define a save-hook base

Re: Thunderbird-like mail archives (macro)

2010-12-23 Thread Brandon Sandrowicz
On Thu, Dec 23, 2010 at 10:06:48PM +0100, Kirill Miazine wrote: > * Michael Tatge [2010-12-23 11:51]: > >* On Tue, Dec 07, 2010 05:37PM + seanh (snh...@gmail.com) muttered: > >>I'm trying to emulate Thunderbird 3's mail archiving behaviour in mutt. In > >>Thunderbird if you select a mail or mai

Re: Thunderbird-like mail archives (macro)

2010-12-23 Thread Daniel Schömer
Hi! seanh schrieb: > [...] > > But this still saves each message to an archive folder based on the current > year when mutt was started, rather than on the year of the message. You can't > define a save-hook based on the year of the message because there isn't an > expando for that, only for the

Re: Thunderbird-like mail archives (macro)

2010-12-23 Thread Kirill Miazine
How about this: macro index,pager a "=Archives/`date +%Y`" * Michael Tatge [2010-12-23 11:51]: * On Tue, Dec 07, 2010 05:37PM + seanh (snh...@gmail.com) muttered: I'm trying to emulate Thunderbird 3's mail archiving behaviour in mutt. In Thunderbird if you select a mail or mails and hit th

Re: Thunderbird-like mail archives (macro)

2010-12-23 Thread Michael Tatge
* On Tue, Dec 07, 2010 05:37PM + seanh (snh...@gmail.com) muttered: > I'm trying to emulate Thunderbird 3's mail archiving behaviour in mutt. In > Thunderbird if you select a mail or mails and hit the archive button or press > the 'a' key then it moves the mail(s) into an archive folder. For ea

Re: Thunderbird-like mail archives (macro)

2010-12-12 Thread seanh
On Tue, Dec 07, 2010 at 07:18:04PM -0500, Dan Ritter wrote: > Given that I have this working nicely: > set record="~/Mail/archive/sent-`date +%Y-%m`" > > I'm sure that you could do a similar thing in a save-hook. If > you want annual rather than -MM, just make it `date +%Y` This works: s

Re: Thunderbird-like mail archives (macro)

2010-12-07 Thread Dan Ritter
On Tue, Dec 07, 2010 at 07:46:36PM +, seanh wrote: > On Tue, Dec 07, 2010 at 05:37:29PM +, seanh wrote: > > Also, I realised that if the year is 2010 when you archive a mail then it > > will > > go into Archives/2010, even though (if the mail has been hanging around in > > your > > inbox)

Re: Thunderbird-like mail archives (macro)

2010-12-07 Thread Leo Vegoda
On Tue, Dec 07, 2010 at 07:46:36PM +, seanh wrote: [...] > I think save-hook is pretty close to what you would need here. Unfortunately > you need to filter messages according to their year, and their doesn't seem to > be a save-hook expando for that (there is one for the date, but only for t

Re: Thunderbird-like mail archives (macro)

2010-12-07 Thread seanh
On Tue, Dec 07, 2010 at 05:37:29PM +, seanh wrote: > Also, I realised that if the year is 2010 when you archive a mail then it will > go into Archives/2010, even though (if the mail has been hanging around in > your > inbox) you might have actually received the mail in 2009. A better macro mig

Re: Thunderbird-like mail archives (macro)

2010-12-07 Thread Brandon Sandrowicz
On Tue, Dec 07, 2010 at 05:37:29PM +, seanh wrote: > Hey, > > I'm trying to emulate Thunderbird 3's mail archiving behaviour in mutt. In > Thunderbird if you select a mail or mails and hit the archive button or press > the 'a' key then it moves the mail(s) into an archive folder. For each acco

Thunderbird-like mail archives (macro)

2010-12-07 Thread seanh
Hey, I'm trying to emulate Thunderbird 3's mail archiving behaviour in mutt. In Thunderbird if you select a mail or mails and hit the archive button or press the 'a' key then it moves the mail(s) into an archive folder. For each account it creates a folder called Archives with sub-folders for each