[evolution] Bug #579315 - Identify filter names in filtering errors
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #579315 - Identify filter names in filtering errors
- Date: Mon, 10 Dec 2012 13:51:17 +0000 (UTC)
commit c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 10 14:50:18 2012 +0100
Bug #579315 - Identify filter names in filtering errors
libemail-engine/mail-ops.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c
index bd4b4f9..e2bcaa6 100644
--- a/libemail-engine/mail-ops.c
+++ b/libemail-engine/mail-ops.c
@@ -747,9 +747,18 @@ mail_send_message (struct _send_queue_msg *m,
goto exit;
/* sending mail, filtering failed */
- g_string_append_printf (
- err, _("Failed to apply outgoing filters: %s"),
- local_error->message);
+ if (g_error_matches (local_error, CAMEL_SERVICE_ERROR, CAMEL_SERVICE_ERROR_URL_INVALID) ||
+ g_error_matches (local_error, CAMEL_FOLDER_ERROR, CAMEL_FOLDER_ERROR_INVALID)) {
+ g_string_append_printf (err,
+ _("Failed to apply outgoing filters. One reason can be that folder "
+ "location set in one or more filters is invalid. Please check your "
+ "filters in Edit->Message Filters.\n"
+ "Original error was: %s"), local_error->message);
+ } else {
+ g_string_append_printf (
+ err, _("Failed to apply outgoing filters: %s"),
+ local_error->message);
+ }
g_clear_error (&local_error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]