Pedro --
...and then Pedro Alves said...
%
% Hi. I'm a new mutt user, and some questions have arised when I began
% using it. The most relevant now regards mbox-hooks
Hello, and welcome!
%
% My mbox e /var/spool/mail/username. supose I get a mail from
% [EMAIL PROTECTED] I have the following rule:
%
% mbox-hook '~f bla@bla\.com' =blafolder
mbox-hook is used to define a save mailbox for a given *mailbox*, not for a
given user. Thus, if you have folders like
=F.linux
=F.mutt
=F.slashdot
and maybe even
=F.bla
for your incoming mail 'F'olders, then you could define where read
messages are automatically 'A'rchived (like =A.linux, =A.mutt, ...) for
each folder, and that would even work for your friend bla *if* he had his
own folder.
What you probably want is a save-hook, which specifies where to save a
*message* that matches a pattern.
%
% When I exit the program, it prompts me for saving read msgs to mbox
% folder (somehing undesirable, but ok...). Answering Y, I expected the mail
Let's see, here... You can set move to "yes" instead of "ask-yes" and it
will just move items for you without asking first; see section 6.3.93 of
the manual for details.
% from [EMAIL PROTECTED] to be moved to blafolder, but it is instead moved to =mbox
% folder. Is this correct? How do I tell mutt to automatically move to the
% correct folder?
Automatic moving is, in general, pretty tricky. Most people would
suggest that you play with procmail for that on the incoming side and
then you could archive with mbox-hook as you wished. Even with a
save-hook or three you won't be able to automatically save your read
messages out to their respective archives at folder exit; you'll have to
save each one individually (or tag and tag-save, but you can't tag mail
from bla@ and foo@ all at once and have it get saved separately).
%
% thanks
HTH & HAND
% --
% Pedro Miguel Gameiro Alves
%
% THINK - Tecnologias de Informação
% Tel: +351 21 3590285
% Email: [EMAIL PROTECTED]
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature