From: philippe_mingo Date: Tue, 9 Oct 2001 11:44:42 +0000 (+0000) Subject: In some 'compose' situations (for example when inside options) the system doesn... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=f136c965a7dac2d1787e50f8a421788ad0924882;hp=248bfebb4a9608e0d8252cd4b28d54049cfa64c6 In some 'compose' situations (for example when inside options) the system doesn't know the return-to mailbox. In this case I read it from preferences and take the first in the list. This should fix the MAILBOX bug in SF. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1557 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index e8523344..8ba5944c 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -27,7 +27,7 @@ } $GLOBALS["row_count"]++; if ($GLOBALS["row_count"] % 2) { - if (!isset($color[12])) $color[12] = "#EAEAEA"; + if (!isset($color[12])) $color[12] = '#EAEAEA'; $color_string = $color[12]; } } @@ -35,6 +35,13 @@ $msg = $msgs[$key]; $senderName = sqimap_find_displayable_name($msg['FROM']); + if( $mailbox == _("None") ) { + // $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + $boxes = sqimap_mailbox_list($imapConnection); + // sqimap_logout($imapConnection); + $mailbox = $boxes[0]['unformatted']; + unset( $boxes ); + } $urlMailbox = urlencode($mailbox); $subject = processSubject($msg['SUBJECT']);