summaryrefslogtreecommitdiff
path: root/imap4d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-08-10 08:14:46 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-08-10 08:14:46 +0000
commitb8650926df468289f0a63b90904f3674e3b1f0dc (patch)
tree0c34e05d0c8a4aa54b2d67d1080da951951ab3b9 /imap4d
parent12bf6a1adcae0e45700d71cea0bb16373cca38f1 (diff)
downloadmailutils-b8650926df468289f0a63b90904f3674e3b1f0dc.tar.gz
mailutils-b8650926df468289f0a63b90904f3674e3b1f0dc.tar.bz2
(imap4d_copy0): Minor improvement
Diffstat (limited to 'imap4d')
-rw-r--r--imap4d/copy.c4
-rw-r--r--imap4d/fetch.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/imap4d/copy.c b/imap4d/copy.c
index 7ea518a49..123c6da9a 100644
--- a/imap4d/copy.c
+++ b/imap4d/copy.c
@@ -93,8 +93,8 @@ imap4d_copy0 (char *arg, int isuid, char *resp, size_t resplen)
{
message_t msg = NULL;
size_t msgno = (isuid) ? uid_to_msgno (set[i]) : set[i];
- mailbox_get_message (mbox, msgno, &msg);
- mailbox_append_message (cmbox, msg);
+ if (msgno && mailbox_get_message (mbox, msgno, &msg) == 0)
+ mailbox_append_message (cmbox, msg);
}
mailbox_close (cmbox);
}
diff --git a/imap4d/fetch.c b/imap4d/fetch.c
index 629c4ddd6..bdf2b0b3b 100644
--- a/imap4d/fetch.c
+++ b/imap4d/fetch.c
@@ -214,7 +214,9 @@ imap4d_fetch0 (char *arg, int isuid, char *resp, size_t resplen)
util_send (")\r\n");
free (p);
}
- else
+ else if (!isuid)
+ /* According to RFC 3501, "A non-existent unique identifier is
+ ignored without any error message generated." */
{
snprintf (resp, resplen,
"Bogus message set: message number out of range");

Return to:

Send suggestions and report system problems to the System administrator.