On Fri, Apr 08, 2011 at 01:39:29PM +0200, Richard wrote:
> Hi,
> 
> I wanted to have text_flowed enabled for certain recipients which would
> seem easy enough using send-hook, so tried
> 
>  send-hook . 'set text_flowed=no'
>  send-hook '~t username' 'set text_flowed=yes'
> 
> to my surprise, this does not work as expected. The hook is executed, no 
> error, 
> no effect - any idea what the problem is?

I had a similar issue and here is the reply I got:

    Date: Wed, 09 Mar 2011 22:23:06 -0400
    From: Monte Stevens <[email protected]>
    Subject: Re: how to set a default subject via send-hook?
    To: [email protected]
    Cc: Will Fiveash <[email protected]>

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

And another follow up from Monte:

One of the best explanations as to why it is the way it is:

http://marc.info/?l=mutt-users&m=127134610222635&w=2

Hopefully you can crack this egg.

--
Monte

-- 
Will Fiveash

Reply via email to