diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2008-09-17 16:51:30 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2008-09-17 16:51:30 +0000 |
commit | 4b0725144f954e9a40c70289e5456401d58759f7 (patch) | |
tree | 54112a1cab784d50290bdf05bc1d84c34a00d961 /smtp.c | |
parent | f0c0eea2f8eb3691e68060f96149b06515ca8c14 (diff) |
Option to disable Message-ID header (Phil Sutter).
Diffstat (limited to 'smtp.c')
-rw-r--r-- | smtp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |