diff options
Diffstat (limited to 'src/libserver/milter_internal.h')
-rw-r--r-- | src/libserver/milter_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libserver/milter_internal.h b/src/libserver/milter_internal.h index 9087bdbfb..6473ed147 100644 --- a/src/libserver/milter_internal.h +++ b/src/libserver/milter_internal.h @@ -67,6 +67,7 @@ struct rspamd_milter_private { enum rspamd_milter_io_state state; int fd; gboolean discard_on_reject; + gboolean quarantine_on_reject; gboolean no_action; }; @@ -124,10 +125,12 @@ enum rspamd_milter_io_cmd { #define RSPAMD_MILTER_FLAG_ADDRCPT (1L<<2) /* filter may add recipients */ #define RSPAMD_MILTER_FLAG_DELRCPT (1L<<3) /* filter may delete recipients */ #define RSPAMD_MILTER_FLAG_CHGHDRS (1L<<4) /* filter may change/delete headers */ +#define RSPAMD_MILTER_FLAG_QUARANTINE (1L<<5) /* filter may request quarantine */ #define RSPAMD_MILTER_ACTIONS_MASK \ (RSPAMD_MILTER_FLAG_ADDHDRS | RSPAMD_MILTER_FLAG_ADDRCPT | \ - RSPAMD_MILTER_FLAG_DELRCPT | RSPAMD_MILTER_FLAG_CHGHDRS) + RSPAMD_MILTER_FLAG_DELRCPT | RSPAMD_MILTER_FLAG_CHGHDRS | \ + RSPAMD_MILTER_FLAG_QUARANTINE) enum rspamd_milter_connect_proto { RSPAMD_MILTER_CONN_UNKNOWN = 'U', |