Skip to content

Feature: Basic support for RFC 2231 #46

@jbostoen

Description

@jbostoen

An administrator reported an issue where this extension isn't correctly handling an attachment.

It seems that iTop is processing the e-mail, but the failure occurs due to a lack of support for RFC 2231.
The result is a corrupted attachment, with corrupted file name and no content.

RFC 2231 - MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations (ietf.org)

Combining Character Set, Language, and Parameter Continuations

Character set and language information may be combined with the
parameter continuation mechanism. For example:

Content-Type: application/x-stuff
title0=us-ascii'en'This%20is%20even%20more%20
title1=%2A%2A%2Afun%2A%2A%2A%20
title*2="isn't it!"

Note that:

(1)   Language and character set information only appear at
      the beginning of a given parameter value.

(2)   Continuations do not provide a facility for using more
      than one character set or language in the same
      parameter value.

(3)   A value presented using multiple continuations may
      contain a mixture of encoded and unencoded segments.

Freed & Moore Standards Track [Page 5]
RFC 2231 MIME Value and Encoded Word Extensions November 1997

(4)   The first segment of a continuation MUST be encoded if
      language and character set information are given.

(5)   If the first segment of a continued parameter value is
      encoded the language and character set field delimiters
      MUST be present even when the fields are left blank.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions