diff options
author | Milan Crha <mcrha@redhat.com> | 2012-12-10 21:50:18 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-12-10 21:51:02 +0800 |
commit | c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184 (patch) | |
tree | fd849d4380f080b62229e5c8eb75de2f3f5c59b4 /libemail-engine | |
parent | dd73ca42e783ddba475b72512578a76aba10e821 (diff) | |
download | gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar.gz gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar.bz2 gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar.lz gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar.xz gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.tar.zst gsoc2013-evolution-c5eb6afc0f79bf16fcb5f4bd119b82ac7a188184.zip |
Bug #579315 - Identify filter names in filtering errors
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | 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 bd4b4f9676..e2bcaa6894 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); } |