]> granicus.if.org Git - mutt/commitdiff
Better document that some send-hooks can't work with $autoedit. Closes #1834.
authorChristoph Berg <cb@df7cb.de>
Mon, 20 Apr 2009 16:36:36 +0000 (18:36 +0200)
committerChristoph Berg <cb@df7cb.de>
Mon, 20 Apr 2009 16:36:36 +0000 (18:36 +0200)
doc/manual.xml.head
init.h

index ca5fd80a5b5803226b16ef8f704089d5935254ac..d65cf7e4c5bd7612b4c83c0bee736b27fdf739d6 100644 (file)
@@ -3371,12 +3371,15 @@ signatures based upon the recipients.
 
 <note>
 <para>
-<literal>send-hook</literal>'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
-<link linkend="my-hdr"><literal>my&lowbar;hdr</literal></link> commands which modify recipient headers, or the message's
-subject, don't have any effect on the current message when executed
-from a <literal>send-hook</literal>.
+<literal>send-hook</literal>'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 <link linkend="autoedit">&dollar;autoedit</link> is set
+(as then the initial list of recipients is empty). Also note that <link
+linkend="my-hdr"><literal>my&lowbar;hdr</literal></link> commands which
+modify recipient headers, or the message's subject, don't have any
+effect on the current message when executed from a
+<literal>send-hook</literal>.
 </para>
 </note>
 
diff --git a/init.h b/init.h
index b28dece0ef9597ae005007ae6bbebccb8993f8bd..f4ba6549b2462d4b2a79748f8367320a9e01034c 100644 (file)
--- 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 },