Re: Which mail user agent do you use?
Paul Mackinney wrote:
> Could someone post a concrete example of using folder hooks to
> switch the "From: " header depending on which folder you're in?
> I'd like to use the following logic:
> if current folder is college.mbox
> send mail from firstname.lastname@example.org
> send mail from email@example.com
Here's how I would do it:
folder-hook . unmy_hdr *
folder-hook . my_hdr From: Paul Mackinney <firstname.lastname@example.org>
folder-hook college.mbox my_hdr From: Paul Mackinney <email@example.com>
The first line clears all header customizations; the second, with the
folder name specified as ".", sets the default for all folders that
don't have their own hook; the third says that in the folder
"college.mbox", the From: line should be set to use the .edu account.