diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-12-05 04:31:48 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-12-05 04:31:48 +0800 |
commit | 71fbb45aa0a66ba86d26455926395c73da544647 (patch) | |
tree | 2ead9902968373b53034c4d6020d55d224aefdc5 /mail/mail-ops.c | |
parent | ba0792d8ffa88e2a9be12aa547fa9d8fc5257e5b (diff) | |
download | gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar.gz gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar.bz2 gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar.lz gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar.xz gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.tar.zst gsoc2013-evolution-71fbb45aa0a66ba86d26455926395c73da544647.zip |
Fixes bug #51618
2003-12-04 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #51618
* mail-ops.c (empty_trash_empty): Get the proper local folders
store uri (it's not file:/ anymore).
svn path=/trunk/; revision=23636
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 7174ea1b71..1f5e75cb42 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1689,15 +1689,23 @@ static char *empty_trash_desc(struct _mail_msg *mm, int done) static void empty_trash_empty(struct _mail_msg *mm) { struct _empty_trash_msg *m = (struct _empty_trash_msg *)mm; + const char *evolution_dir; CamelFolder *trash; - - if (m->account) + char *uri; + + if (m->account) { trash = mail_tool_get_trash (m->account->source->url, FALSE, &mm->ex); - else - trash = mail_tool_get_trash ("file:/", TRUE, &mm->ex); + } else { + evolution_dir = mail_component_peek_base_directory (mail_component_peek ()); + uri = g_strdup_printf ("mbox:%s/mail/local", evolution_dir); + trash = mail_tool_get_trash (uri, TRUE, &mm->ex); + g_free (uri); + } + if (trash) camel_folder_expunge (trash, &mm->ex); - camel_object_unref(trash); + + camel_object_unref (trash); } static void empty_trash_emptied(struct _mail_msg *mm) |