Bug 313516

Summary: Make "Group by subject" more intelligent, i.e. fuzzy
Product: [Applications] kmail2 Reporter: Matthias Nagel <matthias.nagel>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: 4.9.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthias Nagel 2013-01-19 17:51:15 UTC
I like to group my mails by subject. Actually this works quite well, but there is one very annoying problem:

The mails are only grouped if the subject lines matches exactly. This means, everytime a mail is answered or forwarded and thereby extended by a "Fwd:" or "Re:" in the subject line, the mails are not grouped together.

Please modify the grouping decision such that words like "Fwd:", "Re:" and so on are ignored. (Probably additional or missing blanks at the beginning/end are wise to be ignored, too.)

Otherwise grouping by subject is worseless in most cases.

Reproducible: Always

Steps to Reproduce:
1. Take a email folder and set the view such that the mails are grouped by subject
2. Write an email with subject line "Foo".
3. Wait for an answer with subject line "Re: Foo" or "Fwd: Foo"
Actual Results:  
The mails with the subject lines
"Foo", "Re: Foo", "Fwd: Foo", "Re: Fwd: Re: Foo" and so on
are not grouped together.

Expected Results:  
Mails with the same subject line excecpt for the keywords "Re:",  "Fwd:" and similar are groups together.