From 76f1e0d6aa12d3cbc9400a8f523e67e052d4bd02 Mon Sep 17 00:00:00 2001 From: Ingo Klcker Date: Tue, 7 Jan 2003 23:07:32 +0000 Subject: [PATCH] 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 --- kmmessage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kmmessage.cpp b/kmmessage.cpp index 6c50ca343..2c459134b 100644 --- a/kmmessage.cpp +++ b/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");