diff options
author | Dan Winship <danw@src.gnome.org> | 2000-10-20 04:32:54 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-10-20 04:32:54 +0800 |
commit | 172f70c6412b2af09ad400d3d4da39537866c466 (patch) | |
tree | 332560fa9316f1e5764871c636c3fd15eb63a27c /mail/mail-ops.c | |
parent | 24e77716ce81735b648302bc118557f2c9df273d (diff) | |
download | gsoc2013-evolution-172f70c6412b2af09ad400d3d4da39537866c466.tar.gz gsoc2013-evolution-172f70c6412b2af09ad400d3d4da39537866c466.tar.zst gsoc2013-evolution-172f70c6412b2af09ad400d3d4da39537866c466.zip |
For an imap store, just refresh the INBOX.
* mail-ops.c: (do_fetch_mail): For an imap store, just refresh the
INBOX.
* folder-browser-factory.c (control_deactivate): Don't sync
non-existent folders.
* message-list.c (nuke_uids): Don't traverse non-existent trees.
svn path=/trunk/; revision=6047
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 44660ce797..59a6e0cde3 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -129,9 +129,16 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) FilterContext *fc; FilterDriver *filter; FILE *logfile = NULL; + CamelFolder *folder; - /* If using IMAP, don't do anything... */ + /* FIXME: This shouldn't be checking for "imap" specifically. */ if (!strncmp (input->source_url, "imap:", 5)) { + folder = mail_tool_get_inbox (input->source_url, ex); + if (folder) { + camel_folder_refresh_info (folder, ex); + camel_object_unref (CAMEL_OBJECT (folder)); + } + data->empty = FALSE; return; } @@ -173,7 +180,7 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) } g_free (path); } else { - CamelFolder *folder = mail_tool_get_inbox (input->source_url, ex); + folder = mail_tool_get_inbox (input->source_url, ex); if (folder) { if (camel_folder_get_message_count (folder) > 0) { |