aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/providers/imap/camel-imap-folder.c24
2 files changed, 14 insertions, 12 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index c078eb8fa0..6b4a0ef95e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -10,6 +10,8 @@
(imap_sync): Added code to set flags on messages that have had
their flags changed (however I #if'd it out until we are more
confidant in the IMAP code :)
+ (imap_summary_get_by_uid): Now parese flags correctly.
+ (imap_get_summary): Now parese flags correctly.
* camel-url.c (check_equal): No need to check s1 if s2 is NULL
(camel_url_equal): Don't check the passwd component of the url.
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 0323ecb7ff..d6705ace8e 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -956,17 +956,17 @@ imap_get_summary (CamelFolder *folder, CamelException *ex)
/* now we gotta parse for the flags */
info->flags = 0;
- if (!strstr (p, "\\Seen"))
+ if (strstr (p, "\\Seen"))
info->flags |= CAMEL_MESSAGE_SEEN;
- if (!strstr (p, "\\Answered"))
+ if (strstr (p, "\\Answered"))
info->flags |= CAMEL_MESSAGE_ANSWERED;
- if (!strstr (p, "\\Flagged"))
+ if (strstr (p, "\\Flagged"))
info->flags |= CAMEL_MESSAGE_FLAGGED;
- if (!strstr (p, "\\Deleted"))
+ if (strstr (p, "\\Deleted"))
info->flags |= CAMEL_MESSAGE_DELETED;
- if (!strstr (p, "\\Draft"))
+ if (strstr (p, "\\Draft"))
info->flags |= CAMEL_MESSAGE_DRAFT;
-
+
g_free (result);
g_ptr_array_add (array, info);
@@ -1055,17 +1055,17 @@ imap_summary_get_by_uid (CamelFolder *folder, const char *uid)
/* now we gotta parse for the flags */
info->flags = 0;
- if (!strstr (p, "\\Seen"))
+ if (strstr (p, "\\Seen"))
info->flags |= CAMEL_MESSAGE_SEEN;
- if (!strstr (p, "\\Answered"))
+ if (strstr (p, "\\Answered"))
info->flags |= CAMEL_MESSAGE_ANSWERED;
- if (!strstr (p, "\\Flagged"))
+ if (strstr (p, "\\Flagged"))
info->flags |= CAMEL_MESSAGE_FLAGGED;
- if (!strstr (p, "\\Deleted"))
+ if (strstr (p, "\\Deleted"))
info->flags |= CAMEL_MESSAGE_DELETED;
- if (!strstr (p, "\\Draft"))
+ if (strstr (p, "\\Draft"))
info->flags |= CAMEL_MESSAGE_DRAFT;
-
+
g_free (result);
/* since we didn't have it cached, lets add it to our cache */
>sobomax2002-05-224-7/+34 * BROKEN: Does not package correctlykris2002-05-181-0/+2 * Update ports/math/pari to 1.1.3jesper2002-03-153-12/+12 * add WWW:ijliao2001-12-241-0/+2 * upgrade to 2.1.1ijliao2001-07-076-95/+196 * Massive style enforcement - use ^I instead of spaces for variables identation.sobomax2001-01-171-6/+6 * Update port to 2.1.0jedgar2000-12-254-10/+7 * Rename PLIST.emacs to pkg-plist.emacs.asami2000-10-081-1/+1 * Correct PLIST and bump PORTREVISION.kris2000-09-243-4/+7 * Update to version 2.0.20balex2000-07-163-15/+15 * Rename INSTALLS_SHLIBS to INSTALLS_SHLIB. (There was a typo in theasami2000-06-171-1/+1 * Fourth round of INSTALLS_SHLIBS conversion.sobomax2000-06-163-8/+2 * Convert to PORTNAME/PORTVERSION.asami2000-04-141-3/+3 * On second thought (and with a light prod) install the pari-mode files ifsteve2000-02-283-6/+49 * Don't install the pari-mode for emacs. Either this or we have to addsteve2000-02-271-4/+0 * Use new MASTER_SITE.steve2000-02-011-1/+1 * Update to version 2.0.18bcpiazza2000-01-155-16/+57 * Justified pkg/PLIST .sada1999-09-101-4/+0 * Remove one of MASTER_SITES.sada1999-09-092-6/+5 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * Update to version 2.0.16b.steve1999-08-224-37/+44 * Mark this port only for i386.steve1999-07-051-1/+3 * Remove dependency to emacs. The pr was sent from the maintainer.sada1999-04-042-1/+22 * Unbreak pari port.motoyuki1999-02-131-4/+0 * Update to version 2.0.13a.steve1999-01-263-25/+52 * MASTER_SITES has changed.flathill1999-01-211-3/+2 * More USE_XLIBs.asami1998-11-281-1/+2 * Unbreak.jseger1998-10-141-3/+1 * Mark BROKEN for ELF:jseger1998-10-131-1/+3