Menu

#384 support for rfc-2231 encoded file names (repost)

open
nobody
5
2006-03-04
2006-03-04
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

    diff against version 1.4.6

     
  • Nobody/Anonymous

    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)).'?=';

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.