[dovecot-cvs] dovecot/src/lib-storage/index index-fetch-section.c,1.19,1.20
cras at procontrol.fi
cras at procontrol.fi
Sun Nov 17 15:33:45 EET 2002
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv23304
Modified Files:
index-fetch-section.c
Log Message:
Fix when fetching body[sections] with message/rfc822 parts.
Index: index-fetch-section.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-fetch-section.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- index-fetch-section.c 28 Oct 2002 04:33:00 -0000 1.19
+++ index-fetch-section.c 17 Nov 2002 13:33:43 -0000 1.20
@@ -373,6 +373,12 @@
if (num != 1)
return NULL;
}
+
+ if (part != NULL &&
+ (part->flags & MESSAGE_PART_FLAG_MESSAGE_RFC822)) {
+ /* skip the message/rfc822 part */
+ part = part->children;
+ }
}
*section = path;
More information about the dovecot-cvs
mailing list