X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sendlib.c;h=619591ae6596cd17f27e15eea7ca206c595b1570;hb=5afe120070189b5a78a5af1c539341ebfae4c721;hp=6ae0b6b6d14e06b9a01277a98e5e218eb19c7a99;hpb=fa2fd1900f206da4bb975b5ece50ee29f5bd8a75;p=apps%2Fmadmutt.git diff --git a/sendlib.c b/sendlib.c index 6ae0b6b..619591a 100644 --- a/sendlib.c +++ b/sendlib.c @@ -1615,7 +1615,7 @@ int mutt_write_rfc822_header (FILE * fp, ENVELOPE * env, BODY * attach, } } /* Add a vanity header */ - fprintf (fp, "User-Agent: mutt-ng/%s (%s)\n", MUTT_VERSION, os); + fprintf (fp, "User-Agent: %s (%s)\n", mutt_make_version (0), os); } return (ferror (fp) == 0 ? 0 : -1); @@ -2078,8 +2078,11 @@ int mutt_invoke_mta (ADDRESS * from, /* the sender */ int eightbit) { /* message contains 8bit chars */ #ifdef USE_LIBESMTP - if (SmtpHost) - return mutt_libesmtp_invoke (from, to, cc, bcc, msg, eightbit); +#ifdef USE_NNTP + if (!option (OPTNEWSSEND)) +#endif + if (SmtpHost) + return mutt_libesmtp_invoke (from, to, cc, bcc, msg, eightbit); #endif return mutt_invoke_sendmail (from, to, cc, bcc, msg, eightbit);