X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=recvcmd.c;fp=recvcmd.c;h=15858e2d224ac92abcf2131e199d03a5d51a19e6;hp=d9dd323d24592bb631d205c74564c2d2250af189;hb=cfd5f411041c7ef44087b032751792fadc74586d;hpb=4b2f5f58e6b8e65e8524596d16752f7f1e5d58ca diff --git a/recvcmd.c b/recvcmd.c index d9dd323..15858e2 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -709,37 +709,25 @@ attach_reply_envelope_defaults (ENVELOPE * env, ATTACHPTR ** idx, return -1; } -#ifdef USE_NNTP - if ((flags & SENDNEWS)) { - /* in case followup set Newsgroups: with Followup-To: if it present */ - if (!env->newsgroups && curenv && - m_strcasecmp(curenv->followup_to, "poster")) - env->newsgroups = m_strdup(curenv->followup_to); - } - else -#endif - { - if (parent) { - if (mutt_fetch_recips (env, curenv, flags) == -1) + if (parent) { + if (mutt_fetch_recips (env, curenv, flags) == -1) + return -1; + } else { + for (i = 0; i < idxlen; i++) { + if (idx[i]->content->tagged + && mutt_fetch_recips (env, idx[i]->content->hdr->env, + flags) == -1) return -1; } - else { - for (i = 0; i < idxlen; i++) { - if (idx[i]->content->tagged - && mutt_fetch_recips (env, idx[i]->content->hdr->env, - flags) == -1) - return -1; - } - } - - if ((flags & SENDLISTREPLY) && !env->to) { - mutt_error _("No mailing lists found!"); + } - return (-1); - } + if ((flags & SENDLISTREPLY) && !env->to) { + mutt_error _("No mailing lists found!"); - mutt_fix_reply_recipients (env); + return (-1); } + + mutt_fix_reply_recipients (env); mutt_make_misc_reply_headers (env, Context, curhdr, curenv); if (parent) @@ -797,13 +785,6 @@ void mutt_attach_reply (FILE * fp, HEADER * hdr, char prefix[STRING]; int rc; -#ifdef USE_NNTP - if (flags & SENDNEWS) - set_option (OPTNEWSSEND); - else - unset_option (OPTNEWSSEND); -#endif - if (check_all_msg (idx, idxlen, cur, 0) == -1) { nattach = count_tagged (idx, idxlen); if ((parent = find_parent (idx, idxlen, cur, nattach)) == NULL)