From 4ea9bff24d4a444aacd7974d278b59c8b92ba628 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 20 Apr 2009 18:36:36 +0200 Subject: [PATCH] Better document that some send-hooks can't work with $autoedit. Closes #1834. --- doc/manual.xml.head | 15 +++++++++------ init.h | 5 +++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/doc/manual.xml.head b/doc/manual.xml.head index ca5fd80a5..d65cf7e4c 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -3371,12 +3371,15 @@ signatures based upon the recipients. -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. 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. +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, +similarily 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. diff --git a/init.h b/init.h index b28dece0e..f4ba6549b 100644 --- a/init.h +++ b/init.h @@ -280,6 +280,11 @@ struct option_t MuttVars[] = { ** message. The send-menu may still be accessed once you have finished ** editing the body of your message. ** .pp + ** .pp + ** \fBNote:\fP when this option is \fIset\fP, you cannot use send-hooks that depend + ** on the recipients when composing a new (non-reply) message, as the initial + ** list of recipients is empty. + ** .pp ** Also see $$fast_reply. */ { "beep", DT_BOOL, R_NONE, OPTBEEP, 1 }, -- 2.40.0