aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-junk-hook.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-04-25 21:12:22 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-25 21:12:22 +0800
commit7ab42c2897e3b1d62bd47550d91ec85a55b651a5 (patch)
tree08d51cbc9948c95988fa47fa6024ad88062a8e75 /mail/em-junk-hook.h
parent2999fa6c7b07fa1a53a51cac013b56b2ace3852e (diff)
downloadgsoc2013-evolution-7ab42c2897e3b1d62bd47550d91ec85a55b651a5.tar.gz
gsoc2013-evolution-7ab42c2897e3b1d62bd47550d91ec85a55b651a5.tar.zst
gsoc2013-evolution-7ab42c2897e3b1d62bd47550d91ec85a55b651a5.zip
** Fix for bug #273041
2008-04-25 Milan Crha <mcrha@redhat.com> ** Fix for bug #273041 * mail/mail.error.xml: (junk-check-error), (junk-report-error), (junk-not-report-error): New error messages added. * mail/em-junk-hook.h: (struct _EMJunkHookTarget), (em_junk_error_quark): * mail/em-junk-hook.c: (manage_error), (em_junk_check_junk), (em_junk_report_junk), (em_junk_report_non_junk): Allow propagation of the error from the plugin in the hook target. * plugins/bogo-junk-plugin/bf-junk-filter.c: (pipe_to_bogofilter), (em_junk_bf_check_junk), (em_junk_bf_report_junk), (em_junk_bf_report_non_junk): Propagate possible errors to the UI. * sa-junk-plugin/em-junk-filter.c: (em_junk_sa_commit_reports), (em_junk_sa_validate_binary): Fix function prototype. * sa-junk-plugin/em-junk-filter.c: (pipe_to_sa_full), (em_junk_sa_test_spamd_running), (em_junk_sa_test_spamassassin), (pipe_to_sa), (em_junk_sa_run_spamd), (em_junk_sa_test_spamd), (em_junk_sa_is_available), (em_junk_sa_check_junk), (get_spamassassin_version), (em_junk_sa_report_junk), (em_junk_sa_report_non_junk): Propagate possible errors to the UI. svn path=/trunk/; revision=35415
Diffstat (limited to 'mail/em-junk-hook.h')
-rw-r--r--mail/em-junk-hook.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/em-junk-hook.h b/mail/em-junk-hook.h
index 952c0b914e..940607e323 100644
--- a/mail/em-junk-hook.h
+++ b/mail/em-junk-hook.h
@@ -43,8 +43,13 @@ typedef struct _EMJunkHookTarget EMJunkHookTarget;
typedef void (*EMJunkHookFunc)(struct _EPlugin *plugin, EMJunkHookTarget *data);
+GQuark em_junk_error_quark (void);
+
+#define EM_JUNK_ERROR em_junk_error_quark ()
+
struct _EMJunkHookTarget {
struct _CamelMimeMessage *m;
+ GError *error;
};
struct _EMJunkHookItem {