From 5a2a24af928e27bea1e54734b5bdf62a226300af Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 3 Aug 2000 00:35:45 +0000 Subject: Trim trailing space from the subject. I've now seen replies from two * camel-mime-message.c (camel_mime_message_set_subject): Trim trailing space from the subject. I've now seen replies from two different people that tricked the threading code by (a) not having References/In-Reply-To, and (b) adding an extra space to the end of the subject line so the subject-based threading fails too. Who writes these broken mailers anyway? svn path=/trunk/; revision=4495 --- camel/camel-mime-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-mime-message.c') diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index e511fece7a..f0b3ea4a70 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -256,7 +256,7 @@ camel_mime_message_set_subject (CamelMimeMessage *mime_message, g_assert (mime_message); g_free(mime_message->subject); - mime_message->subject = g_strdup(subject); + mime_message->subject = g_strchomp(g_strdup(subject)); text = header_encode_string(subject); CAMEL_MEDIUM_CLASS(parent_class)->set_header((CamelMedium *)mime_message, "Subject", text); g_free(text); -- cgit v1.2.3