<<< Date Index >>>     <<< Thread Index >>>

Re: save-hook does not save in the right location?



Hi,

* Corsair wrote:
On Thu, Jan 10, 2008 at 01:31:41PM +0100, Rocco Rutte wrote:

If you want to move read mail to ~/read-mail and ~/read-lists, you can do something like this:

  folder-hook . 'set mbox=~/read-mail'
  folder-hook =lists 'set mbox=~/read-lists'

The first makes sure that for every folder the $mbox setting gets reset. The second sets $mbox accordingly when you enter the =lists folder.

So there's no way to do it (without a external mail filter) when mails
from mailing lists and other mails are mixed in a folder?

If they're in one folder, there're two more options. 1) You use a macro to move messages or 2) use folder-hooks that move messages when you enter the folder.

For 1) you'd need to hit a single key, 2) would be automatic but has the disadvantage that read messages are only moved the next time you enter that folder.

They both would need to perform the same action: Tag all read list mail and save them to the archive for list mail, save all other read mail to the default location.

I think the $mbox feature is only there because older mail(1) clients on unix do the same, though it's not really meant as an archive system.

Rocco