aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-01-24 06:52:03 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-01-24 06:52:03 +0800
commit9987f05606dbc3075b12f594ec3084ff4fe1a365 (patch)
tree2f7fe37ae59a3c82ca33bdac5b8c20534bf59b71 /mail/mail-ops.c
parent4c003b7cb6032395214fbe6a3837d152ce3f470f (diff)
downloadgsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar.gz
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar.bz2
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar.lz
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar.xz
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.tar.zst
gsoc2013-evolution-9987f05606dbc3075b12f594ec3084ff4fe1a365.zip
Set the default folder when copying to mbox. This is a quick fix, i might
2001-01-24 Not Zed <NotZed@Ximian.com> * mail-ops.c (fetch_mail_fetch): Set the default folder when copying to mbox. This is a quick fix, i might need to do a slight redesign to clean it up. svn path=/trunk/; revision=7759
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0756a290c6..8be18a34e2 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2,12 +2,12 @@
/* mail-ops.c: callbacks for the mail toolbar/menus */
/*
- * Author :
- * Dan Winship <danw@helixcode.com>
- * Jeffrey Stedfast <fejj@helixcode.com>
- * Peter Williams <peterw@helixcode.com>
+ * Authors: Dan Winship <danw@helixcode.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
+ * Peter Williams <peterw@helixcode.com>
+ * Michael Zucchi <notzed@ximian.com>
*
- * Copyright 2000 Helix Code, Inc. (http://www.helixcode.com)
+ * Copyright 2000,2001 Ximian, Inc. (http://www.ximian.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -275,7 +275,10 @@ fetch_mail_fetch(struct _mail_msg *mm)
char *path = mail_tool_do_movemail (m->source_uri, &mm->ex);
if (path && !camel_exception_is_set (&mm->ex)) {
+ camel_folder_freeze(fm->destination);
+ camel_filter_driver_set_default_folder(fm->driver, fm->destination);
camel_filter_driver_filter_mbox(fm->driver, path, &mm->ex);
+ camel_folder_thaw(fm->destination);
if (!camel_exception_is_set (&mm->ex))
unlink (path);