On Sat, Nov 27, 1999 at 12:35:13PM +0000, kevin lyda mentioned:
> anyway, mail. i keep thinking that mail systems aren't quite up to the
> level we need them. choosing from addresses based on the current folder
> is good, and also perhaps guessing from the To:/Cc: line might be good.
> And then maybe rules: if i'm mailing foo at example.com i should use my
>xyz at example.com address, but if it's bar at example.com, it should be from
>abc at example.com. of course a good ui to configure it, and making it act
> in a *predictable* way seem rather difficult.
Look at mutt. It has "send hooks" and "folder hooks". A send hook is
something like:
If I am sending to something that matches "linux.ie", set a header called
"Reply-to:" to be ilug at linux.ie and my "From:" header to be
jplooney-ilug at online.ie. The syntax for that would be:
send-hook ilug at linux.ie my_hdr From: jplooney-ilug at online.ie
send-hook ilug at linux.ie my_hdr Reply-to: ilug at linux.ie
You can use a folder hook to say "When I'm reading mail in the "ilug"
folder, set my From address to be valen at linux.ie, also set the 'sort'
variable to 'threaded'".
folder-hook =ilug "set sort=threaded"
folder-hook =ilug "my_hdr From: valen at linux.ie"
You can also set "default save patterns". As in, "If a mail is sent from
anyone at "hotmail.com", save it to the 'trash' folder".
save-hook hotmail.com =trash
Or, how about "When I've read my /var/spool/mail file, any read mail
should be saved to ~/Mail/oldmail".
mbox-hook /var/spool/mail/valen =oldmail
Does that do some of the stuff you want it to do ?
Kate
--
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!