From: Michael M Slusarz Date: Fri, 29 May 2009 04:05:42 +0000 (-0600) Subject: Fix preview generation. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=95dbb445b209880a5f3e671c1203e7432bad2ebb;p=horde.git Fix preview generation. Was downloading bodytext for unseen messages regardless of preview preference. --- diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index 91f29f58a..29232529f 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -224,8 +224,9 @@ class IMP_Mailbox } if (($options['preview'] === 2) || - !$GLOBALS['prefs']->getValue('preview_show_unread') || - !in_array('\\seen', $v['flags'])) { + (($options['preview'] === 1) && + (!$GLOBALS['prefs']->getValue('preview_show_unread') || + !in_array('\\seen', $v['flags'])))) { if (empty($preview_info[$k])) { try { $imp_contents = IMP_Contents::singleton($k . IMP::IDX_SEP . $mbox);