Commit 89edd35f 89edd35fcc7022f3f31f5dd3d464425a347b522d by Sergey Poznyakoff

Do not add X-Mailer if xmailer variable is unset.

1 parent f619275d
...@@ -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)
......