#3799: mutt -H <file> should modify the draft <file>, not create a copy
---------------------+----------------------
Reporter: vinc17 | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version: 1.5.24
Resolution: | Keywords:
---------------------+----------------------
Comment (by kevin8t8):
Just an update... After looking more closely, mutt_prepare_template()
takes either a FILE or a CONTEXT. So I think we just need to set up a
"fake" hdr parameter with offset=0 and content->length with the stat.size
of the file, and we can get that function to do the work of reading
everything in.
There still may be some funny issues with the msg after ci_send_message,
depending on whether it was sent, postponed, or just aborted. I'll have
to test those, but will deal with that after I get everything else
changed.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3799#comment:8>
Mutt <http://www.mutt.org/>
The Mutt mail user agent