aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-08-05 02:40:38 +0800
committerDan Winship <danw@src.gnome.org>2000-08-05 02:40:38 +0800
commit34de93822bf74d098746aab3bbc655b05582334b (patch)
tree775d2c613c987845f320eba0fb94a533d387b535 /camel
parent09e1677c54c2620fe31cefcf18e869beaccba8f3 (diff)
downloadgsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar.gz
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar.bz2
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar.lz
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar.xz
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.tar.zst
gsoc2013-evolution-34de93822bf74d098746aab3bbc655b05582334b.zip
Indexes into the flags array are message_number minus 1, not just
* 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. svn path=/trunk/; revision=4533
Diffstat (limited to 'camel')
-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);
}