From ced7c37c8e18a227b2b5e4e4c40baf37f6df467b Mon Sep 17 00:00:00 2001 From: Dave West Date: Tue, 16 Oct 2007 07:29:03 +0000 Subject: [PATCH] Added a comment to serv_ldap.c Fixed an obvious bug (according to the comments) with the \Answered flag in IMAP. --- citadel/modules/imap/imap_store.c | 2 +- citadel/modules/ldap/serv_ldap.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/citadel/modules/imap/imap_store.c b/citadel/modules/imap/imap_store.c index 7e163787b..b564380aa 100644 --- a/citadel/modules/imap/imap_store.c +++ b/citadel/modules/imap/imap_store.c @@ -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; } } diff --git a/citadel/modules/ldap/serv_ldap.c b/citadel/modules/ldap/serv_ldap.c index 23e6b91b6..851d0ca42 100644 --- a/citadel/modules/ldap/serv_ldap.c +++ b/citadel/modules/ldap/serv_ldap.c @@ -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) -- 2.39.2