aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2004-05-13 04:07:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-13 04:07:07 +0800
commit262daabe04da928199a8c57e0345b70ddfec836c (patch)
treedd685b14b290c218a60d912e017999db641d49fe
parent0a1891750fdd192b17083fbbd690d9772e210ddf (diff)
downloadgsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar.gz
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar.bz2
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar.lz
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar.xz
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.tar.zst
gsoc2013-evolution-262daabe04da928199a8c57e0345b70ddfec836c.zip
eliminate the need for another variable
svn path=/trunk/; revision=25891
-rw-r--r--camel/providers/imap/camel-imap-folder.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index d2fdcd9766..b75373a375 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -283,9 +283,8 @@ camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response,
CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder);
CamelImapSummary *imap_summary = CAMEL_IMAP_SUMMARY (folder->summary);
unsigned long exists = 0, validity = 0, val, uid;
- gboolean got_perm_flags = FALSE;
CamelMessageInfo *info;
- guint32 perm_flags;
+ guint32 perm_flags = 0;
GData *fetch_data;
int i, count;
char *resp;
@@ -296,7 +295,7 @@ camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response,
for (i = 0; i < response->untagged->len; i++) {
resp = response->untagged->pdata[i] + 2;
- if (!strncasecmp (resp, "FLAGS ", 6) && !got_perm_flags) {
+ if (!strncasecmp (resp, "FLAGS ", 6) && !perm_flags) {
resp += 6;
folder->permanent_flags = imap_parse_flag_list (&resp);
} else if (!strncasecmp (resp, "OK [PERMANENTFLAGS ", 19)) {
@@ -306,8 +305,6 @@ camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response,
* even tho they do allow storing flags. *Sigh* So many fucking broken IMAP servers out there. */
if ((perm_flags = imap_parse_flag_list (&resp)) != 0)
folder->permanent_flags = perm_flags;
-
- got_perm_flags = TRUE;
} else if (!strncasecmp (resp, "OK [UIDVALIDITY ", 16)) {
validity = strtoul (resp + 16, NULL, 10);
} else if (isdigit ((unsigned char)*resp)) {