[evolution-data-server] store uidnext - imapx
- From: Chenthill Palanisamy <pchen src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] store uidnext - imapx
- Date: Wed, 30 Dec 2009 04:48:36 +0000 (UTC)
commit dce2ceef23438fed6775d36765a37dafea66bdfb
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed Dec 30 08:02:57 2009 +0530
store uidnext - imapx
camel/providers/imapx/camel-imapx-server.c | 8 ++++----
camel/providers/imapx/camel-imapx-utils.c | 3 +++
camel/providers/imapx/camel-imapx-utils.h | 1 +
3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 6602f4c..a3bf894 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -744,14 +744,14 @@ imapx_command_start_next(CamelIMAPXServer *imap, CamelException *ex)
c(printf("** Starting next command\n"));
if (imap->literal != NULL || imap->select_pending != NULL) {
- printf("* no, waiting for literal/pending select '%s'\n", imap->select_pending->full_name);
+ c(printf("* no, waiting for literal/pending select '%s'\n", imap->select_pending->full_name));
return;
}
ic = (CamelIMAPXCommand *)imap->queue.head;
nc = ic->next;
if (nc == NULL) {
- printf("* no, no jobs\n");
+ c(printf("* no, no jobs\n"));
return;
}
@@ -1035,7 +1035,7 @@ imapx_untagged(CamelIMAPXServer *imap, CamelException *ex)
return 0;
}
case IMAP_EXISTS:
- printf("exists: %d\n", id);
+ c(printf("exists: %d\n", id));
imap->exists = id;
break;
case IMAP_FLAGS: {
@@ -1043,7 +1043,7 @@ imapx_untagged(CamelIMAPXServer *imap, CamelException *ex)
imap_parse_flags(imap->stream, &flags, NULL, ex);
- printf("flags: %08x\n", flags);
+ c(printf("flags: %08x\n", flags));
break;
}
case IMAP_FETCH: {
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index 792a79f..d16aa04 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -1338,6 +1338,9 @@ imap_parse_status(CamelIMAPXStream *is, CamelException *ex)
case IMAP_UIDVALIDITY:
sinfo->u.uidvalidity = camel_imapx_stream_number(is, ex);
break;
+ case IMAP_UIDNEXT:
+ sinfo->u.uidnext = camel_imapx_stream_number (is, ex);
+ break;
case IMAP_UNSEEN:
sinfo->u.unseen = camel_imapx_stream_number(is, ex);
break;
diff --git a/camel/providers/imapx/camel-imapx-utils.h b/camel/providers/imapx/camel-imapx-utils.h
index 37cce58..dc90c68 100644
--- a/camel/providers/imapx/camel-imapx-utils.h
+++ b/camel/providers/imapx/camel-imapx-utils.h
@@ -138,6 +138,7 @@ struct _status_info {
} newname;
guint32 permanentflags;
guint32 uidvalidity;
+ guint32 uidnext;
guint32 unseen;
struct {
guint32 uidvalidity;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]