[dovecot-cvs] dovecot/src/lib-imap imap-parser.c, 1.49, 1.50 imap-parser.h, 1.15, 1.16

cras at dovecot.org cras at dovecot.org
Tue Jul 12 17:43:46 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-imap
In directory talvi:/tmp/cvs-serv32571/lib-imap

Modified Files:
	imap-parser.c imap-parser.h 
Log Message:
Updated IS_ATOM_SPECIAL() list and moved it to header file.



Index: imap-parser.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-imap/imap-parser.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- imap-parser.c	8 Apr 2005 12:04:55 -0000	1.49
+++ imap-parser.c	12 Jul 2005 14:43:44 -0000	1.50
@@ -9,10 +9,6 @@
 #define is_linebreak(c) \
 	((c) == '\r' || (c) == '\n')
 
-#define IS_ATOM_SPECIAL(c) \
-	((c) == '(' || (c) == ')' || (c) == '{' || \
-	 (c) == '"' || (c) <= 32 || (c) == 0x7f)
-
 #define LIST_ALLOC_SIZE 7
 
 enum arg_parse_type {

Index: imap-parser.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-imap/imap-parser.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- imap-parser.h	5 Aug 2003 23:10:33 -0000	1.15
+++ imap-parser.h	12 Jul 2005 14:43:44 -0000	1.16
@@ -1,6 +1,10 @@
 #ifndef __IMAP_PARSER_H
 #define __IMAP_PARSER_H
 
+#define IS_ATOM_SPECIAL(c) \
+	((c) == '(' || (c) == ')' || (c) == '{' || (c) == '%' || (c) == '*' || \
+	 (c) == '"' || (c) == '\\' || (c) == ']' || (c) <= 32 || (c) == 0x7f)
+
 enum imap_parser_flags {
 	/* Set this flag if you wish to read only size of literal argument
 	   and not convert literal into string. Useful when you need to deal



More information about the dovecot-cvs mailing list