# set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
# set followup_to
# unset force_name
+# unset forward_attachment
# set forward_decode
# unset forward_decrypt
# set forward_format="[%a: %s]"
Also see the <ref id="record" name="$record"> variable.
+<sect2>forward_attachment<label id="forward_attachment">
+<p>
+Type: boolean<newline>
+Default: unset
+
+When set, and you (tag-)forward attachments from the Attachment menu,
+Mutt creates a new message with the specified attachments <em/only/.
+<ref id="forward_format" name="$forward_format"> is used
+to set the default subject.
+
+When unset, Mutt creates a pseudo-message comprising the tagged
+attachments and forwards that. See the section on Forwarding a message
+for details.
+
+For example: if you have a message containing a image/gif,
+application/octet-stream, or whatever attachment, you can go to the
+Attachment menu and forward ONLY that attachment to someone else.
+
+Basically, setting this variable produces the same effect as
+explicitly saving the attachment(s), composing a new message and then
+attaching the saved file(s).
+
<sect2>forward_decode<label id="forward_decode">
<p>
Type: boolean<newline>
if (mutt_prepare_edit_message (ctx, newhdr, hn) < 0)
{
mutt_free_header (&newhdr);
- return;
+ goto cleanup;
}
mutt_free_envelope (&newhdr->env);
if (hn->replied && !hdr->replied)
mutt_set_flag (Context, hdr, M_REPLIED, 1);
+cleanup:
+
if (ctx != Context)
{
mx_fastclose_mailbox (ctx);