From e413c307c23fa65f910038b604422299c6d6a0ea Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 11 Sep 2000 17:59:20 +0000 Subject: If we're fetching from an mbox formatted file then we need to do some 2000-09-11 Jeffrey Stedfast * mail-ops.c (do_fetch_mail): If we're fetching from an mbox formatted file then we need to do some special-casing. svn path=/trunk/; revision=5329 --- mail/ChangeLog | 5 +++++ mail/mail-ops.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 624727e1b0..3c9634948f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-09-11 Jeffrey Stedfast + + * mail-ops.c (do_fetch_mail): If we're fetching from an mbox + formatted file then we need to do some special-casing. + 2000-09-11 Christopher James Lahey * mail-display.c: Fixed some warnings. 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 -- cgit v1.2.3