]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
IMAP FETCH: Previous change broke fetching RFC822*.
authorTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 18:37:18 +0000 (14:37 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 18:37:18 +0000 (14:37 -0400)
--HG--
branch : HEAD

src/imap/imap-fetch.c

index 6bc27b814ed4ca3b95551efc6f396a68b95e7a5e..5d7866882b20a611b3d1def0d447727f3fa6db63 100644 (file)
@@ -16,6 +16,7 @@
 #include "imap-util.h"
 
 #include <stdlib.h>
+#include <ctype.h>
 
 #define BODY_NIL_REPLY \
        "\"text\" \"plain\" NIL NIL NIL \"7bit\" 0 0"
@@ -59,7 +60,7 @@ bool imap_fetch_init_handler(struct imap_fetch_context *ctx, const char *name,
        const char *lookup_name, *p;
        unsigned int count;
 
-       for (p = name; *p >= 'A' && *p <= 'Z'; p++) ;
+       for (p = name; i_isalnum(*p); p++) ;
        lookup_name = t_strdup_until(name, p);
 
        handlers = array_get_modifiable(&fetch_handlers, &count);