aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 06d49d42c9..ce99a75dad 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -110,6 +110,13 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException * ex)
CamelFolder *search_folder = NULL;
+ /* If using IMAP, don't do anything... */
+
+ if (!strncmp (input->source_url, "imap:", 5)) {
+ data->empty = FALSE;
+ return;
+ }
+
if (input->destination == NULL) {
input->destination = mail_tool_get_local_inbox (ex);