Compose Flow#
This is a brief overview of the steps NeoMutt takes during message composition. It also shows the order and timing of hook execution.
Reply envelope settings.
$reverse_nameprocessing. To, Cc, Subject, References header defaults.my-header processing for To, Cc, Bcc, Subject headers.
Prompts for To, Cc, Bcc, Subject headers. See
$ask_cc,$ask_bcc,$fast_reply.From header setting. Note: this is so send-hooks below can match
~P, but From is re-set further below in case a send-hook changes the value.reply-hook
send-hook
From header setting.
my-header processing for From, Reply-To, Message-ID and user-defined headers. The To, Cc, Bcc, Subject, and Return-Path headers are ignored at this stage.
Message body and signature generation.
send2-hook
$real_namepart of From header setting.$editorinvocation for the message.send2-hook
Cryptographic settings.
fcc-hook. Fcc setting.
Compose menu. Note: send2-hook is evaluated each time the headers are changed.
π· Screenshot Needed
Subject: Compose menu during message composition
Description: The NeoMutt compose screen at step 16 of the flow, showing all header fields (From, To, Cc, Bcc, Subject, Reply-To, Fcc), the security/encryption settings, and the attachment list. The message has been edited and is ready for final review before sending.
Highlights: The complete compose menu layout β header fields at the top, attachment list below, and the available key bindings (send, edit, attach, postpone, etc.) in the help bar.
This is the stage where :send2-hook fires on each header change.
Message encryption and signing. Key selection.
Fcc saving if
$fcc_before_sendis set. (Note the variable documentation for caveats of Fccβing before sending.)Message sending.
Fcc saving if
$fcc_before_sendis unset (the default). The Fcc used to be saved before sending the message. It is now by default saved afterwards, but if the saving fails, the user is prompted.