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 [EMAIL PROTECTED] > else > send mail from [EMAIL PROTECTED]
Here's how I would do it: folder-hook . unmy_hdr * folder-hook . my_hdr From: Paul Mackinney <[EMAIL PROTECTED]> folder-hook college.mbox my_hdr From: Paul Mackinney <[EMAIL PROTECTED]> 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. Craig