Simplify peterw's imap_is_atom_char fix.
* providers/imap/camel-imap-utils.c (imap_parse_string_generic): Simplify peterw's imap_is_atom_char fix. svn path=/trunk/; revision=9250
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2001-04-11 Dan Winship <danw@ximian.com>
|
||||
|
||||
* providers/imap/camel-imap-utils.c (imap_parse_string_generic):
|
||||
Simplify peterw's imap_is_atom_char fix.
|
||||
|
||||
2001-04-11 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* tests/smime/Makefile.am: Added pgp-mime.c to the tests.
|
||||
|
||||
@ -201,7 +201,7 @@ static char imap_atom_specials[128] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
|
||||
};
|
||||
#define imap_is_atom_char(ch) (isascii (ch) && !imap_atom_specials[ch])
|
||||
#define imap_is_atom_char(ch) (isprint (ch) && !imap_atom_specials[ch])
|
||||
|
||||
/**
|
||||
* imap_parse_string_generic:
|
||||
@ -275,7 +275,7 @@ imap_parse_string_generic (char **str_p, int *len, int type)
|
||||
return NULL;
|
||||
} else if (type == IMAP_ASTRING &&
|
||||
imap_is_atom_char ((unsigned char)*str)) {
|
||||
while (imap_is_atom_char ((unsigned char)*str) && *str != '\0')
|
||||
while (imap_is_atom_char ((unsigned char)*str))
|
||||
str++;
|
||||
|
||||
*len = str - *str_p;
|
||||
|
||||
Reference in New Issue
Block a user