aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@dalenys.com>2016-05-22 22:08:15 +0200
committerGilles Chehade <gilles@dalenys.com>2016-05-22 22:08:15 +0200
commit53bd7a79570ed65bcd905df503bc03bac3516852 (patch)
tree28eeb9d7fd1b0025ef51cbacb98252abfabda0bd
parentMerge branch 'master' of ssh://ssh.poolp.org/git/opensmtpd-extras (diff)
downloadOpenSMTPD-extras-53bd7a79570ed65bcd905df503bc03bac3516852.tar.xz
OpenSMTPD-extras-53bd7a79570ed65bcd905df503bc03bac3516852.zip
reintroduce the reset callback and update documentation
-rw-r--r--api/filter_api.c2
-rw-r--r--extras/wip/filters/filter_api.32
2 files changed, 3 insertions, 1 deletions
diff --git a/api/filter_api.c b/api/filter_api.c
index a89d4a3..8225165 100644
--- a/api/filter_api.c
+++ b/api/filter_api.c
@@ -439,6 +439,8 @@ filter_dispatch_data(uint64_t id)
static void
filter_dispatch_reset(uint64_t id)
{
+ if (fi.cb.reset)
+ fi.cb.reset(id);
filter_dispatch_rollback(id);
}
diff --git a/extras/wip/filters/filter_api.3 b/extras/wip/filters/filter_api.3
index 9bda65f..91f48da 100644
--- a/extras/wip/filters/filter_api.3
+++ b/extras/wip/filters/filter_api.3
@@ -191,7 +191,7 @@ of accepting or rejecting the message.
.Pp
The function
.Fn filter_api_on_reset
-currently doesn't serve a useful purpose.
+is called whenever the RSET command has been issued in a session.
.Pp
The function
.Fn filter_api_on_disconnect