Mercurial > dovecot > core-2.2
changeset 14924:6c55e57c98a1
imap: Allow fetching [x.MIME] for message/rfc822 again.
It's not clear which is the correct behavior.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 20 Aug 2012 10:01:03 +0300 |
parents | 96fd2c3bf932 |
children | 44013be2e3d8 |
files | src/lib-imap-storage/imap-msgpart.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-imap-storage/imap-msgpart.c Mon Aug 20 09:47:28 2012 +0300 +++ b/src/lib-imap-storage/imap-msgpart.c Mon Aug 20 10:01:03 2012 +0300 @@ -528,13 +528,12 @@ switch (msgpart->fetch_type) { case FETCH_MIME: - if (part->parent == NULL || - (part->parent->flags & MESSAGE_PART_FLAG_MESSAGE_RFC822) != 0) { - /* message/rfc822 itself has no MIME headers */ - *part_r = NULL; - return 0; - } - break; + /* What to do if this is a message/rfc822? Does it have + MIME headers or not? Possibilities are: a) no, return + empty string (UW-IMAP does this), b) return the same as + HEADER. Dovecot has done b) for a long time and it's not + very clear which one is correct, so we'll just continue + with b) */ case FETCH_FULL: case FETCH_MIME_BODY: break;