cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
544 stars 149 forks source link

Attachment MESSAGE/RFC822 and Base64 #1179

Open brong opened 14 years ago

brong commented 14 years ago

From: Zbierski Bugzilla-Id: 3266 Version: 2.3.x Owner: Ken Murchison

brong commented 14 years ago

From: Zbierski

Hi, according to RFC 2045, it is not possible to have an attachment of type message/rfc822 encoded in base64.

5.2.1. RFC822 Subtype No encoding other than "7bit", "8bit", or "binary" is permitted for the body of a "message/rfc822" entity. The message header fields are always US-ASCII in any case, and data within the body can still be encoded, in which case the Content-Transfer-Encoding header field in the encapsulated message will reflect this. Non-US-ASCII text in the headers of an encapsulated message can be specified using the mechanisms described in RFC 2047.

But, sometimes attachments are Base64. In this case, cyrus considers that the base64 is the header of email (which is attached). So, some commands such as: A1 FETCH 1 BODY[2.HEADER.FIELDS TO] can take a long time and cpu (in case of the attachment is large).

Is it possible to change cyrus consider this particular case.