Mercurial > dovecot > core-2.2
changeset 617:c6b5e8af85e7 HEAD
Fix when fetching body[sections] with message/rfc822 parts.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 17 Nov 2002 15:33:43 +0200 |
parents | c7a01d999962 |
children | a7c3ea56ba62 |
files | src/lib-storage/index/index-fetch-section.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-fetch-section.c Sun Nov 17 11:45:37 2002 +0200 +++ b/src/lib-storage/index/index-fetch-section.c Sun Nov 17 15:33:43 2002 +0200 @@ -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;