diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-09-04 07:28:28 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2019-09-04 07:28:28 +0000 |
commit | 25ec6d31a0c94482a4417c028f52b1ee69b34eff (patch) | |
tree | 500f3027b1d6f99936ff0e05b8839f2902fcc908 /usr.sbin/smtpd/smtpd.h | |
parent | 7c604d467f13611322a8f9ce40c3e41fd2d71d71 (diff) |
introduce the 'junk' builtin filter action which marks a session or
transaction as junked when a filter matches. this with the maildir
junk option allows classifying messages in Spam folder instead of
rejecting/disconnecting.
ok semarie@, eric@, martijn@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index c5eb8ceb5fc..3eeda504c92 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.633 2019/08/28 15:50:36 martijn Exp $ */ +/* $OpenBSD: smtpd.h,v 1.634 2019/09/04 07:28:27 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1046,6 +1046,7 @@ struct filter_config { char *reject; char *disconnect; char *rewrite; + uint8_t junk; char *proc; const char **chain; @@ -1095,6 +1096,7 @@ enum filter_status { FILTER_REWRITE, FILTER_REJECT, FILTER_DISCONNECT, + FILTER_JUNK, }; enum ca_resp_status { |