diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-02-14 16:08:57 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-02-14 16:08:57 +0000 |
commit | bc5296e032f5fee1d14bb3e2dac4ba290a212650 (patch) | |
tree | 2e3fb6af43117a25cdd48ff7266745e9db17d8c1 /mail | |
parent | c9864c4a9fc81c60c18a2232ccdfa8f44d5b89b3 (diff) | |
download | mailutils-bc5296e032f5fee1d14bb3e2dac4ba290a212650.tar.gz mailutils-bc5296e032f5fee1d14bb3e2dac4ba290a212650.tar.bz2 |
Skip deleted messages.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/next.c | 2 | ||||
-rw-r--r-- | mail/previous.c | 2 |
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; |