diff options
author | alecpl <alec@alec.pl> | 2009-10-02 10:58:12 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-10-02 10:58:12 +0000 |
commit | ee3c580bfe56e3d053e469b229463d4c45fa63af (patch) | |
tree | 8c107b9f53dafb115d2c1c51121781e57701986d | |
parent | 1480e2f37419ea54a850bbcfb42218fa7e6c50b4 (diff) |
- added @TODO comment
-rw-r--r-- | program/include/rcube_imap.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index bfe284544..6e98b208a 100644 --- a/program/include/rcube_imap.php +++ b/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); |