diff -ruN ../am222/changes ./changes --- ../am222/changes 2004-09-07 05:40:08.000000000 -0400 +++ ./changes 2004-09-09 23:49:32.000000000 -0400 @@ -124,3 +124,32 @@ * Some HTML tweaks * Made whole line bold for new messages, through CSS * Limit spam check to unread messages for speed + +Version 2.23 - Laird Bedore + +Functionality: +* Added support and configuration for SSL-encrypted IMAP servers +* Enhanced FORCE_FROM to work with systems where the mail domain is + different than the IMAP_SERVER value - can optionally configure the + SERVER_SUFFIX variable, if different than IMAP_SERVER +* Enhanced local addressing and save-to-sent-items to also use the + SERVER_SUFFIX if defined +* Fixed an infinite loop generated by some inline images +Cosmetics: +* Tweaked the font sizes for better-emphasized readability, forced the + date and size fields to never line-break. +* Adjusted the table layout to adjust to the size of the data first, then + adjust to the size of the screen afterwards +* Tightened display padding in tables to fit better in small browser windows +* Changed background color of table.main (the lines inbetween table cells). + Looks much better on all themes. +* Added missing body style information, greatly simplified the automatic + centering and bordering of the mail table +Features: +* Added option to hide the To: field if it is not desired on folders other + than the sent items folder. +* Added option to force word-wrap when displaying plain text +* Added option to display shorter email address field for addresses that + have the "personal name" defined +* Added option to get rid of duplicate INBOX folder for some IMAP server + configurations diff -ruN ../am222/config.inc ./config.inc --- ../am222/config.inc 2004-09-07 04:54:13.000000000 -0400 +++ ./config.inc 2004-09-09 23:50:29.000000000 -0400 @@ -1,90 +1,116 @@ - + diff -ruN ../am222/folder.php ./folder.php --- ../am222/folder.php 2004-05-21 12:01:49.000000000 -0400 +++ ./folder.php 2004-09-09 20:32:08.000000000 -0400 @@ -1,131 +1,131 @@ - -
- - -
-INBOX"; - body_left_end(); - body_left(); - echo imap_num_msg($mailbox); - body_left_end(); - body_row_end(); - $first = "rowon"; - $second = "rowoff"; - } - for ($i = 0; $i < count($mailboxes); $i++) - { - $bg = (($i + 1)/2 == floor(($i + 1)/2)) ? $first : $second; - imap_reopen($mailbox, $mailboxes[$i]); - $nm = substr($mailboxes[$i], strrpos($mailboxes[$i], "}") + 1, strlen($mailboxes[$i])); - body_row('class="' . $bg . '"'); - body_left(); - if ($nm != "INBOX") - { - $nm = deconstruct_folder_str($nm); - } - - $url_nm = urlencode($nm); - - echo "$nm"; - body_left_end(); - body_left(); - echo imap_num_msg($mailbox); - body_left_end(); - body_row_end(); - } - } - else - { - body_row('class="rowon"'); - body_left(); - echo "INBOX"; - body_left_end(); - body_left(); - echo imap_num_msg($mailbox); - body_left_end(); - body_row_end(); - } - imap_close($mailbox); - body_end(); - - header_start(); - header_left('colspan="2"'); - ?> - -
- - - -
- - - + +
+ + +
+INBOX"; + body_left_end(); + body_left(); + echo imap_num_msg($mailbox); + body_left_end(); + body_row_end(); + $first = "rowon"; + $second = "rowoff"; + } + for ($i = 0; $i < count($mailboxes); $i++) + { + $bg = (($i + 1)/2 == floor(($i + 1)/2)) ? $first : $second; + imap_reopen($mailbox, $mailboxes[$i]); + $nm = substr($mailboxes[$i], strrpos($mailboxes[$i], "}") + 1, strlen($mailboxes[$i])); + body_row('class="' . $bg . '"'); + body_left(); + if ($nm != "INBOX") + { + $nm = deconstruct_folder_str($nm); + } + + $url_nm = urlencode($nm); + + echo "$nm"; + body_left_end(); + body_left(); + echo imap_num_msg($mailbox); + body_left_end(); + body_row_end(); + } + } + else + { + body_row('class="rowon"'); + body_left(); + echo "INBOX"; + body_left_end(); + body_left(); + echo imap_num_msg($mailbox); + body_left_end(); + body_row_end(); + } + imap_close($mailbox); + body_end(); + + header_start(); + header_left('colspan="2"'); + ?> + +
+ + + +
+ + + diff -ruN ../am222/global.inc ./global.inc --- ../am222/global.inc 2004-09-07 05:38:36.000000000 -0400 +++ ./global.inc 2004-09-09 23:57:51.000000000 -0400 @@ -1,663 +1,711 @@ -charset == "default") - $output .= $element[$i]->text; - else - { - $output .= make_utf8($element[$i]->text, $element[$i]->charset); - } - } - } - return $output; -} - -function make_address_list($header_arr) -{ - $out = array(); - if (is_array($header_arr) && count($header_arr)) - { - foreach ($header_arr as $adr) - { - $out[] = imap_rfc822_write_address($adr->mailbox, $adr->host, $adr->personal); - } - } - return $out; -} - -function make_formaddress_list($header_arr) -{ - $list = make_address_list($header_arr); - $l = array(); - foreach ($list as $adr) - { - $l[] = htmlentities(decode_header_string($adr)); - } - return implode(", ", $l); -} - - -function make_clickable_list($header_arr, $folder) -{ - $list = make_address_list($header_arr); - $l = array(); - foreach ($list as $adr) - { - $l[] = "" - . htmlspecialchars(decode_header_string($adr)) - . ""; - } - return implode(", ", $l); -} - -function list_folders( $mailbox ) -{ - $mailboxes = imap_listmailbox($mailbox, IMAP_STR, FILTER . "*"); - if($mailboxes) - { - sort($mailboxes); - $num_boxes = count($mailboxes); - if (FILTER != "INBOX") { echo "