X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=curs_main.c;h=28921a386c14d1f29d42409b6527bb0c238416db;hb=f9906e737c60c89e063c30807214fe88188cc795;hp=23604afd53e8da0edc9bfccb70b12bc603cf9c63;hpb=3d63d943a486f83c09b4c5ab45e2ba8ec6b99cde;p=apps%2Fmadmutt.git diff --git a/curs_main.c b/curs_main.c index 23604af..28921a3 100644 --- a/curs_main.c +++ b/curs_main.c @@ -2326,7 +2326,11 @@ CHECK_IMAP_ACL(IMAP_ACL_SEEN); case OP_FORWARD_TO_GROUP: CHECK_ATTACH; - if (op != OP_FOLLOWUP || !CURHDR->env->followup_to || + if ((op == OP_FOLLOWUP || op == OP_FORWARD_TO_GROUP) && + Context && Context->msgcount == 0) { + mutt_error (_("There are no messages.")); + sleep (2); + } else if (op != OP_FOLLOWUP || !CURHDR->env->followup_to || mutt_strcasecmp (CURHDR->env->followup_to, "poster") || query_quadoption (OPT_FOLLOWUPTOPOSTER,_("Reply by mail as poster prefers?")) != M_YES) {