X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fplugins%2Fspamassassin%2Fspamassassin.c;h=23085ac19e9033323e3c3503021806b5aa1c5e95;hp=e370303a3b4cba9600bd47451de49a148d5399a9;hb=2787580032c69b41e179b31651abf811620e8c45;hpb=65c0567a0c79fa5a080168209f4e611e8e85b34c diff --git a/src/plugins/spamassassin/spamassassin.c b/src/plugins/spamassassin/spamassassin.c index e370303a3..23085ac19 100644 --- a/src/plugins/spamassassin/spamassassin.c +++ b/src/plugins/spamassassin/spamassassin.c @@ -271,13 +271,20 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data) } if (error) { - if (!warned_error) { - alertpanel_error(_("The SpamAssassin plugin couldn't filter " + gchar *msg = _("The SpamAssassin plugin couldn't filter " "a message. The probable cause of the error " "is an unreachable spamd daemon. Please make " - "sure spamd is running and accessible.")); + "sure spamd is running and accessible."); + if (!prefs_common.no_recv_err_panel) { + if (!warned_error) { + alertpanel_error(msg); + } + warned_error = TRUE; + } else { + gchar *tmp = g_strdup_printf("%s\n", msg); + log_error(tmp); + g_free(tmp); } - warned_error = TRUE; } return FALSE;