Forráskód Böngészése

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.
philippe_mingo 24 éve
szülő
commit
b869c6dfe9
1 módosított fájl, 8 hozzáadás és 1 törlés
  1. 8 1
      functions/mailbox_display.php

+ 8 - 1
functions/mailbox_display.php

@@ -27,7 +27,7 @@
           }
           }
           $GLOBALS["row_count"]++;
           $GLOBALS["row_count"]++;
           if ($GLOBALS["row_count"] % 2) {
           if ($GLOBALS["row_count"] % 2) {
-          if (!isset($color[12])) $color[12] = "#EAEAEA";
+          if (!isset($color[12])) $color[12] = '#EAEAEA';
             $color_string = $color[12];
             $color_string = $color[12];
           }
           }
       }
       }
@@ -35,6 +35,13 @@
       $msg = $msgs[$key];
       $msg = $msgs[$key];
 
 
       $senderName = sqimap_find_displayable_name($msg['FROM']);
       $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);
       $urlMailbox = urlencode($mailbox);
       $subject = processSubject($msg['SUBJECT']);
       $subject = processSubject($msg['SUBJECT']);