Make KMail ignore mangled In-reply-to headers which are created by a missconfigured Mutt. This makes KMail correctly thread the messages Rob sent to kde-core-devel with Mutt.

svn path=/trunk/kdenetwork/kmail/; revision=198115
wilder-work
Ingo Klcker 24 years ago
parent 779715de45
commit 76f1e0d6aa
  1. 6
      kmmessage.cpp

@ -2060,7 +2060,11 @@ QString KMMessage::replyToId(void) const
replyTo = replyTo.mid( leftAngle );
// if we have found a good message id we can return immediately
if (!replyTo.isEmpty() && (replyTo[0] == '<'))
// We ignore mangled In-Reply-To headers which are created by a
// missconfigured Mutt. They look like this <"from foo"@bar.baz>, i.e.
// they contain double quotes and spaces. We only check for '"'.
if (!replyTo.isEmpty() && (replyTo[0] == '<') &&
( -1 == replyTo.find( '"' ) ) )
return replyTo;
references = headerField("References");

Loading…
Cancel
Save