Commit bc5296e0 bc5296e032f5fee1d14bb3e2dac4ba290a212650 by Sergey Poznyakoff

Skip deleted messages.

1 parent c9864c4a
......@@ -33,6 +33,8 @@ mail_next (int argc, char **argv)
int rc = 1;
for (n = cursor + 1; n <= total; n++)
{
if (util_isdeleted (n))
continue;
rc = util_get_message (mbox, n, &msg);
if (rc == 0)
break;
......
......@@ -33,6 +33,8 @@ mail_previous (int argc, char **argv)
int rc = 1;
for (n = cursor - 1; n > 0; n--)
{
if (util_isdeleted (n))
continue;
rc = util_get_message (mbox, n, &msg);
if (rc == 0)
break;
......