aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-08-13 04:20:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-08-13 04:20:19 +0800
commit5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050 (patch)
tree5c9ee882b5162d4d1af1c81b0dfdf7855195a63c
parent1d5b61d3d0231f70846b14330309e9cd7c827e97 (diff)
downloadgsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar.gz
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar.bz2
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar.lz
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar.xz
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.tar.zst
gsoc2013-evolution-5e090dfdc0332a211f7f9ceb1e57e0dfcd1a7050.zip
use g_string_append_len when appending a subset of a string rather than g_string_append, duh.
svn path=/trunk/; revision=26890
-rw-r--r--camel/camel-mime-utils.c2
-rw-r--r--camel/providers/imap4/camel-imap4-summary.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 314359c654..8ce61e0b4e 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1151,7 +1151,7 @@ header_decode_text (const char *in, size_t inlen, int ctext, const char *default
append = append_quoted_pair;
} else {
mask = (CAMEL_MIME_IS_LWSP);
- append = g_string_append;
+ append = g_string_append_len;
}
out = g_string_new ("");
diff --git a/camel/providers/imap4/camel-imap4-summary.c b/camel/providers/imap4/camel-imap4-summary.c
index ed4a9cbde9..fec70c2b12 100644
--- a/camel/providers/imap4/camel-imap4-summary.c
+++ b/camel/providers/imap4/camel-imap4-summary.c
@@ -630,13 +630,13 @@ courier_imap_is_a_piece_of_shit (CamelFolderSummary *summary, guint32 msg)
CamelSession *session = ((CamelService *) ((CamelFolder *) imap->folder)->parent_store)->session;
char *warning;
- warning = g_strdup_printf ("IMAP server did not respond with an untagged FETCH response for\n"
- "message #%u. This is illegal according to rfc3501 (and the older\n"
- "rfc2060). You will need to contact your Administrator(s) (or ISP)\n"
- "and have them resolve this issue.\n\n"
- "Hint: If your IMAP server is Courier-IMAP, it is likely that this\n"
- "message is simply unreadable by the IMAP server and will need to\n"
- "be given read permissions.\n", msg);
+ warning = g_strdup_printf ("IMAP server did not respond with an untagged FETCH response "
+ "for message #%u. This is illegal according to rfc3501 (and "
+ "the older rfc2060). You will need to contact your\n"
+ "Administrator(s) (or ISP) and have them resolve this issue.\n\n"
+ "Hint: If your IMAP server is Courier-IMAP, it is likely that this "
+ "message is simply unreadable by the IMAP server and will need "
+ "to be given read permissions.", msg);
camel_session_alert_user (session, CAMEL_SESSION_ALERT_WARNING, warning, FALSE);
g_free (warning);