diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-02 10:58:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-02 10:58:12 +0000 |
| commit | a0a63ce119c7592a4488d9c3ccd3df64d538c8ec (patch) | |
| tree | 5602f409ad009899ef2b5cf033ff1179f9834516 /roundcubemail/program/include | |
| parent | 00829fc116b5101e906f0c88d84748af909a807e (diff) | |
- added @TODO comment
git-svn-id: https://svn.roundcube.net/trunk@3007 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index bfe284544..6e98b208a 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -1225,6 +1225,18 @@ class rcube_imap else $this->struct_charset = $this->_structure_charset($structure); + /* + @TODO: here we can recognize malformed BODYSTRUCTURE and parse + the message in other way to create our own message structure. + Example of structure for malformed MIME message: + ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 2154 70 NIL NIL NIL) + + if ($headers->ctype != 'text/plain' + && !is_array($structure[0]) && $structure[0] == 'text' + && !is_array($structure[1]) && $structure[1] == 'plain') + { } + */ + $struct = &$this->_structure_part($structure); $struct->headers = get_object_vars($headers); |
