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

Re: [Mutt] #3364: index_format: subject length miscalculated after



On Sat, Dec 26, 2009 at 05:31:56PM -0000, Mutt wrote:
> #3364: index_format: subject length miscalculated after subject has changed
> --------------------+-------------------------------------------------------
>  Reporter:  dp      |       Owner:  mutt-dev
>      Type:  defect  |      Status:  new     
>  Priority:  minor   |   Milestone:          
> Component:  mutt    |     Version:          
>  Keywords:          |  
> --------------------+-------------------------------------------------------
>  Hello,
> 
>  if the subject has changed, its length is miscalculated in index view when
>  viewing threads.
> 
>  I use:
>  set index_format=" %4C %Z %4M %s%*   %-20.20n "
> 
>  An example:
> 
>  The subject of the first email is:[[BR]]
>  Subject: aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn[[BR]]
>  The subject of the second email is:[[BR]]
>  Subject: [ABCDE] aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm
>  nnn[[BR]]
> 
>  The second email is a reply to the first. The index looks like this:
> 
>    1 r F      aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk  Dennis
>  Preiser[[BR]]
>    2   F      `->[ABCDE] aaa bbb ccc ddd eee fff ggg hhh iii jj  Dennis
>  Preiser[[BR]]

Ui, looks strange. Here a 'clean' version:

Both subjects:
Subject: aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn
Subject: [ABCDE] aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn

My index_format:
set index_format=" %4C %Z %4M %s%*   %-20.20n "

Result:

    1 r F      aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk  Dennis Preiser
    2   F      `->[ABCDE] aaa bbb ccc ddd eee fff ggg hhh iii jj  Dennis Preiser

The second subject has to be cut of right before the first 'i'.

>  The subject of #1 is proper truncated but the subject of #2 is not.  The
>  second subject has to be cut of earlier.

Dennis