From 4b0725144f954e9a40c70289e5456401d58759f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 17 Sep 2008 16:51:30 +0000 Subject: Option to disable Message-ID header (Phil Sutter). --- smtp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'smtp.c') 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; -- cgit v1.2.3