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

Re: [Mutt] #2995: Mutt is folding subject line folds using a tab,



#2995: Mutt is folding subject line folds using a tab, which appears to be 
against
RFC 2822
----------------------+-----------------------------------------------------
  Reporter:  frnkblk  |       Owner:  mutt-dev                  
      Type:  defect   |      Status:  new                       
  Priority:  minor    |   Milestone:  1.6                       
 Component:  mutt     |     Version:  1.5.17                    
Resolution:           |    Keywords:  header folding white-space
----------------------+-----------------------------------------------------

Comment(by Rocco Rutte):

 {{{
 [ Sorry for the looong delay, I just overlooked this one. ]

 Hi,

 * Derek Martin wrote:


 Yepp, this is what it's like now, i.e. broken.

 I was more justifying why, in my re-implementation, decided to keep
 using one function for display and send purposes. With my patch, folding
 works correctly. Again, folding is done not for all headers but only for
 those who need it, others including their way of folding are kept as-is.


 Oh, that's a really good point. At each edit (from the compose menu),
 Mutt know unfolds the header and refolds it using the new logic. I bet
 it throws \t away as part of unfolding :-(. I think it has to unfold the
 header as otherwise the user would have to do folding by hand. E.g. the
 user may change

       Subject: quite long
        folded long line
        another line

 to:

       Subject: quite long and even longer
        folded long line
        another line that gets way too long

 Not stripping the \t when unfolding is technically correct and is what
 RfC2822 says, but it'll break messages sent by mutt in the past made
 with wrong folding (upon reply, the header is already folded and so not
 touched by the folding implementation)... :(


 I disagree now that I rewrote it and it passes my simple tests. :-) Did
 you have a chance to try the patch?

 Rocco
 }}}

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