This patch adds support for rfc-2231 encoded file names
when getting attachments from IMAP server. It converts
rfc-2231 style encoding to rfc-2047 encoding, which
SquirrelMail knows how to handle.
str_replace('%', '=', $value) is too naive, it may leave
some characters which should be encoded, like the
underscore ("_"), unencoded. It's probably better to
completely reencode the value, like this:
diff against version 1.4.6
Logged In: NO
str_replace('%', '=', $value) is too naive, it may leave
some characters which should be encoded, like the
underscore ("_"), unencoded. It's probably better to
completely reencode the value, like this:
$properties[substr($key, 0, $idx)] = '=?'.$charset.
$language.'?B?'.base64_encode(rawurldecode($value)).'?=';