aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-tools.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-25 04:12:47 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-25 04:12:47 +0800
commit49bad5e10fbf9a6f084d53ff1076df4f10aff049 (patch)
tree1b7d7ce712ac52086b96abcaa8d428cc038bd303 /mail/mail-tools.c
parent1ec137b9d68f02523919059d9bc4c22dea581c07 (diff)
downloadgsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar
gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.gz
gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.bz2
gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.lz
gsoc2013-evolution-49bad5e10fbf9a6f084d53ff1076df4f10aff049.tar.xz
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-tools.c')
-rw-r--r--mail/mail-tools.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c
index cd31fa067f..47f949ac10 100644
--- a/mail/mail-tools.c
+++ b/mail/mail-tools.c
@@ -133,6 +133,22 @@ mail_tool_get_inbox (const gchar *url, CamelException *ex)
return folder;
}
+CamelFolder *
+mail_tool_get_trash (const gchar *url, CamelException *ex)
+{
+ CamelStore *store;
+ CamelFolder *trash;
+
+ store = camel_session_get_store (session, url, ex);
+ if (!store)
+ return NULL;
+
+ trash = camel_store_get_trash (store, ex);
+ camel_object_unref (CAMEL_OBJECT (store));
+
+ return trash;
+}
+
/* why is this function so stupidly complex when allthe work is done elsehwere? */
char *
mail_tool_do_movemail (const gchar *source_url, CamelException *ex)