Changeset c9ca6ad in github
- Timestamp:
- Oct 24, 2008 8:01:45 PM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 072fdef
- Parents:
- 1971ddc
- Files:
-
- 6 edited
-
index.php (modified) (2 diffs)
-
program/include/main.inc (modified) (4 diffs)
-
program/include/rcube_imap.php (modified) (1 diff)
-
program/include/rcube_message.php (modified) (1 diff)
-
program/lib/Mail/mime.php (modified) (1 diff)
-
program/steps/mail/show.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
index.php
r835ae851 rc9ca6ad 50 50 } 51 51 52 53 52 // check if config files had errors 54 53 if ($err_str = $RCMAIL->config->get_error()) { … … 66 65 'message' => $err_str), FALSE, TRUE); 67 66 } 68 69 67 70 68 // error steps -
program/include/main.inc
r407dcf9 rc9ca6ad 189 189 190 190 $aliases = array( 191 'US-ASCII' => 'ISO-8859-1', 192 'UNKNOWN-8BIT' => 'ISO-8859-15', 193 'X-UNKNOWN' => 'ISO-8859-15', 194 'X-USER-DEFINED' => 'ISO-8859-15', 195 'ISO-8859-8-I' => 'ISO-8859-8', 196 'KS_C_5601-1987' => 'EUC-KR', 191 'US-ASCII' => 'ISO-8859-1', 192 'ANSI_X3.110-1983' => 'ISO-8859-1', 193 'ANSI_X3.4-1968' => 'ISO-8859-1', 194 'UNKNOWN-8BIT' => 'ISO-8859-15', 195 'X-UNKNOWN' => 'ISO-8859-15', 196 'X-USER-DEFINED' => 'ISO-8859-15', 197 'ISO-8859-8-I' => 'ISO-8859-8', 198 'KS_C_5601-1987' => 'EUC-KR', 197 199 ); 198 200 … … 685 687 else if (!empty($date)) 686 688 { 687 while (($ts = @strtotime($date))===false) 689 // if date parsing fails, we have a date in non-rfc format. 690 // remove token from the end and try again 691 while ((($ts = @strtotime($date))===false) || ($ts < 0)) 688 692 { 689 // if we have a date in non-rfc format690 // remove token from the end and try again691 693 $d = explode(' ', $date); 692 694 array_pop($d); … … 826 828 date("d-M-Y H:i:s O", mktime()), 827 829 $line); 828 830 829 831 if ($CONFIG['log_driver'] == 'syslog') { 830 832 if ($name == 'errors') … … 837 839 if (empty($CONFIG['log_dir'])) 838 840 $CONFIG['log_dir'] = INSTALL_PATH.'logs'; 839 841 840 842 // try to open specific log file for writing 841 843 if ($fp = @fopen($CONFIG['log_dir'].'/'.$name, 'a')) { 842 844 fwrite($fp, $log_entry); 845 fflush($fp); 843 846 fclose($fp); 844 847 } -
program/include/rcube_imap.php
r28db73f rc9ca6ad 1026 1026 1027 1027 // return cached message structure 1028 if (is_object($headers) && is_object($headers->structure)) 1028 if (is_object($headers) && is_object($headers->structure)) { 1029 1029 return $headers->structure; 1030 1030 } 1031 1031 1032 // resolve message sequence number 1032 if (!($msg_id = $this->_uid2id($uid))) 1033 if (!($msg_id = $this->_uid2id($uid))) { 1033 1034 return FALSE; 1034 1035 $structure_str = iil_C_FetchStructureString($this->conn, $this->mailbox, $msg_id); 1035 } 1036 1037 $structure_str = iil_C_FetchStructureString($this->conn, $this->mailbox, $msg_id); 1036 1038 $structure = iml_GetRawStructureArray($structure_str); 1037 1039 $struct = false; -
program/include/rcube_message.php
rae579ce rc9ca6ad 64 64 'get_url' => rcmail_url('get', array('_mbox' => $this->imap->get_mailbox_name(), '_uid' => $uid)) 65 65 ); 66 66 67 67 if ($this->structure = $this->imap->get_structure($uid)) { 68 68 $this->get_mime_numbers($this->structure); -
program/lib/Mail/mime.php
rffae15e5 rc9ca6ad 1069 1069 $hdr_value = $quotePrefix . $hdr_value . $quoteSuffix; 1070 1070 1071 1072 1071 $hdr_value_out = $hdr_value; 1073 1072 $realMax = $maxLength1stLine + strlen($prefix . $suffix); -
program/steps/mail/show.inc
ra887925 rc9ca6ad 25 25 if ($_GET['_uid']) { 26 26 $MESSAGE = new rcube_message(get_input_value('_uid', RCUBE_INPUT_GET)); 27 27 28 28 // set message charset as default 29 29 if (!empty($MESSAGE->headers->charset)) … … 218 218 $OUTPUT->send('printmessage'); 219 219 else if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview')) 220 $OUTPUT->send('messagepreview');220 $OUTPUT->send('messagepreview'); 221 221 else 222 222 $OUTPUT->send('message');
Note: See TracChangeset
for help on using the changeset viewer.
