From 7ab42c2897e3b1d62bd47550d91ec85a55b651a5 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 25 Apr 2008 13:12:22 +0000 Subject: ** Fix for bug #273041 2008-04-25 Milan Crha ** 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 --- mail/em-junk-hook.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mail/em-junk-hook.h') 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 { -- cgit v1.2.3