From 7745ae29860377c3b44b47ed3929b7a881d10fe7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 22 Feb 2011 09:39:28 +0100 Subject: Bug #434972 - Reply does not detect "RE :" subject prefix --- mail/em-composer-utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/em-composer-utils.c') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 3f0c4b155a..40609f0f24 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -1966,8 +1966,10 @@ reply_get_composer (EShell *shell, /* Set the subject of the new message. */ if ((subject = (gchar *) camel_mime_message_get_subject (message))) { - if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0) + if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0 && g_ascii_strncasecmp (subject, "Re : ", 5) != 0) subject = g_strdup_printf ("Re: %s", subject); + else if (g_ascii_strncasecmp (subject, "Re : ", 5) == 0) + subject = g_strdup_printf ("Re: %s", subject + 5); else subject = g_strdup (subject); } else { -- cgit