Filing mail, mailing lists, sub-directories -> save-hook fcc-hook

Filing mail, mailing lists, sub-directories -> save-hook fcc-hook

Post by Sven Gucke » Wed, 03 Sep 2003 00:12:10


* Colin Brough < XXXX@XXXXX.COM >:

now, are you subscribed to that list, or not?
one of these commands should be enough! (see sig)


you want a save-hook then:

save-hook XXXX@XXXXX.COM =Linux/dundee


save-hook XXXX@XXXXX.COM =Church/james.wilson
fcc-hook XXXX@XXXXX.COM =Church/james.wilson

and you'd better add ".invalid" to
your address if it isn't replyable..

Sven

--
Sven XXXX@XXXXX.COM - put the subscription status into header:
use "lists address" when you are *not* subscribed -> request CCs
use "subscribe address" when you *are* subscribed -> request no CCs
-> http://www.yqcomputer.com/ ~guckes/mutt/setup.php3#lists_and_subscribe
 
 
 

Filing mail, mailing lists, sub-directories -> save-hook fcc-hook

Post by Colin Brou » Wed, 03 Sep 2003 00:22:15


Ahh, OK, thanks! Yes, I am subscribed. .muttrc edit accordingly!!


Nope, doesn't work. Still goes into =dundee. Mutt 1.4i (2002-05-29),
Mandrake 9.0


Yeah, I'd just not put two and two together to get four - sorry.


Huh? Yes, the address is not replyable - is there a convention in this
group or more widely to add invalid to it too? Hadn't heard of that!

Cheers

Colin

--

----------------------------------------------------------------------
Colin Brough XXXX@XXXXX.COM

 
 
 

Filing mail, mailing lists, sub-directories -> save-hook fcc-hook

Post by Colin Brou » Wed, 03 Sep 2003 00:34:48

> you want a save-hook then:

Not quite. Got what I was looking for, following hints from your own
configuration website:

save-hook ~Cdundee@mailman =Linux/dundee

Documentation isn't very clear - manual.txt says:

~C EXPR message is either to: or cc: EXPR

but has a space between '~C' and EXPR which mutt barfs on. Also, the
paragraphs in manual.txt:

3.14. Specify default save filename

Usage: save-hook [!]pattern filename

This command is used to override the default filename used when saving
messages. filename will be used as the default filename if the
message is From: an address matching regexp or if you are the author
and the message is addressed to: something matching regexp.

See ``Message Matching in Hooks'' for information on the exact format
of pattern.

was confusing, because of its mention of 'From:' when I didn't know of
the wider power of the "Message Matching in Hooks" - that it could
match in other fields....

Thanks very much for the pointers... off to hack up .muttrc
accordingly!

Colin

--

----------------------------------------------------------------------
Colin Brough XXXX@XXXXX.COM
 
 
 

Filing mail, mailing lists, sub-directories -> save-hook fcc-hook

Post by Gary Johns » Wed, 03 Sep 2003 04:13:59


That's because mutt interprets that space as the separator between
the pattern and the filename. Another way to fix that is to put
quotes around the pattern:

save-hook '~C dundee@mailman' =Linux/dundee

Gary