Hello.

Exchange 5.5.2654.50 seems to parse the attached mail incorrecly. It
claims that the filename of the attachment in the mail is "0", while it
actually is "07062004.prd".

For example Dovecot parses the mail correctly, so I assume the mail is
valid.

I've got no access to the logfiles of that Exchange installation, it's
customer's server. I also have no other Exchange servers around to test
with.

A quick search with Google and MSDN/Technet didn't give any info about
this bug. Possibly previously unknown bug, or I failed to search for
correct terms. ;)

- Toni



# This is what Exchange returns for BODYSTRUCTURE:

* 8 FETCH (UID 21 BODYSTRUCTURE (("TEXT" "PLAIN" ("charset" "UTF-8") NIL
NIL "7BIT" 10 3 NIL NIL NIL)("APPLICATION" "OCTET-STREAM" ("name" "0")
NIL NIL "BASE64" 1188 NIL ("attachment" ("filename" "0")) NIL) "mixed"
("boundary" "40eac55f_327b23c6_1e") NIL NIL) ENVELOPE ("Tue, 6 Jul 2004
15:29:35 +0000" "PRD" (("Xxxxx" NIL "xxxxx.xxxxxxx" "xxxxxx.xx"))
(("Xxxxx" NIL "xxxxx.xxxxxxx" "xxxxxx.xx")) (("Xxxxx" NIL
"xxxxx.xxxxxxx" "xxxxxx.xx")) (("XXXXXXXX" NIL "xxxxxxxx" "xxxxxx.xx"))
NIL NIL NIL "<[EMAIL PROTECTED]>")
BODY[HEADER.FIELDS (References)] {2}

...

# And when fetching the MIME headers of the given attachment we see the
real filename:

* 8 FETCH (BODY[2.MIME] {156}

Content-Type: application/octet-stream; name="07062004.prd"
Content-Disposition: attachment; filename="07062004.prd"
Content-Transfer-Encoding: base64

...

* BYE Microsoft Exchange IMAP4rev1 server version 5.5.2654.50 signing
off


>From [EMAIL PROTECTED] Tue Jul  6 15:28:18 2004
Received: from xxxxxxx.xxxxx.xxx (xxxxxxx.xxxxxx.xxx [xxx.xx.xx.xx]) by
        xxxxxx.xxxxxx.xx with SMTP (Microsoft Exchange Internet Mail Service
        Version 5.5.2657.72) id NRKV7BGD; Tue, 6 Jul 2004 15:28:18 +0200
Received: from localhost (xxxxxxx [127.0.0.1]) by xxxxxxx.xxxxx.xxx
        (Postfix) with ESMTP id 8A3E017E85B for <[EMAIL PROTECTED]>; Tue,  6 Jul
        2004 15:20:18 +0300 (EEST)
Received: from xxxxxxx.xxxxx.xxx ([127.0.0.1]) by localhost (xxxxxxx
        [127.0.0.1]) (amavisd-new, port 10028) with ESMTP id 00661-01 for
        <[EMAIL PROTECTED]>; Tue,  6 Jul 2004 15:20:18 +0300 (EEST)
Received: from xxxx.xxxx.xxxxxxxxxx.xx (xxxx.xxxx.xxxxxxxxxx.xx
        [xxx.xxx.xxx.xxx]) by xxxxxxx.xxxxx.xxx (Postfix) with ESMTP id 4D89617E85A
        for <[EMAIL PROTECTED]>; Tue,  6 Jul 2004 15:20:18 +0300 (EEST)
Received: from ?none? (xxxxxxxxx.xxx.xxxxxxxxxx.xx [xxx.xxx.xx.xx]) by
        xxxx.xxxx.xxxxxxxxxx.xx (Postfix) with ESMTP id ED36A2F5EA for
        <[EMAIL PROTECTED]>; Tue,  6 Jul 2004 15:27:22 +0300 (EEST)
Date: Tue, 6 Jul 2004 15:29:35 +0000
From: Xxxxx <[EMAIL PROTECTED]>
To: XXXXXXXX <[EMAIL PROTECTED]>
Message-ID: <etPan.40eac55f.6b8b4567.1e@(none)>
Subject: PRD
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="40eac55f_327b23c6_1e"
X-Virus-Scanned: by XxxxxxXxx
Content-Transfer-Encoding: 7bit


--40eac55f_327b23c6_1e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

MOTO


--40eac55f_327b23c6_1e
Content-Type: application/octet-stream; name="07062004.prd"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="07062004.prd"

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxx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