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

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



Hallo Corsair,

Corsair <chris.corsair@xxxxxxxxx> 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?

>From /usr/share/doc/mutt/manual.txt.gz:

12. Using Multiple spool mailboxes

   Usage: mbox-hook [!]pattern mailbox

   This command is used to move read messages from a specified mailbox to a
   different mailbox automatically when you quit or change folders. pattern
   is a regular expression specifying the mailbox to treat as a ``spool''
   mailbox and mailbox specifies where mail should be saved when read.

   Unlike some of the other hook commands, only the first matching pattern is
   used (it is not possible to save read mail in more than a single mailbox).

I think, this does what you want.

Bye, Jörg.
-- 
Der Hase läuft schneller als der Fuchs,
denn der Hase läuft um sein Leben.