[dovecot-cvs] dovecot/src/imap imap-fetch-body-section.c,1.22,1.23

cras at procontrol.fi cras at procontrol.fi
Mon Apr 26 01:30:27 EEST 2004


Update of /home/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv31290

Modified Files:
	imap-fetch-body-section.c 
Log Message:
Fixes for fetching BODY[n], patch by Rick Jones



Index: imap-fetch-body-section.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-fetch-body-section.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- imap-fetch-body-section.c	8 Nov 2003 21:12:45 -0000	1.22
+++ imap-fetch-body-section.c	25 Apr 2004 22:30:25 -0000	1.23
@@ -462,8 +462,10 @@
 		}
 
 		if (part != NULL &&
-		    (part->flags & MESSAGE_PART_FLAG_MESSAGE_RFC822)) {
-			/* skip the message/rfc822 part */
+		    (part->flags & MESSAGE_PART_FLAG_MESSAGE_RFC822) &&
+		    (*path >= '0' && *path <= '9' || strncmp(path, "HEADER", 6) == 0)) {
+			/* if remainder of path is a number or "HEADER",
+				skip the message/rfc822 part */
 			part = part->children;
 		}
 	}



More information about the dovecot-cvs mailing list