Subject: | Handle subjects without quotes |
I encounterd an example of a bodystructure with the subject without quotes.
Example:
6 UID FETCH 3038 bodystructure * 1137 FETCH (UID 3038 BODYSTRUCTURE (("text" "plain" ("charset" "ISO-8859-1") NIL NIL "8bit" 248 6 NIL NIL NIL NIL)("Message" "Delivery-Status" NIL NIL NIL "7bit" 362 NIL NIL NIL NIL)("message" "rfc822" NIL NIL NIL "7bit" 73557 ("Thu, 03 Apr 2014 19:10:41 +0200" Avisita Aktuellt - Mer tid =?ISO-8859-1?Q?f=F6r=20?=konferensbokningar (("Avisita" NIL "webb" "avisita.com")) (("Avisita" NIL "webb" "avisita.com")) (("Avisita" NIL "webb" "avisita.com")) ((NIL NIL "vinverde" "algonet.se")) NIL NIL NIL "<E1WVlA1-00087n-8S@lyx.ls1.se>") (("text" "plain" ("charset" "ISO-8859-1" "format" "flowed") NIL NIL "8bit" 3995 100 NIL NIL NIL NIL)("text" "html" ("charset" "ISO-8859-1") NIL NIL "7bit" 67986 1085 NIL NIL NIL NIL) "alternative" ("boundary" "------------070805040901060600000602") NIL NIL NIL) 1226 NIL NIL NIL NIL) "Report" ("report-type" "delivery-status" "boundary" "========/52D6B96701F305CA/mm-proxy2.telenor.se") NIL NIL NIL))
This would be handled by accepting spaces in the fallback alternative of sub _get_nstring
Change the liine from
} elsif ($$str =~ /\G([^"\(\)\{ \%\*\"\\\x00-\x1F]+)/gc) {
to
} elsif ($$str =~ /\G([^"\(\)\{\%\*\"\\\x00-\x1F]+)/gc) {