On Wed, Mar 09, 2011 at 05:42:17PM -0600, Will Fiveash wrote:
> I'd like to have the Subject: of an e-mail I'm creating set to a default
> string based on the recipient.  Is that possible via send-hook or some
> other method and if so can someone provide an example?
> 
> Here's what I'm thinking:
> 
> send-hook '[email protected]' 'my_hdr Subject: Receipts for Expense Report #'
> 
> (which doesn't work).

Found this:
http://does-not-exist.org/mail-archives/mutt-dev/msg11121.html

Which points to the manual (Section 3.19)...

[start manual citation]

Note

send-hook's are only executed once after getting the initial list of
recipients. Adding a recipient after replying or editing the message
will not cause any send-hook to be executed, similarly if $autoedit is
set (as then the initial list of recipients is empty). Also note that
my_hdr commands which modify recipient headers, or the message's
subject, don't have any effect on the current message when executed from
a send-hook.

[end]

I tried what you're trying, it seems like it will set the subject of the
next message you compose.

-- 
Monte

Reply via email to