aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-08 18:49:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-08 18:54:47 +0100
commit69e8a342fcd56cf8bacbedc8871a319c9c9e2ba8 (patch)
tree8ce134e7a56d7ce3fe95802ab9f8ce528893a2b2 /src/libserver
parentf43a1e2ed6f5b07c4f46b92cb83dcccdee20949d (diff)
downloadrspamd-69e8a342fcd56cf8bacbedc8871a319c9c9e2ba8.tar.gz
rspamd-69e8a342fcd56cf8bacbedc8871a319c9c9e2ba8.zip
[Minor] Add support for change SMTP from in Milter
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/milter.c1
-rw-r--r--src/libserver/milter.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index aa19ada33..8d8f0e9b3 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1134,6 +1134,7 @@ rspamd_milter_send_action (struct rspamd_milter_session *session,
case RSPAMD_MILTER_REPLYCODE:
case RSPAMD_MILTER_ADDRCPT:
case RSPAMD_MILTER_DELRCPT:
+ case RSPAMD_MILTER_CHGFROM:
/* Single GString * argument */
value = va_arg (ap, GString *);
SET_COMMAND (cmd, value->len + 1, reply, pos);
diff --git a/src/libserver/milter.h b/src/libserver/milter.h
index 2a07cef99..c8bd18a4f 100644
--- a/src/libserver/milter.h
+++ b/src/libserver/milter.h
@@ -28,6 +28,7 @@ enum rspamd_milter_reply {
RSPAMD_MILTER_ACCEPT = 'a',
RSPAMD_MILTER_CONTINUE = 'c',
RSPAMD_MILTER_DISCARD = 'd',
+ RSPAMD_MILTER_CHGFROM = 'e',
RSPAMD_MILTER_ADDHEADER = 'h',
RSPAMD_MILTER_CHGHEADER = 'm',
RSPAMD_MILTER_REJECT = 'r',