Commit 89edd35f 89edd35fcc7022f3f31f5dd3d464425a347b522d by Sergey Poznyakoff

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

1 parent f619275d
......@@ -442,7 +442,8 @@ mail_send0 (compose_env_t * env, int save_to)
read_cc_bcc (env);
/* Prepare the header */
header_set_value (env->header, "X-Mailer", argp_program_version, 1);
if (util_getenv (NULL, "xmailer", Mail_env_boolean, 0) == 0)
header_set_value (env->header, "X-Mailer", argp_program_version, 1);
if (util_header_expand (&env->header) == 0)
{
......