Added a comment to serv_ldap.c
authorDave West <davew@uncensored.citadel.org>
Tue, 16 Oct 2007 07:29:03 +0000 (07:29 +0000)
committerDave West <davew@uncensored.citadel.org>
Tue, 16 Oct 2007 07:29:03 +0000 (07:29 +0000)
Fixed an obvious bug (according to the comments) with the \Answered flag
in IMAP.

citadel/modules/imap/imap_store.c
citadel/modules/ldap/serv_ldap.c

index 7e163787b227a2880ff548426e23721fdaf61edc..b564380aaed335c3639f4fea5f78c44cace0955e 100644 (file)
@@ -140,7 +140,7 @@ void imap_do_store(int num_items, char **itemlist) {
                                bits_to_twiddle |= IMAP_SEEN;
                        }
                        if ((!strcasecmp(flag, "\\Answered")) 
-                          || (!strcasecmp(flag, "\\Answered"))) {
+                          || (!strcasecmp(flag, "Answered"))) {
                                bits_to_twiddle |= IMAP_ANSWERED;
                        }
                }
index 23e6b91b66363fb7ae512e66a7fc22d47211b5b3..851d0ca4233dcd722553adbf5375aaad33bc8f65 100644 (file)
@@ -70,7 +70,13 @@ void serv_ldap_cleanup(void)
 }
 
 
-
+/*
+ * connect_to_ldap
+ *
+ * BIG FAT WARNING
+ * Make sure this function is only called from within a begin_critical_section(S_LDAP)
+ * If you don't things will break!!!!!.
+ */
 
 
 int connect_to_ldap(void)