changeset 9116:9ae55b68cf61 HEAD

IMAP FETCH: Previous change broke fetching RFC822*.
author Timo Sirainen <tss@iki.fi>
date Mon, 01 Jun 2009 14:37:18 -0400
parents 4d2b2adfd415
children bfa4b2c29dc2
files src/imap/imap-fetch.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/imap-fetch.c	Mon Jun 01 14:30:05 2009 -0400
+++ b/src/imap/imap-fetch.c	Mon Jun 01 14:37:18 2009 -0400
@@ -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 @@
 	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);