diff options
author | Not Zed <NotZed@Ximian.com> | 2001-01-24 06:52:03 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-01-24 06:52:03 +0800 |
commit | 9987f05606dbc3075b12f594ec3084ff4fe1a365 (patch) | |
tree | 2f7fe37ae59a3c82ca33bdac5b8c20534bf59b71 | |
parent | 4c003b7cb6032395214fbe6a3837d152ce3f470f (diff) | |
download | gsoc2013-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
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-ops.c | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 970d73a891..c5aca3cc12 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +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. + 2001-01-23 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (build_dialogue): Make sure the source->url is 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); |