diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 9 | ||||
-rw-r--r-- | mail/em-composer-utils.c | 6 | ||||
-rw-r--r-- | mail/em-folder-view.c | 6 |
3 files changed, 15 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index cd59d8a28e..c415ac891a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +2005-09-28 Tor Lillqvist <tml@novell.com> + + * em-composer-utils.c (reply_get_composer, get_reply_list, + post_reply_to_message) + * em-folder-view.c (emfv_format_link_clicked): Use + g_ascii_strncasecmp() instead of strncasecmp(). We are comparing + to literal ASCII strings, so just casefolding ASCII is + enough. Also better for portability. + 2005-09-28 Parthasarathi Susarla <sparthasarathi@novell.com> See bug ** 317329 diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 452cad9bca..90bb3f155c 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -1368,7 +1368,7 @@ reply_get_composer (CamelMimeMessage *message, EAccount *account, /* Set the subject of the new message. */ if ((subject = (char *) camel_mime_message_get_subject (message))) { - if (strncasecmp (subject, "Re: ", 4) != 0) + if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0) subject = g_strdup_printf ("Re: %s", subject); else subject = g_strdup (subject); @@ -1522,7 +1522,7 @@ get_reply_list (CamelMimeMessage *message, CamelInternetAddress *to) header++; /* check for NO */ - if (!strncasecmp (header, "NO", 2)) + if (!g_ascii_strncasecmp (header, "NO", 2)) return FALSE; /* Search for the first mailto angle-bracket enclosed URL. @@ -1998,7 +1998,7 @@ post_reply_to_message (CamelFolder *folder, const char *uid, CamelMimeMessage *m /* Set the subject of the new message. */ if ((subject = (char *) camel_mime_message_get_subject (message))) { - if (strncasecmp (subject, "Re: ", 4) != 0) + if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0) subject = g_strdup_printf ("Re: %s", subject); else subject = g_strdup (subject); diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 272da2e0c0..27e4e9452d 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -2376,13 +2376,13 @@ emfv_list_selection_change(ETree *tree, EMFolderView *emfv) static void emfv_format_link_clicked(EMFormatHTMLDisplay *efhd, const char *uri, EMFolderView *emfv) { - if (!strncasecmp (uri, "mailto:", 7)) { + if (!g_ascii_strncasecmp (uri, "mailto:", 7)) { em_utils_compose_new_message_with_mailto (uri, emfv->folder_uri); } else if (*uri == '#') { gtk_html_jump_to_anchor (((EMFormatHTML *) efhd)->html, uri + 1); - } else if (!strncasecmp (uri, "thismessage:", 12)) { + } else if (!g_ascii_strncasecmp (uri, "thismessage:", 12)) { /* ignore */ - } else if (!strncasecmp (uri, "cid:", 4)) { + } else if (!g_ascii_strncasecmp (uri, "cid:", 4)) { /* ignore */ } else { GError *err = NULL; |