]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add support for change SMTP from in Milter
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 8 Aug 2017 17:49:38 +0000 (18:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 8 Aug 2017 17:54:47 +0000 (18:54 +0100)
src/libserver/milter.c
src/libserver/milter.h

index aa19ada3305dfd287e5da1b80e662fc2c9b57535..8d8f0e9b3b856412bda529273085df531aff4c0c 100644 (file)
@@ -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);
index 2a07cef99006bd792ceea11a28c6b48441e0258a..c8bd18a4f07c23d07ae5aa307603bc9020382857 100644 (file)
@@ -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',