On Mon, Dec 03, 2001 at 03:04:22PM -0500, David T-G wrote: > Roman -- > > ...and then Roman Neuhauser said... > % Hi there, > % > % is there a means to let mutt perform an action on the message it sends > % out _when_ it sends it? All the documented hooks take place long before > > Not AFAIK. > > > % this happens... To be more specific, I'm looking for a way to delay the > % inserting of the signature until the moment the message goes off. > % I know my own signature, I don't need to see it every time I write an > % email. :) > > If it really bothers you that much, unset $signature and $sig_dashes and > then modify your editor command to append your signature file onto the > temp file after the real editor completes. Note that re-editing a file > will cause duplicate signatures, so you might also tell your editor to > find the sig_dashes and delete from there down before jumping back to > the beginning of the message.
Would this work? send-hook . "set signature='.signature'" message-hook . "set signature=''" Although you might have a problem if replying to the same message twice in a row without changing messages. > > The code is left as an exercise for the reader ;-) > > > % > % TIA > > HTH & HAND > > > % > % -- > % Roamn > % > % FreeBSD 4.4-STABLE > % 5:39PM up 41 days, 4:22, 16 users, load averages: 0.06, 0.03, 0.04 > > > :-D > -- > David T-G * It's easier to fight for one's principles > (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie > (work) [EMAIL PROTECTED] > http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! > Curt -- Any time things appear to be going better, you have overlooked something.