diff options
author | Milan Crha <mcrha@redhat.com> | 2011-03-03 21:11:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-03-03 21:13:33 +0800 |
commit | f1e416438026e495a29ca36715e27964f7dc4b04 (patch) | |
tree | 6c85cc847fc857634870bc5dd644a3be342f2c3a /mail/mail-send-recv.c | |
parent | 0be641ea82d61a5967d4f34dde9bc3bbbb9aa7cf (diff) | |
download | gsoc2013-evolution-f1e416438026e495a29ca36715e27964f7dc4b04.tar.gz gsoc2013-evolution-f1e416438026e495a29ca36715e27964f7dc4b04.tar.zst gsoc2013-evolution-f1e416438026e495a29ca36715e27964f7dc4b04.zip |
Bug #643218 - Local delivery doesn't deliver after maildir migration
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |