diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-06-14 14:53:54 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-06-14 15:01:15 +0200 |
commit | e7d4ba71b13d591a12cc1556e8b34b10339b58d5 (patch) | |
tree | 1e027fe662b660f4454caf67ded471980b2799c2 | |
parent | 99886642f9a7570895a41287d2d5908a325b32c4 (diff) | |
download | rspamd-e7d4ba71b13d591a12cc1556e8b34b10339b58d5.tar.gz rspamd-e7d4ba71b13d591a12cc1556e8b34b10339b58d5.zip |
[Fix] Milter: Don't defer on "greylist" action
-rw-r--r-- | src/libserver/milter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index e6b40a70b..a564b3b2e 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -1491,7 +1491,6 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, rspamd_milter_send_action (session, RSPAMD_MILTER_REJECT); break; case METRIC_ACTION_SOFT_REJECT: - case METRIC_ACTION_GREYLIST: rcode = rspamd_fstring_new_init (RSPAMD_MILTER_RCODE_TEMPFAIL, sizeof (RSPAMD_MILTER_RCODE_TEMPFAIL) - 1); xcode = rspamd_fstring_new_init (RSPAMD_MILTER_XCODE_TEMPFAIL, @@ -1535,6 +1534,7 @@ rspamd_milter_send_task_results (struct rspamd_milter_session *session, rspamd_milter_send_action (session, RSPAMD_MILTER_ACCEPT); break; + case METRIC_ACTION_GREYLIST: case METRIC_ACTION_NOACTION: default: rspamd_milter_send_action (session, RSPAMD_MILTER_ACCEPT); @@ -1564,4 +1564,4 @@ rspamd_milter_get_session_pool (struct rspamd_milter_session *session) struct rspamd_milter_private *priv = session->priv; return priv->pool; -}
\ No newline at end of file +} |