changeset 1909:a3a6b702c766 HEAD

Fixes for fetching BODY[n], patch by Rick Jones
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Apr 2004 01:30:25 +0300
parents 0615c22cbda5
children b9005f93be70
files src/imap/imap-fetch-body-section.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/imap-fetch-body-section.c	Fri Jan 23 21:50:54 2004 +0200
+++ b/src/imap/imap-fetch-body-section.c	Mon Apr 26 01:30:25 2004 +0300
@@ -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;
 		}
 	}