From eac4adfbf61b7f090db0713dbdaa5f4dd081e751 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 3 Mar 2011 14:11:41 +0100 Subject: Bug #643218 - Local delivery doesn't deliver after maildir migration --- mail/mail-send-recv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mail/mail-send-recv.c') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 3ca7b23d58..e548d8b596 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -39,6 +39,7 @@ #include "e-mail-session.h" #include "em-event.h" #include "em-filter-rule.h" +#include "em-utils.h" #include "mail-folder-cache.h" #include "mail-mt.h" #include "mail-ops.h" @@ -382,9 +383,9 @@ get_receive_type (const gchar *url) { CamelProvider *provider; - /* HACK: since mbox is ALSO used for native evolution trees now, we need to - fudge this to treat it as a special 'movemail' source */ - if (!strncmp(url, "maildir:", 8)) + /* mbox pointing to a file is a 'Local delivery' source + which requires special processing */ + if (em_utils_is_local_delivery_mbox_file (url)) return SEND_RECEIVE; provider = camel_provider_get (url, NULL); -- cgit v1.2.3