Do not add X-Mailer if xmailer variable is unset.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -442,6 +442,7 @@ mail_send0 (compose_env_t * env, int save_to) | ... | @@ -442,6 +442,7 @@ 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 | if (util_getenv (NULL, "xmailer", Mail_env_boolean, 0) == 0) | ||
445 | header_set_value (env->header, "X-Mailer", argp_program_version, 1); | 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) | ... | ... |
-
Please register or sign in to post a comment