[Hastymail-cvs] SF.net SVN: hastymail:[1757] trunk/hastymail2/lib
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2011-01-11 21:49:30
|
Revision: 1757 http://hastymail.svn.sourceforge.net/hastymail/?rev=1757&view=rev Author: sailfrog Date: 2011-01-11 21:49:23 +0000 (Tue, 11 Jan 2011) Log Message: ----------- fix a bug that causes the To: field to show up on the unread mail page when the folder being displayed is the sent folder Modified Paths: -------------- trunk/hastymail2/lib/site_page_class.php trunk/hastymail2/lib/url_action_classes/new.php Modified: trunk/hastymail2/lib/site_page_class.php =================================================================== --- trunk/hastymail2/lib/site_page_class.php 2011-01-11 21:37:09 UTC (rev 1756) +++ trunk/hastymail2/lib/site_page_class.php 2011-01-11 21:49:23 UTC (rev 1757) @@ -931,7 +931,7 @@ } return $data; } -function print_mailbox_list_rows($cols, $rows, $onclick, $mailbox, $n=1) { +function print_mailbox_list_rows($cols, $rows, $onclick, $mailbox, $n=1, $ignore_sent=false) { global $page_id; $data = ''; $search_res = array(); @@ -1016,7 +1016,7 @@ $new_window = 'onclick="open_window(\''.$message_url.'&new_window=1&parent_refresh=1\', 1024, 900, '.$vals['uid'].'); return false;"'; } } - if (isset($this->pd['settings']['sent_folder']) && + if (!$ignore_sent && isset($this->pd['settings']['sent_folder']) && $mailbox == $this->pd['settings']['sent_folder']) { $from = clean_from($vals['to']); $full_from = $vals['to']; Modified: trunk/hastymail2/lib/url_action_classes/new.php =================================================================== --- trunk/hastymail2/lib/url_action_classes/new.php 2011-01-11 21:37:09 UTC (rev 1756) +++ trunk/hastymail2/lib/url_action_classes/new.php 2011-01-11 21:49:23 UTC (rev 1757) @@ -157,7 +157,7 @@ } $data .= '</td></tr></complex-'.$page_id.'>'; if (!empty($array['headers'])) { - $data .= $this->print_mailbox_list_rows($msg_list_flds, $array['headers'], $onclick, $i, $n); + $data .= $this->print_mailbox_list_rows($msg_list_flds, $array['headers'], $onclick, $i, $n, true); $n += count($array['headers']); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |