Changeset 50 in subversion for trunk/roundcubemail/program/lib/imap.inc


Ignore:
Timestamp:
Oct 21, 2005 8:12:23 AM (8 years ago)
Author:
roundcube
Message:

Improved support for UTF-8 and other charsets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/imap.inc

    r37 r50  
    12401240                        $result[$id]->encoding = str_replace("\n", " ", $headers["content-transfer-encoding"]); 
    12411241                        $result[$id]->ctype = str_replace("\n", " ", $headers["content-type"]); 
    1242                         //$result[$id]->in_reply_to = ereg_replace("[\n<>]",'', $headers['in-reply-to']); 
    1243                         list($result[$id]->ctype,$foo) = explode(";", $headers["content-type"]); 
     1242                        $result[$id]->in_reply_to = ereg_replace("[\n<>]",'', $headers['in-reply-to']); 
     1243                         
     1244                        list($result[$id]->ctype, $ctype_add) = explode(";", $headers["content-type"]); 
     1245 
     1246                        if (preg_match('/charset="?([a-z0-9\-]+)"?/i', $ctype_add, $regs)) 
     1247                                $result[$id]->charset = $regs[1]; 
     1248 
    12441249                        $messageID = $headers["message-id"]; 
    12451250                        if ($messageID) $messageID = substr(substr($messageID, 1), 0, strlen($messageID)-2); 
Note: See TracChangeset for help on using the changeset viewer.