aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/pop3/camel-pop3-folder.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 1cf46e5f6c..e920430c66 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2000-08-04 Dan Winship <danw@helixcode.com>
+ * providers/pop3/camel-pop3-folder.c (pop3_set_message_flags):
+ (pop3_sync): Indexes into the flags array are message_number minus
+ 1, not just message_number.
+
* providers/pop3/camel-pop3-store.c: add a debugging macro for
doing protocol tracing.
diff --git a/camel/providers/pop3/camel-pop3-folder.c b/camel/providers/pop3/camel-pop3-folder.c
index 415ec4cd71..9733a5f114 100644
--- a/camel/providers/pop3/camel-pop3-folder.c
+++ b/camel/providers/pop3/camel-pop3-folder.c
@@ -197,7 +197,7 @@ pop3_sync (CamelFolder *folder, gboolean expunge, CamelException *ex)
for (i = 0; i < pop3_folder->uids->len; i++) {
if (pop3_folder->flags[i] & CAMEL_MESSAGE_DELETED) {
status = camel_pop3_command (pop3_store, &resp,
- "DELE %d", i);
+ "DELE %d", i + 1);
if (status != CAMEL_POP3_OK) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
"Unable to sync folder"
@@ -320,7 +320,7 @@ pop3_set_message_flags (CamelFolder *folder, const char *uid,
if (num == -1)
return;
- pop3_folder->flags[num] =
+ pop3_folder->flags[num - 1] =
(pop3_folder->flags[num] & ~flags) | (set & flags);
}