summaryrefslogtreecommitdiff
path: root/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/smtp.c b/smtp.c
index da259ea..796578d 100644
--- a/smtp.c
+++ b/smtp.c
@@ -650,6 +650,11 @@ void smtp_send(message_t *msg, identity_t *identity)
goto failure;
}
+ /* Prohibit Message-ID:-Header if force_msgid is not specified */
+ if(identity->prohibit_msgid)
+ if(!smtp_set_header_option(message, "Message-ID", Hdr_PROHIBIT, (int)1))
+ goto failure;
+
/* DSN options */
if(!smtp_dsn_set_ret(message, msg->ret))
goto failure;