| From | Sent On | Attachments |
|---|---|---|
| Brian Kelly | May 22, 2002 1:24 am | |
| Sam Varshavchik | May 22, 2002 5:35 am |
| Subject: | [courier-users] IMAP body[X.HEADERS] and body[X.MIME] with message/rfc822 attachments | |
|---|---|---|
| From: | Brian Kelly (kel...@logica.com) | |
| Date: | May 22, 2002 1:24:41 am | |
| List: | net.sourceforge.lists.courier-users | |
Hi,
I'm seeing a difference in implementation between Courier IMAP and both UW IMAP (or whatever it is that RedHat ships with 7.1, it looks and smells like UW IMAP) and Microsoft Exchange IMAP when it comes to retrieving the MIME headers from an attachment of type message/rfc822. Courier retrieves the MIME header from the header of the attached message, but the other two retrieve the attachment headers. For example, the following message (in between ##### lines for clarity).
###################################################### Message-ID: <fo...@bar.erg> Date: Wed, 22 May 2002 08:36:26 +0100 From: Me <me...@here.erg> MIME-Version: 1.0 To: You <yo...@there.erg> Subject: Re: Hi Content-Type: multipart/mixed; boundary="------------12345"
This is a multi-part message in MIME format. --------------12345 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
Hi
-- me...@here.erg
--------------12345 Content-Type: message/rfc822 Content-Disposition: inline
Message-ID: <ba...@foo.erg> Date: Tue, 21 May 2002 17:54:14 +0100 From: You <yo...@there.erg> MIME-Version: 1.0 To: Me <me...@here.erg> Subject:Hi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
Hi
-- yo...@there.erg
--------------12345-- ######################################################
I added this message to a folder on Courier, UW and Exchange using IMAP. I then fetched body[2.mime] and body[2.header] from the message on each IMAP server. Here's the output from each IMAP server:
Courier ############################################# a1 fetch * body[2.mime] * 3 FETCH (BODY[2.MIME] {98} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
) * 3 FETCH (FLAGS (\Seen \Recent)) a1 OK FETCH completed. a1 fetch * body[2.header] * 3 FETCH (BODY[2.HEADER] {225} Message-ID: <ba...@foo.erg> Date: Tue, 21 May 2002 17:54:14 +0100 From: You <yo...@there.erg> MIME-Version: 1.0 To: Me <me...@here.erg> Subject:Hi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
) a1 OK FETCH completed. #############################################
UW ############################################# a1 fetch * body[2.mime] * 3 FETCH (BODY[2.MIME] {61} Content-Type: message/rfc822 Content-Disposition: inline
) * 3 FETCH (FLAGS (\Recent \Seen)) a1 OK FETCH completed a1 fetch * body[2.header] * 3 FETCH (BODY[2.HEADER] {225} Message-ID: <ba...@foo.erg> Date: Tue, 21 May 2002 17:54:14 +0100 From: You <yo...@there.erg> MIME-Version: 1.0 To: Me <me...@here.erg> Subject:Hi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit
) a1 OK FETCH completed #############################################
Exchange ############################################# a1 fetch * body[2.mime] * 2 FETCH (BODY[2.MIME] {32} Content-Type: message/rfc822
FLAGS (\Seen \Recent)) a1 OK FETCH completed. a1 fetch * body[2.header] * 2 FETCH (BODY[2.HEADER] {175} Message-ID: <ba...@foo.erg> From: You <yo...@there.erg> To: Me <me...@here.erg> Subject: Hi Date: Tue, 21 May 2002 17:54:14 +0100 MIME-Version: 1.0 Content-Type: text/plain
) a1 OK FETCH completed. #############################################
As you can see 2.mime gets the mime attachment header with UW and with Exchange but using Courier it retrieves the mime header fields within the RFC822 message header within the attachment.
Who's right?
Brian
-- kel...@logica.com
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an intended
recipient then please promptly delete this e-mail and any attachment and all
copies and inform the sender. Thank you.





