From 95dbb445b209880a5f3e671c1203e7432bad2ebb Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 28 May 2009 22:05:42 -0600 Subject: [PATCH] Fix preview generation. Was downloading bodytext for unseen messages regardless of preview preference. --- imp/lib/Mailbox.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.11.0