From 32493eb9a526426a991f5746200387d54a4eee3a Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 13 Dec 2012 12:46:14 +0100 Subject: [PATCH] ldif: According to RFC 2849, LDIF field names are not case-sensitive. See: * http://permalink.gmane.org/gmane.comp.tools.abook.devel/39 * http://article.gmane.org/gmane.mail.mutt.user/39770 --- filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter.c b/filter.c index 13a0234..214a1f5 100644 --- a/filter.c +++ b/filter.c @@ -631,8 +631,8 @@ 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(i == LDIF_ITEM_FIELDS - 1) /* this is a dirty hack */ + 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; -- 2.39.2