]> granicus.if.org Git - neomutt/commit
Override draft headers with arguments. (closes #3580)
authorKevin McCarthy <kevin@8t8.us>
Sun, 3 Nov 2013 03:12:41 +0000 (20:12 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 3 Nov 2013 03:12:41 +0000 (20:12 -0700)
commit4282ce891e6edb8947858a58763b6380a3f11c38
treec2aad57ca96b95ecb0c92efbf2b148490b7d27f4
parentbd1af0917132700eff564179c3da669d8606cc13
Override draft headers with arguments. (closes #3580)

Currently, if the -H option is used, it is not possible to redefine the
recipient addresses with positional argument. This patch fixes it as
well as CC, Bcc, and Subject headers.

This patch is based on the patch by Petr Písař at
http://dev.mutt.org/trac/attachment/ticket/3580/override_draft_headers_with_arguments.patch

This version of the patch merges the To, Cc, and Bcc commandline
arguments into the template, and fixes a few small problems with the
previous patch.

This patch also moves the fin close outside the "if (tempfile)" block,
since it is opened outside that block.
main.c