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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 082e64fd28..482bfd430e 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -123,7 +123,10 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex)
return;
}
- folder = mail_tool_get_inbox (input->source_url, ex);
+ if (!strncmp (input->source_url, "mbox:", 5))
+ folder = mail_tool_do_movemail (input->source_url, ex);
+ else
+ folder = mail_tool_get_inbox (input->source_url, ex);
if (folder == NULL) {
/* This happens with an IMAP source and on error