Do not add X-Mailer if xmailer variable is unset.
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -442,7 +442,8 @@ mail_send0 (compose_env_t * env, int save_to) | ... | @@ -442,7 +442,8 @@ mail_send0 (compose_env_t * env, int save_to) |
442 | read_cc_bcc (env); | 442 | read_cc_bcc (env); |
443 | 443 | ||
444 | /* Prepare the header */ | 444 | /* Prepare the header */ |
445 | header_set_value (env->header, "X-Mailer", argp_program_version, 1); | 445 | if (util_getenv (NULL, "xmailer", Mail_env_boolean, 0) == 0) |
446 | header_set_value (env->header, "X-Mailer", argp_program_version, 1); | ||
446 | 447 | ||
447 | if (util_header_expand (&env->header) == 0) | 448 | if (util_header_expand (&env->header) == 0) |
448 | { | 449 | { | ... | ... |
-
Please register or sign in to post a comment