#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):

 I didn't have much time during the weekend to work on this.

 It looks like I should be using mutt_write_rfc822_header() and
 mutt_write_mime_body() to write out the draft file (instead of
 mutt_write_fcc()) to avoid the problems mentioned in comment:5.

 So far I'm having trouble finding a straight-forward way to correctly deal
 with reading in a multipart draft file.  If we can parse it all into the
 HEADER, then it looks possible to modify (add a flag to) ci_send_message()
 to "preserve" the HEADER->content constructed from the caller (right now,
 it creates and prepends a new parent BODY, preserving any attachments
 generated by the caller).

 If any of you have a pointer to relevant code, please let me know.
 Otherwise I'll spend some more time this week looking through the message
 parsing code to see if anything is directly usable outside of CONTEXTs.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3799#comment:7>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to