summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-02-14 16:08:57 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-02-14 16:08:57 +0000
commitbc5296e032f5fee1d14bb3e2dac4ba290a212650 (patch)
tree2e3fb6af43117a25cdd48ff7266745e9db17d8c1 /mail
parentc9864c4a9fc81c60c18a2232ccdfa8f44d5b89b3 (diff)
downloadmailutils-bc5296e032f5fee1d14bb3e2dac4ba290a212650.tar.gz
mailutils-bc5296e032f5fee1d14bb3e2dac4ba290a212650.tar.bz2
Skip deleted messages.
Diffstat (limited to 'mail')
-rw-r--r--mail/next.c2
-rw-r--r--mail/previous.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/mail/next.c b/mail/next.c
index 55dcc63fd..44adcdda3 100644
--- a/mail/next.c
+++ b/mail/next.c
@@ -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;
diff --git a/mail/previous.c b/mail/previous.c
index 2a59dcd11..22b35fbfb 100644
--- a/mail/previous.c
+++ b/mail/previous.c
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.