# HG changeset patch # User Timo Sirainen # Date 1243881438 14400 # Node ID 9ae55b68cf616620e4a267c539b3c97e10c800f7 # Parent 4d2b2adfd415b664c23a34ff7eab97236cb2929f IMAP FETCH: Previous change broke fetching RFC822*. diff -r 4d2b2adfd415 -r 9ae55b68cf61 src/imap/imap-fetch.c --- 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 +#include #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);