From 4824927269ed26278e9cddc9d523ad813d0fd626 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 11 Aug 2000 19:07:13 +0000 Subject: Put the dont-try-to-get-mail-from-imap-sources check into a better spot svn path=/trunk/; revision=4750 --- mail/ChangeLog | 7 +++++++ mail/mail-ops.c | 7 +++++++ mail/mail-tools.c | 5 ----- 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 6096db8f28..34d7756c07 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2000-08-11 Peter Williams + + * mail-tools.c (mail_tool_fetch_mail_into_searchable): Don't + do the imap check here... it's a silly place. + + * mail-ops.c (do_fetch_mail): Do the imap check here. + 2000-08-11 JP Rosevear * mail-config-gui.c (service_page_new): Work around 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); diff --git a/mail/mail-tools.c b/mail/mail-tools.c index aa768c6def..d335416885 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -447,11 +447,6 @@ mail_tool_fetch_mail_into_searchable (const char *source_url, gboolean keep_on_s CamelFolder *search_folder = NULL; CamelFolder *spool_folder = NULL; - /* If using IMAP, don't do anything... */ - - if (!strncmp (source_url, "imap:", 5)) - return NULL; - /* If fetching mail from an mbox store, safely copy it to a * temporary store first. */ -- cgit v1.2.3