<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3378: In "mailto:" URL, if no In-Reply-To header, References header is ignored



#3378: In "mailto:"; URL, if no In-Reply-To header, References header is ignored
------------------------------+---------------------------------------------
 Reporter:  antonio@â         |       Owner:  mutt-dev
     Type:  defect            |      Status:  new     
 Priority:  trivial           |   Milestone:          
Component:  mutt              |     Version:  1.5.20  
 Keywords:  patch             |  
------------------------------+---------------------------------------------
 Forwarding from http://bugs.debian.org/568295

 {{{
 When giving a "References" header in a "mailto:"; URL, it does not end
 up in the final message. Running mutt in gdb shows that it gets
 successfully parsed and put in the envelope of the message (very
 precisely, it gets put in the ENVELOPE structure for the message), but
 after editing the message, the References header is removed. The
 comment around where it is done (see attached patch) suggests that
 this is because mutt believes the user *removed* the In-Reply-To
 header. But there was none to start with, so the user did not remove
 it. The attached patch fixes the removal condition to not trigger if
 there was no In-Reply-To header in the message before editing.

 To reproduce the bug:

   mutt
 'mailto:yourself@xxxxxxxxxxx?References=<me@localhost>&Subject=Test'

 Send the mail, see it has no "References" header. Compare with

   mutt 'mailto:yourself@xxxxxxxxxxx?References=<me@localhost>&In-Reply-
 To=<you@localhost>&Subject=Test'

 Where both headers will be present.
 }}}

 The attacched patch fixes the problem

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