Skip to content

Exceptions in Disposition during folder listing #486

@breedbekkikker

Description

@breedbekkikker

Hi,

The following exception occurs when listing a folder:

Exception: Illegal characters in disposition value.
Parameter name: value

The IMAP protocol logging:

C: B00000020 FETCH 1:* (UID FLAGS INTERNALDATE RFC822.SIZE ENVELOPE BODYSTRUCTURE)
S: * 1 FETCH (UID 3 FLAGS (\Seen) INTERNALDATE " 6-Apr-2017 10:50:20 +0200" RFC822.SIZE 1315 ENVELOPE ("Thu, 6 Apr 2017 10:50:20 +0200" "test" ((NIL NIL "test" "acme.com")) ((NIL NIL "test" "acme.com")) ((NIL NIL "test" "acme.com")) NIL NIL NIL NIL "<58B634343442A1@acme.com>") BODYSTRUCTURE (((("TEXT" "PLAIN" NIL NIL NIL "7bit" 3 1) "ALTERNATIVE" ("boundary" "==boundary-2"))("IMAGE" "GIF" ("name" "image1.gif") "<PHP-image-1>" NIL "base64" 6 NIL ({8}
S: "inline" NIL)) "RELATED" ("boundary" "==boundary-3")) "MIXED" ("boundary" "==boundary-1")))

The original mail contains the following MIME part headers:

--==boundary-3
Content-type: image/gif; name="image1.gif"
Content-Transfer-Encoding: base64
Content-ID: <PHP-image-1>
Content-Disposition: "inline"

Another exception occurring is:

Exception: The disposition is not allowed to be empty.
Parameter name: value

The IMAP protocol logging:

C: M00000020 FETCH 1:* (UID FLAGS INTERNALDATE RFC822.SIZE ENVELOPE BODYSTRUCTURE)
S: * 1 FETCH (UID 5 FLAGS (\Seen) INTERNALDATE " 6-Apr-2017 10:59:05 +0200" RFC822.SIZE 1300 ENVELOPE ("Thu, 6 Apr 2017 10:59:05 +0200" "test" ((NIL NIL "test" "acme.com")) ((NIL NIL "test" "acme.com")) ((NIL NIL "test" "acme.com")) NIL NIL NIL NIL "<58B634343442A2@acme.com>") BODYSTRUCTURE (((("TEXT" "PLAIN" NIL NIL NIL "7bit" 0 0) "ALTERNATIVE" ("boundary" "==boundary-2"))("APPLICATION" "PDF" ("name" "file.pdf") NIL NIL "base64" 6 NIL ("" ("filename" "file.pdf"))) "RELATED" ("boundary" "==boundary-3")) "MIXED" ("boundary" "==boundary-1")))

The original mail contains the following MIME part headers:

--==boundary-3
Content-Type: application/pdf; name="file.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: ; filename="file.pdf"

Is there are a solution possible for these invalid disposition headers within MailKit/MimeKit?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions