andris9 / hoodiecrow

Scriptable IMAP server for client integration testing
http://andris9.github.io/hoodiecrow/
Other
60 stars 27 forks source link

Add optional trailing asterisk for encoded continuation headers. #9

Closed mcav closed 9 years ago

mcav commented 9 years ago

From https://tools.ietf.org/html/rfc2231 section 4.1 ("Combining Character Set, Language, and Parameter Continuations"), encoding/language info may be combined with parameter continuation, e.g. filename*1* for content-type.

Previously, this regex checked for a hard-stop (\d+)?$ without allowing for the asterisk; this patch alters that to allow for the optional asterisk: (\d+)?\*?$