Changeset 266 in subversion
- Timestamp:
- Jun 26, 2006 2:38:03 PM (7 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 10 edited
-
CHANGELOG (modified) (1 diff)
-
UPGRADING (modified) (5 diffs)
-
program/include/main.inc (modified) (1 diff)
-
program/include/rcube_imap.inc (modified) (1 diff)
-
program/include/rcube_smtp.inc (modified) (1 diff)
-
program/localization/de_CH/labels.inc (modified) (2 diffs)
-
program/localization/de_CH/messages.inc (modified) (1 diff)
-
program/localization/de_DE/labels.inc (modified) (2 diffs)
-
program/localization/de_DE/messages.inc (modified) (1 diff)
-
program/steps/mail/sendmail.inc (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r261 r266 2 2 --------------------------- 3 3 4 2006/06/25 5 ---------- 6 - Changed behavior to include host-specific configuration (Bug #1483849) 7 - Assume ISO-8859-1 encoding of mail messages by default (Patch #1483839) 8 - Fixed spell checker to work with the new URL at google.com 9 - Some memory and security optimizations sendmail.inc 10 - Updated UGRADING description 11 12 4 13 2006/06/19 5 14 ---------- 6 15 - Added Drafts support (Feature #1326839) (richs) 16 7 17 8 18 2006/06/02 -
trunk/roundcubemail/UPGRADING
r168 r266 72 72 $rcmail_config['temp_dir'] = 'temp/'; 73 73 $rcmail_config['message_cache_lifetime'] = '10d'; 74 $rcmail_config['drafts_mbox'] = 'Drafts'; 75 $rcmail_config['product_name'] = 'RoundCube Webmail'; 76 $rcmail_config['read_when_deleted'] = TRUE; 77 $rcmail_config['enable_spellcheck'] = TRUE; 74 78 - add these lines to /config/db.inc.php 75 79 $rcmail_config['db_max_length'] = 512000; … … 79 83 $rcmail_config['db_sequence_cache_ids'] = 'cache_ids'; 80 84 $rcmail_config['db_sequence_message_ids'] = 'message_ids'; 81 85 $rcmail_config['db_persistent'] = TRUE; 82 86 83 87 from version 0.1-20051021 … … 94 98 $rcmail_config['temp_dir'] = 'temp/'; 95 99 $rcmail_config['message_cache_lifetime'] = '10d'; 100 $rcmail_config['drafts_mbox'] = 'Drafts'; 101 $rcmail_config['product_name'] = 'RoundCube Webmail'; 102 $rcmail_config['read_when_deleted'] = TRUE; 103 $rcmail_config['enable_spellcheck'] = TRUE; 96 104 - add these lines to /config/db.inc.php 97 105 $rcmail_config['db_max_length'] = 512000; … … 101 109 $rcmail_config['db_sequence_cache_ids'] = 'cache_ids'; 102 110 $rcmail_config['db_sequence_message_ids'] = 'message_ids'; 111 $rcmail_config['db_persistent'] = TRUE; 103 112 104 113 … … 110 119 - add these lines to /config/db.inc.php 111 120 $rcmail_config['db_persistent'] = TRUE; 112 121 - add these lines to /config/main.inc.php 122 $rcmail_config['drafts_mbox'] = 'Drafts'; 123 $rcmail_config['product_name'] = 'RoundCube Webmail'; 124 $rcmail_config['read_when_deleted'] = TRUE; 125 $rcmail_config['enable_spellcheck'] = TRUE; 126 - replace the following line from /config/main.inc.php 127 @include($_SERVER['HTTP_HOST'].'.inc.php'); 128 with 129 $rcmail_config['include_host_config'] = TRUE; 113 130 131 -
trunk/roundcubemail/program/include/main.inc
r263 r266 45 45 46 46 // load host-specific configuration 47 rcmail_load_host_config( &$CONFIG);47 rcmail_load_host_config($CONFIG); 48 48 49 49 $CONFIG['skin_path'] = $CONFIG['skin_path'] ? preg_replace('/\/$/', '', $CONFIG['skin_path']) : 'skins/default'; -
trunk/roundcubemail/program/include/rcube_imap.inc
r264 r266 991 991 992 992 // append a mail message (source) to a specific mailbox 993 function save_message($mbox_name, $message)993 function save_message($mbox_name, &$message) 994 994 { 995 995 $mailbox = $this->_mod_mailbox($mbox_name); -
trunk/roundcubemail/program/include/rcube_smtp.inc
r158 r266 50 50 * @access public 51 51 */ 52 function smtp_mail($from, $recipients, $headers, &$body)52 function smtp_mail($from, $recipients, &$headers, &$body) 53 53 { 54 54 global $SMTP_CONN, $CONFIG, $SMTP_ERROR; -
trunk/roundcubemail/program/localization/de_CH/labels.inc
r261 r266 38 38 $labels['sent'] = 'Gesendet'; 39 39 $labels['trash'] = 'Gelöscht'; 40 $labels['drafts'] = 'Vorlagen';41 40 $labels['junk'] = 'Junk'; 42 41 … … 122 121 // message compose // Nachrichten erstellen 123 122 $labels['compose'] = 'Neue Nachricht verfassen'; 124 $labels['savemessage'] = ' AuÃer diesem Entwurf';123 $labels['savemessage'] = 'Nachricht speichern'; 125 124 $labels['sendmessage'] = 'Nachricht jetzt senden'; 126 125 $labels['addattachment'] = 'Datei anfÃŒgen'; -
trunk/roundcubemail/program/localization/de_CH/messages.inc
r261 r266 39 39 $messages['messagesent'] = 'Nachricht erfolgreich gesendet'; 40 40 41 $messages['savingmessage'] = ' Einsparunganzeige...';41 $messages['savingmessage'] = 'Nachricht wird gespeichert...'; 42 42 43 $messages['messagesaved'] = ' Anzeige gespeichert zu den EntwÃŒrfen';43 $messages['messagesaved'] = 'Nachricht als Entwurf gespeichert'; 44 44 45 45 $messages['successfullysaved'] = 'Erfolgreich gespeichert'; -
trunk/roundcubemail/program/localization/de_DE/labels.inc
r261 r266 39 39 $labels['sent'] = 'Gesendet'; 40 40 $labels['trash'] = 'Gelöscht'; 41 $labels['drafts'] = 'EntwÃŒrfe';42 41 $labels['junk'] = 'Spam'; 43 42 … … 123 122 // message compose // Nachrichten erstellen 124 123 $labels['compose'] = 'Neue Nachricht verfassen'; 125 $labels['savemessage'] = ' AuÃer diesem Entwurf';124 $labels['savemessage'] = 'Nachricht speichern'; 126 125 $labels['sendmessage'] = 'Nachricht jetzt senden'; 127 126 $labels['addattachment'] = 'Datei anfÃŒgen'; -
trunk/roundcubemail/program/localization/de_DE/messages.inc
r261 r266 41 41 $messages['messagesent'] = 'Nachricht erfolgreich gesendet'; 42 42 43 $messages['savingmessage'] = ' Einsparunganzeige...';43 $messages['savingmessage'] = 'Nachricht wird gespeichert...'; 44 44 45 $messages['messagesaved'] = ' Anzeige gespeichert zu den EntwÃŒrfen';45 $messages['messagesaved'] = 'Nachricht als Entwurf gespeichert'; 46 46 47 47 $messages['successfullysaved'] = 'Erfolgreich gespeichert'; -
trunk/roundcubemail/program/steps/mail/sendmail.inc
r261 r266 63 63 } 64 64 65 if (strlen($_POST['_draft_saveid']) > 3) { 66 $olddraftmessageid = $_POST['_draft_saveid']; 67 } 68 if (strlen($_POST['_draft_newsaveid']) > 3) { 69 $newdraftmessageid = $_POST['_draft_newsaveid']; 70 } 71 if ($_POST['_draft']) { 72 $savedraft = 1; 73 } 65 if (strlen($_POST['_draft_saveid']) > 3) 66 $olddraftmessageid = get_input_value('_draft_saveid', RCUBE_INPUT_POST); 67 68 if (strlen($_POST['_draft_newsaveid']) > 3) 69 $newdraftmessageid = get_input_value('_draft_newsaveid', RCUBE_INPUT_POST); 70 71 $savedraft = !empty($_POST['_draft']) ? TRUE : FALSE; 72 74 73 75 74 /****** check submission and compose message ********/ … … 96 95 // decode address strings 97 96 $to_address_arr = $IMAP->decode_address_list($mailto); 98 $identity_arr = rcmail_get_identity( $_POST['_from']);97 $identity_arr = rcmail_get_identity(get_input_value('_from', RCUBE_INPUT_POST)); 99 98 100 99 … … 104 103 105 104 // try the message-id submitted by the compose form 106 if ($newdraftmessageid) {105 if ($newdraftmessageid) 107 106 $message_id = sprintf('<%s>',$newdraftmessageid); 108 } else { 107 else 109 108 $message_id = sprintf('<%s@%s>', md5(uniqid('rcmail'.rand(),true)), $_SESSION['imap_host']); 110 } 109 110 if (empty($identity_arr['string'])) 111 $identity_arr['string'] = $from; 111 112 112 113 … … 114 115 $headers = array('Date' => date('D, j M Y G:i:s O'), 115 116 'From' => $identity_arr['string'], 116 'To' => rcube_charset_convert($mailto, $input_charset, $message_charset));117 'To' => $mailto); 117 118 118 119 // additional recipients … … 219 220 220 221 // compose message body and get headers 221 $msg_body = $MAIL_MIME->get($message_param);222 $msg_body = &$MAIL_MIME->get($message_param); 222 223 223 224 $msg_subject = $headers['Subject']; … … 296 297 297 298 // Determine which folder to save message 298 if ($savedraft) { 299 $store_target = 'drafts_mbox'; 300 } else { 301 $store_target = 'sent_mbox'; 302 } 299 if ($savedraft) 300 $store_target = 'drafts_mbox'; 301 else 302 $store_target = 'sent_mbox'; 303 303 304 304 if ($CONFIG[$store_target]) … … 312 312 else 313 313 $store_folder = TRUE; 314 315 // add headers to message body 316 $msg_body = $header_str."\r\n".$msg_body; 314 317 315 318 // append message to sent box 316 319 if ($store_folder) 317 $saved = $IMAP->save_message($CONFIG[$store_target], $ header_str."\r\n".$msg_body);320 $saved = $IMAP->save_message($CONFIG[$store_target], $msg_body); 318 321 319 322 // raise error if saving failed … … 324 327 'message' => "Could not save message in $CONFIG[$store_target]"), TRUE, FALSE); 325 328 326 if ($olddraftmessageid) { 329 if ($olddraftmessageid) 330 { 327 331 // delete previous saved draft 328 332 $a_deleteid = $IMAP->search($CONFIG['drafts_mbox'],'HEADER Message-ID',$olddraftmessageid);
Note: See TracChangeset
for help on using the changeset viewer.
