summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/util.c b/mail/util.c
index d7e976fe2..2422e3ea9 100644
--- a/mail/util.c
+++ b/mail/util.c
@@ -1225,7 +1225,7 @@ util_header_expand (header_t *phdr)
}
int
-util_get_message (mailbox_t mbox, size_t msgno, message_t *msg, int delflag)
+util_get_message (mailbox_t mbox, size_t msgno, message_t *msg, int flag)
{
int status;
@@ -1243,9 +1243,11 @@ util_get_message (mailbox_t mbox, size_t msgno, message_t *msg, int delflag)
return status;
}
- if (delflag && util_isdeleted (*msg))
+ if ((flag & MSG_NODELETED) && util_isdeleted (*msg))
{
- util_error ("%d: Inappropriate message (has been deleted)");
+ if (!(flag & MSG_SILENT))
+ util_error ("%lu: Inappropriate message (has been deleted)",
+ (unsigned long) msgno);
return ENOENT;
}
return 0;

Return to:

Send suggestions and report system problems to the System administrator.