Changeset 130 in subversion
- Timestamp:
- Feb 4, 2006 2:08:10 PM (7 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 16 edited
-
.htaccess (modified) (1 diff)
-
CHANGELOG (modified) (2 diffs)
-
SQL/sqlite.initial.sql (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
index.php (modified) (1 diff)
-
program/include/main.inc (modified) (5 diffs)
-
program/include/rcube_imap.inc (modified) (1 diff)
-
program/js/app.js (modified) (2 diffs)
-
program/lib/utf8.class.php (modified) (3 diffs)
-
program/steps/mail/check_recent.inc (modified) (1 diff)
-
program/steps/mail/compose.inc (modified) (4 diffs)
-
program/steps/mail/func.inc (modified) (3 diffs)
-
program/steps/mail/move_del.inc (modified) (1 diff)
-
program/steps/mail/sendmail.inc (modified) (3 diffs)
-
skins/default/mail.css (modified) (1 diff)
-
skins/default/templates/mail.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/.htaccess
r92 r130 1 php_flag display_errors On 2 php_value upload_max_filesize 2m 1 AddDefaultCharset UTF-8 2 php_flag display_errors On 3 php_value upload_max_filesize 2m 3 4 4 5 <FilesMatch "(\.inc|\~)$|^_"> -
trunk/roundcubemail/CHANGELOG
r119 r130 2 2 --------------------------- 3 3 4 2006/0 1/194 2006/02/04 5 5 ---------- 6 - Added Slovak translation6 - Added Slovak, Hungarian, Bosnian and Croation translation 7 7 - Fixed bug when inserting signatures with !?& 8 8 - Chopping message headers before inserting into the message cache table (to avoid bugs in Postgres) … … 21 21 - Applied patch for correct ctrl/shift behavior for message selection (Bug #1326364) 22 22 - Casting to strings when adding empty headers to message cache (Bug #1406026) 23 - Skip sender-address as recipient when Reply-to-all 24 - Fixes in utf8-class 25 - Added patch for Quota display by Aury Fink Filho <nuny@aury.com.br> 23 26 24 27 -
trunk/roundcubemail/SQL/sqlite.initial.sql
r125 r130 32 32 contact_id integer NOT NULL PRIMARY KEY, 33 33 user_id integer NOT NULL default '0', 34 c reated datetime NOT NULL default '0000-00-00 00:00:00',34 changed datetime NOT NULL default '0000-00-00 00:00:00', 35 35 del tinyint NOT NULL default '0', 36 36 name varchar(128) NOT NULL default '', -
trunk/roundcubemail/config/main.inc.php.dist
r111 r130 86 86 $rcmail_config['ip_check'] = TRUE; 87 87 88 // not sure what this was good for :-)88 // the default locale setting 89 89 $rcmail_config['locale_string'] = 'en'; 90 90 -
trunk/roundcubemail/index.php
r127 r130 64 64 ini_set('session.gc_maxlifetime', 21600); 65 65 ini_set('session.gc_divisor', 500); 66 ini_set('magic_quotes_gpc', 0); 66 67 ini_set('error_reporting', E_ALL&~E_NOTICE); 67 68 -
trunk/roundcubemail/program/include/main.inc
r114 r130 72 72 // we can use the database for storing session data 73 73 // session queries do not work with MDB2 74 if ($CONFIG['db_backend']!='mdb2' && is_object($DB) /* && $DB->db_provider!='sqlite' */)74 if ($CONFIG['db_backend']!='mdb2' && is_object($DB)) 75 75 include_once('include/session.inc'); 76 76 … … 710 710 711 711 // convert charset using iconv module 712 if ( function_exists('iconv') && $from!='UTF-7' && $to!='UTF-7') {712 if (0 && function_exists('iconv') && $from!='UTF-7' && $to!='UTF-7') { 713 713 return iconv($from, $to, $str); 714 714 } 715 715 716 $conv = new utf8(); 717 716 718 // convert string to UTF-8 717 719 if ($from=='UTF-7') … … 721 723 else if ($from!='UTF-8') 722 724 { 723 $conv = new utf8($from);725 $conv->loadCharset($from); 724 726 $str = $conv->strToUtf8($str); 725 727 } … … 732 734 else if ($to!='UTF-8') 733 735 { 734 $conv = new utf8($to);736 $conv->loadCharset($to); 735 737 return $conv->utf8ToStr($str); 736 738 } … … 961 963 'messages' => 'rcmail_message_list', 962 964 'messagecountdisplay' => 'rcmail_messagecount_display', 965 'quotadisplay' => 'rcmail_quota_display', 963 966 'messageheaders' => 'rcmail_message_headers', 964 967 'messagebody' => 'rcmail_message_body', -
trunk/roundcubemail/program/include/rcube_imap.inc
r127 r130 1058 1058 1059 1059 1060 /** 1061 * Get quota 1062 * added by Nuny 1063 */ 1064 function get_quota() 1065 { 1066 if ($this->get_capability('QUOTA')) 1067 { 1068 $result = iil_C_GetQuota($this->conn); 1069 return sprintf("%.2fMB / %.2fMB (%.0f%%)", $result["used"] / 1000.0, $result["total"] / 1000.0, $result["percent"]); 1070 } 1071 else 1072 return 'unknown'; 1073 } 1074 1075 1060 1076 // subscribe to a specific mailbox(es) 1061 1077 function subscribe($mbox, $mode='subscribe') -
trunk/roundcubemail/program/js/app.js
r128 r130 232 232 233 233 // disable browser's contextmenus 234 //document.oncontextmenu = function(){ return false; }234 document.oncontextmenu = function(){ return false; } 235 235 236 236 // load body click event … … 2646 2646 }; 2647 2647 2648 // replace content of quota display 2649 this.set_quota = function(text) 2650 { 2651 if (this.gui_objects.quotadisplay) 2652 this.gui_objects.quotadisplay.innerHTML = text; 2653 }; 2654 2648 2655 2649 2656 // update the mailboxlist -
trunk/roundcubemail/program/lib/utf8.class.php
r116 r130 59 59 Class utf8{ 60 60 61 var $charset = CP1250;61 var $charset = "ISO-8859-1"; 62 62 var $ascMap = array(); 63 63 var $utfMap = array(); 64 64 65 65 // made PHP5 capable by RoundCube 66 66 function __construct($charset="ISO-8859-1"){ … … 76 76 function loadCharset($charset){ 77 77 global $utf8_maps; 78 78 79 79 if (!is_file($utf8_maps[$charset])) 80 80 { … … 171 171 172 172 } 173 173 174 ?> -
trunk/roundcubemail/program/steps/mail/check_recent.inc
r127 r130 31 31 $commands .= sprintf("this.set_env('messagecount', %d);\n", $count); 32 32 $commands .= sprintf("this.set_rowcount('%s');\n", rcmail_get_messagecount_text()); 33 33 $commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); 34 34 35 // add new message headers to list 35 36 $a_headers = array(); -
trunk/roundcubemail/program/steps/mail/compose.inc
r92 r130 146 146 if ($header=='to' && $REPLY_MESSAGE['headers']->replyto) 147 147 $fvalue = $IMAP->decode_header($REPLY_MESSAGE['headers']->replyto); 148 148 149 else if ($header=='to' && $REPLY_MESSAGE['headers']->from) 149 150 $fvalue = $IMAP->decode_header($REPLY_MESSAGE['headers']->from); 151 150 152 // add recipent of original message if reply to all 151 153 else if ($header=='cc' && $REPLY_MESSAGE['reply_all']) … … 170 172 foreach ($to_addresses as $addr_part) 171 173 { 172 if (!in_array($addr_part['mailto'], $sa_recipients) )174 if (!in_array($addr_part['mailto'], $sa_recipients) && (!$REPLY_MESSAGE['FROM'] || !in_array($addr_part['mailto'], $REPLY_MESSAGE['FROM']))) 173 175 { 174 176 $fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string']; … … 215 217 if ($REPLY_MESSAGE && is_object($REPLY_MESSAGE['headers'])) 216 218 { 219 $REPLY_MESSAGE['FROM'] = array(); 220 217 221 $a_to = $IMAP->decode_address_list($REPLY_MESSAGE['headers']->to); 218 222 foreach ($a_to as $addr) … … 260 264 if (in_array($sql_arr['email'], $a_recipients)) 261 265 $from_id = $sql_arr['identity_id']; 266 267 if ($REPLY_MESSAGE && is_array($REPLY_MESSAGE['FROM'])) 268 $REPLY_MESSAGE['FROM'][] = $sql_arr['email']; 262 269 } 263 270 -
trunk/roundcubemail/program/steps/mail/func.inc
r127 r130 546 546 547 547 548 function rcmail_quota_display($attrib) 549 { 550 global $IMAP, $OUTPUT, $JS_OBJECT_NAME; 551 552 if (!$attrib['id']) 553 $attrib['id'] = 'rcmquotadisplay'; 554 555 $OUTPUT->add_script(sprintf("%s.gui_object('quotadisplay', '%s');", $JS_OBJECT_NAME, $attrib['id'])); 556 557 // allow the following attributes to be added to the <span> tag 558 $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 559 560 561 $out = '<span' . $attrib_str . '>'; 562 $out .= $IMAP->get_quota(); 563 $out .= '</span>'; 564 return $out; 565 } 566 548 567 549 568 function rcmail_get_messagecount_text() … … 581 600 582 601 $block = $plain ? '%s' : '%s'; //'<div style="display:block;">%s</div>'; 583 $body = $IMAP->mime_decode($body, $encoding); 602 $body = $IMAP->mime_decode($body, $encoding); 584 603 $body = $IMAP->charset_decode($body, $parameters); 585 586 604 587 605 // text/html … … 805 823 806 824 // part text/[plain|html] OR message/delivery-status 807 else if (($primary_type=='text' && ($secondary_type=='plain' || $secondary_type=='html') ) ||825 else if (($primary_type=='text' && ($secondary_type=='plain' || $secondary_type=='html') && $mail_part->disposition!='attachment') || 808 826 ($primary_type=='message' && $secondary_type=='delivery-status')) 809 827 { -
trunk/roundcubemail/program/steps/mail/move_del.inc
r85 r130 74 74 $commands .= sprintf("this.set_unread_count('%s', %d);\n", $_GET['_target_mbox'], $IMAP->messagecount($_GET['_target_mbox'], 'UNSEEN')); 75 75 76 $commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota()); 76 77 77 78 // add new rows from next page (if any) -
trunk/roundcubemail/program/steps/mail/sendmail.inc
r102 r130 116 116 117 117 // add subject 118 $headers['Subject'] = rcube_charset_convert(trim( stripslashes($_POST['_subject'])), $input_charset, $message_charset);118 $headers['Subject'] = rcube_charset_convert(trim($_POST['_subject']), $input_charset, $message_charset); 119 119 120 120 if (strlen($identity_arr['organization'])) … … 145 145 146 146 // fetch message body 147 $message_body = rcube_charset_convert( stripslashes($_POST['_message']), $input_charset, $message_charset);147 $message_body = rcube_charset_convert($_POST['_message'], $input_charset, $message_charset); 148 148 149 149 // append generic footer to all messages … … 226 226 { 227 227 // unset some headers because they will be added by the mail() function 228 $headers_php = $ headers;228 $headers_php = $MAIL_MIME->_headers; 229 229 $headers_enc = $MAIL_MIME->headers($headers); 230 230 unset($headers_php['To'], $headers_php['Subject']); -
trunk/roundcubemail/skins/default/mail.css
r104 r130 750 750 } 751 751 752 #rcmquotadisplay 753 { 754 color: #999999; 755 font-size: 11px; 756 } -
trunk/roundcubemail/skins/default/templates/mail.html
r127 r130 51 51 <roundcube:button command="select-all" label="all" classAct="active" /> 52 52 <roundcube:button command="select-all" prop="unread" label="unread" classAct="active" /> 53 <roundcube:button command="select-none" label="none" classAct="active" /> 53 <roundcube:button command="select-none" label="none" classAct="active" /> 54 <roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" /> 54 55 </div> 55 56
Note: See TracChangeset
for help on using the changeset viewer.
