Hi,
this issue came up in the mutt users list:
http://article.gmane.org/gmane.mail.mutt.user/39770

abook seems to expect, that the objectclass field is case sensitive,
while  I read RFC2849 such that field names are not case sensitive.

Here is a patch, that fixes this issue. Please check.

diff --git a/filter.c b/filter.c
index 13a0234..ad622b0 100644
--- a/filter.c
+++ b/filter.c
@@ -631,7 +631,7 @@ ldif_convert(ldif_item item, char *type, char *value)
        }

        for(i=0; i < LDIF_ITEM_FIELDS; i++) {
-               if(!safe_strcmp(ldif_field_names[i], type) && *value) {
+               if(!strcasecmp(ldif_field_names[i], type) && *value) {
                        if(i == LDIF_ITEM_FIELDS - 1) /* this is a dirty
hack */
                                if(safe_strcmp("person", value))
                                        break;


regards,
Christian
-- 
Knowing

Without taking a step outdoors
You know the whole world;
Without taking a peep out the window
You know the colour of the sky.
The more you experience,
The less you know.
The sage wanders without knowing,
Looks without seeing,
Accomplishes without acting.
                -- Lao Tse, "Tao Te Ching"



------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Abook-devel mailing list
Abook-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abook-devel

Reply via email to