aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-17 06:04:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-17 06:04:14 +0800
commit6bebd14b92660bd0c95eac2d003764b71e9253d1 (patch)
treea517df285b5dbaf54fa1c7e1a20e14ee69004657 /mail/mail-ops.c
parent29672fc78d4142c6666f8546f055278f485b83c2 (diff)
downloadgsoc2013-evolution-6bebd14b92660bd0c95eac2d003764b71e9253d1.tar.gz
gsoc2013-evolution-6bebd14b92660bd0c95eac2d003764b71e9253d1.tar.zst
gsoc2013-evolution-6bebd14b92660bd0c95eac2d003764b71e9253d1.zip
Use g_strcasecmp() when looking for a Trash folder - it may be lowercase
2001-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (add_vtrash_info): Use g_strcasecmp() when looking for a Trash folder - it may be lowercase or something funky. * mail-local.c (init_trash): No need to specify the vfolder expression here. This code was moved into camel-vtrash-folder.c ages ago. * component-factory.c: Let VTrash folders accept/export the same dnd types as normal folders. svn path=/trunk/; revision=11140
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index bcb171db80..3c8818020d 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -983,7 +983,8 @@ struct _get_folderinfo_msg {
void *data;
};
-static char *get_folderinfo_desc(struct _mail_msg *mm, int done)
+static char *
+get_folderinfo_desc (struct _mail_msg *mm, int done)
{
struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm;
char *ret, *name;
@@ -1004,7 +1005,7 @@ add_vtrash_info (CamelFolderInfo *info)
g_return_if_fail (info != NULL);
for (fi = info; fi->sibling; fi = fi->sibling) {
- if (!strcmp (fi->name, _("Trash")))
+ if (!g_strcasecmp (fi->name, _("Trash")))
break;
}
@@ -1036,7 +1037,8 @@ add_vtrash_info (CamelFolderInfo *info)
g_free (uri);
}
-static void get_folderinfo_get(struct _mail_msg *mm)
+static void
+get_folderinfo_get (struct _mail_msg *mm)
{
struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm;
guint32 flags = CAMEL_STORE_FOLDER_INFO_RECURSIVE;
@@ -1051,7 +1053,8 @@ static void get_folderinfo_get(struct _mail_msg *mm)
camel_operation_unregister(mm->cancel);
}
-static void get_folderinfo_got(struct _mail_msg *mm)
+static void
+get_folderinfo_got (struct _mail_msg *mm)
{
struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm;
@@ -1066,7 +1069,8 @@ static void get_folderinfo_got(struct _mail_msg *mm)
m->done(m->store, m->info, m->data);
}
-static void get_folderinfo_free(struct _mail_msg *mm)
+static void
+get_folderinfo_free (struct _mail_msg *mm)
{
struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm;
@@ -1082,7 +1086,8 @@ static struct _mail_msg_op get_folderinfo_op = {
get_folderinfo_free,
};
-int mail_get_folderinfo(CamelStore *store, void (*done)(CamelStore *store, CamelFolderInfo *info, void *data), void *data)
+int
+mail_get_folderinfo (CamelStore *store, void (*done)(CamelStore *store, CamelFolderInfo *info, void *data), void *data)
{
struct _get_folderinfo_msg *m;
int id;