return true;
}
-static short check_all_msg(struct AttachCtx *actx, struct Body *cur, short err)
+static bool check_all_msg(struct AttachCtx *actx, struct Body *cur, short err)
{
if (cur && !check_msg(cur, err))
return false;
int ret = 0;
int p = 0;
- if (check_all_msg(actx, cur, 1) == -1)
+ if (!check_all_msg(actx, cur, 1))
return;
/* one or more messages? */
*/
void mutt_attach_resend(FILE *fp, struct Header *hdr, struct AttachCtx *actx, struct Body *cur)
{
- if (check_all_msg(actx, cur, 1) == -1)
+ if (!check_all_msg(actx, cur, 1))
return;
if (cur)
{
short nattach;
- if (check_all_msg(actx, cur, 0) == 0)
+ if (check_all_msg(actx, cur, 0))
attach_forward_msgs(fp, hdr, actx, cur, flags);
else
{
unset_option(OPT_NEWS_SEND);
#endif
- if (check_all_msg(actx, cur, false) == -1)
+ if (!check_all_msg(actx, cur, false))
{
nattach = count_tagged(actx);
if ((parent = find_parent(actx, cur, nattach)) != NULL)