thomascube
2007-10-17 ecd2e7961433462d01dabc38d1fd090431f70566
Make message listing less error prone

3 files modified
15 ■■■■ changed files
CHANGELOG 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.inc 4 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc 6 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,8 +1,13 @@
CHANGELOG RoundCube Webmail
---------------------------
2007/10/17 (thomasb)
----------
- Make message listing less error prone
2007/10/10 (thomasb)
----------
- Suppress IE errors when clearing attachments form (#1484356)
- Set preferences field in user table to NULL (#1484386)
- Log error when login fails due to auto_create_user turned off
- Update UPGRADING instructions
program/include/rcube_imap.inc
@@ -2040,6 +2040,10 @@
        {
        $uid = $sql_arr['uid'];
        $this->cache[$cache_key][$uid] = unserialize($sql_arr['headers']);
        // featch headers if unserialize failed
        if (empty($this->cache[$cache_key][$uid]))
          $this->cache[$cache_key][$uid] = iil_C_FetchHeader($this->conn, preg_replace('/.msg$/', '', $key), $uid, true);
        }
      }
      
program/steps/mail/func.inc
@@ -314,11 +314,13 @@
  $OUTPUT->command('set_message_coltypes', $a_show_cols);
  // loop through message headers
  for ($n=0; $a_headers[$n]; $n++)
  foreach ($a_headers as $n => $header)
    {
    $header = $a_headers[$n];
    $a_msg_cols = array();
    $a_msg_flags = array();
    if (empty($header))
      continue;
    // format each col; similar as in rcmail_message_list()
    foreach ($a_show_cols as $col)