diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-25 04:12:47 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-25 04:12:47 +0800 |
commit | 49bad5e10fbf9a6f084d53ff1076df4f10aff049 (patch) | |
tree | 1b7d7ce712ac52086b96abcaa8d428cc038bd303 /mail/mail-local.c | |
parent | 1ec137b9d68f02523919059d9bc4c22dea581c07 (diff) | |
download | gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.gz gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.zst gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.zip |
Do a case-insensitive comparison. (mail_generate_reply): Only resort to
2001-07-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (guess_me): Do a case-insensitive comparison.
(mail_generate_reply): Only resort to the source account's
identity if we can't find out which identity to use based on the
recipients of the message first.
* mail-config.c (mail_config_get_default_account): Make sure to
return the 0th account if we don't have a default. We don't want
to return NULL.
* mail-callbacks.c (empty_trash): Use mail_tool_get_trash for the
remote store trash folders.
* mail-tools.c (mail_tool_get_trash): New convenience function.
svn path=/trunk/; revision=11353
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 2238a4ecd2..1999033964 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -502,7 +502,7 @@ register_folder_registered(struct _mail_msg *mm) if (local_folder->folder) { gchar *name; - + g_hash_table_insert (local_folder->local_store->folders, local_folder->uri + 8, local_folder); /* Remove the circular ref once the local store knows aboutthe folder */ @@ -510,20 +510,20 @@ register_folder_registered(struct _mail_msg *mm) /* add the folder to the vfolder lists FIXME: merge stuff above with this */ vfolder_register_source(local_folder->folder); - + mail_folder_cache_set_update_lstorage (local_folder->uri, local_folder->local_store->corba_local_storage, local_folder->path); - + name = strrchr (local_folder->path, '/'); if (name) /* should always be true... */ { name += 1; /* skip the slash */ mail_folder_cache_note_name (local_folder->uri, name); } - + /* Do this after specifying the name so it isn't 'mbox' */ mail_folder_cache_note_folder (local_folder->uri, local_folder->folder); - + m->local_folder = NULL; } } @@ -532,7 +532,7 @@ static void register_folder_free(struct _mail_msg *mm) { struct _register_msg *m = (struct _register_msg *)mm; - + if (m->local_folder) free_local_folder(m->local_folder); } @@ -554,24 +554,24 @@ local_storage_new_folder_cb (EvolutionStorageListener *storage_listener, MailLocalFolder *local_folder; struct _register_msg *m; int id; - + if (strcmp (folder->type, "mail") != 0 || strncmp (folder->physical_uri, "file://", 7) != 0 || strncmp (folder->physical_uri + 7, local_store->local_path, local_store->local_pathlen) != 0) return; - + local_folder = g_new0 (MailLocalFolder, 1); local_folder->name = g_strdup (strrchr (path, '/') + 1); local_folder->path = g_strdup (path); local_folder->uri = g_strdup (folder->physical_uri); local_folder->local_store = local_store; camel_object_ref((CamelObject *)local_store); - + m = mail_msg_new(®ister_folder_op, NULL, sizeof(*m)); - + m->local_folder = local_folder; - + /* run synchronous, the shell expects it (I think) */ id = m->msg.seq; e_thread_put(mail_thread_queued, (EMsg *)m); @@ -587,13 +587,13 @@ local_storage_removed_folder_cb (EvolutionStorageListener *storage_listener, MailLocalFolder *local_folder; char *physical_path; char *tmpname; - + physical_path = e_path_to_physical (local_store->local_path, path); - + if (strncmp (physical_path, local_store->local_path, local_store->local_pathlen) != 0) return; - + tmpname = strchr (physical_path, '/'); if (tmpname) { while (*tmpname == '/') @@ -604,13 +604,13 @@ local_storage_removed_folder_cb (EvolutionStorageListener *storage_listener, } else local_folder = NULL; - + if (local_folder) { g_hash_table_remove (local_store->folders, tmpname); - + free_local_folder (local_folder); } - + g_free (physical_path); } |