diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-08 02:18:17 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-08 02:18:17 +0800 |
commit | c2b4339041465f502db05e7042db2a053d8fef8e (patch) | |
tree | ea28bdae10cae0da1077ab107d792cb767db8563 /camel | |
parent | 520d69a638ea90f6114a8a7ef296317d64b65393 (diff) | |
download | gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar.gz gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar.bz2 gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar.lz gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar.xz gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.tar.zst gsoc2013-evolution-c2b4339041465f502db05e7042db2a053d8fef8e.zip |
Do a g_strstrip on the subject so we can stop getting those annoying
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com>
* camel-mime-message.c (camel_mime_message_set_subject): Do a
g_strstrip on the subject so we can stop getting those annoying
leading spaces
svn path=/trunk/; revision=4571
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-mime-message.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index ef9aebeb76..7bce861e25 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> + + * camel-mime-message.c (camel_mime_message_set_subject): Do a + g_strstrip on the subject so we can stop getting those annoying + leading spaces + 2000-08-07 Dan Winship <danw@helixcode.com> * camel-folder.c (camel_folder_free_deep): Fix this to not require diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index f0b3ea4a70..ca77917047 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_strchomp(g_strdup(subject)); + mime_message->subject = g_strstrip (g_strdup (subject)); text = header_encode_string(subject); CAMEL_MEDIUM_CLASS(parent_class)->set_header((CamelMedium *)mime_message, "Subject", text); g_free(text); |