Changeset 2523 in subversion
- Timestamp:
- May 23, 2009 10:17:07 AM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 1 added
- 12 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_template.php (modified) (1 diff)
-
program/js/app.js (modified) (7 diffs)
-
program/localization/en_GB/labels.inc (modified) (1 diff)
-
program/localization/en_US/labels.inc (modified) (1 diff)
-
program/localization/pl_PL/labels.inc (modified) (1 diff)
-
program/steps/mail/show.inc (modified) (1 diff)
-
program/steps/mail/viewsource.inc (modified) (1 diff)
-
skins/default/includes/messagemenu.html (added)
-
skins/default/mail.css (modified) (3 diffs)
-
skins/default/templates/mail.html (modified) (2 diffs)
-
skins/default/templates/message.html (modified) (3 diffs)
-
skins/default/templates/messagepreview.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2513 r2523 2 2 =========================== 3 3 4 - Add 1 minute interval in autosave options (#1485854) 4 - Added message menu, removed Print and Source buttons 5 - Added possibility to save message as .eml file (#1485861) 6 - Added 1 minute interval in autosave options (#1485854) 5 7 - Support UTF-7 encoding in messages (#1485832) 6 8 - Better support for malformed character names (#1485758) -
trunk/roundcubemail/program/include/rcube_template.php
r2519 r2523 797 797 $attrib['href'] = rcmail_url($attrib['command']); 798 798 } 799 else if ($attrib['command'] == 'permaurl' && !empty($this->env['permaurl'])) {800 $attrib['href'] = $this->env['permaurl'];801 }802 799 } 803 800 -
trunk/roundcubemail/program/js/app.js
r2493 r2523 151 151 this.enable_command('logout', 'mail', 'addressbook', 'settings', true); 152 152 153 if (this.env.permaurl)154 this.enable_command('permaurl', true);155 156 153 switch (this.task) 157 154 { … … 189 186 if (this.env.action=='show' || this.env.action=='preview') 190 187 { 191 this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 'mark', 'viewsource', 'print', 'load-attachment', 'load-headers', true); 188 this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 189 'open', 'mark', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 190 192 191 if (this.env.next_uid) 193 192 { … … 200 199 this.enable_command('firstmessage', true); 201 200 } 201 202 if (this.env.blockedobjects) 203 { 204 if (this.gui_objects.remoteobjectsmsg) 205 this.gui_objects.remoteobjectsmsg.style.display = 'block'; 206 this.enable_command('load-images', 'always-load', true); 207 } 202 208 } 203 209 … … 210 216 this.enable_command('compose', 'add-contact', false); 211 217 parent.rcmail.show_contentframe(true); 212 }213 214 if ((this.env.action=='show' || this.env.action=='preview') && this.env.blockedobjects)215 {216 if (this.gui_objects.remoteobjectsmsg)217 this.gui_objects.remoteobjectsmsg.style.display = 'block';218 this.enable_command('load-images', 'always-load', true);219 218 } 220 219 … … 561 560 break; 562 561 563 case 'permaurl': 564 if (obj && obj.href && obj.target) 565 return true; 566 else if (this.env.permaurl) 567 parent.location.href = this.env.permaurl; 568 break; 562 case 'open': 563 var uid; 564 if (uid = this.get_single_uid()) 565 { 566 obj.href = '?_task='+this.env.task+'&_action=show&_mbox='+urlencode(this.env.mailbox)+'&_uid='+uid; 567 return true; 568 } 569 break; 569 570 570 571 // misc list commands … … 993 994 if (uid = this.get_single_uid()) 994 995 { 995 ref.sourcewin = window.open(this.env.comm_path+'&_action=viewsource&_uid='+ this.env.uid+'&_mbox='+urlencode(this.env.mailbox));996 ref.sourcewin = window.open(this.env.comm_path+'&_action=viewsource&_uid='+uid+'&_mbox='+urlencode(this.env.mailbox)); 996 997 if (this.sourcewin) 997 998 window.setTimeout(function(){ ref.sourcewin.focus(); }, 20); 998 999 } 1000 break; 1001 1002 case 'download': 1003 var uid; 1004 if (uid = this.get_single_uid()) 1005 this.goto_url('viewsource', '&_uid='+uid+'&_mbox='+urlencode(this.env.mailbox)+'&_save=1'); 999 1006 break; 1000 1007 … … 1358 1365 { 1359 1366 this.enable_command('reply', 'reply-all', 'forward', false); 1360 this.enable_command('show', 'print', selected);1367 this.enable_command('show', 'print', 'open', 'download', 'viewsource', selected); 1361 1368 this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 1362 1369 } 1363 1370 else 1364 1371 { 1365 this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', selected);1372 this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'open', 'download', 'viewsource', selected); 1366 1373 this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 1367 1374 } -
trunk/roundcubemail/program/localization/en_GB/labels.inc
r2513 r2523 135 135 $labels['msgtext'] = 'Entire message'; 136 136 $labels['openinextwin'] = 'Open in new window'; 137 $labels['emlsave'] = 'Save (.eml)'; 137 138 $labels['compose'] = 'Compose a message'; 138 139 $labels['savemessage'] = 'Save this draft'; -
trunk/roundcubemail/program/localization/en_US/labels.inc
r2513 r2523 166 166 167 167 $labels['openinextwin'] = 'Open in new window'; 168 $labels['emlsave'] = 'Save (.eml)'; 168 169 169 170 // message compose -
trunk/roundcubemail/program/localization/pl_PL/labels.inc
r2513 r2523 161 161 $labels['msgtext'] = 'CaÅa wiadomoÅÄ'; 162 162 $labels['openinextwin'] = 'Otwórz w nowym oknie'; 163 $labels['emlsave'] = 'Zapisz (.eml)'; 163 164 $labels['compose'] = 'Utwórz wiadomoÅÄ'; 164 165 $labels['savemessage'] = 'Zapisz kopiÄ roboczÄ -
trunk/roundcubemail/program/steps/mail/show.inc
r2401 r2523 66 66 $OUTPUT->set_env('safemode', $MESSAGE->is_safe); 67 67 $OUTPUT->set_env('sender', $MESSAGE->sender['string']); 68 $OUTPUT->set_env('permaurl', rcmail_url('show', array('_uid' => $MESSAGE->uid, '_mbox' => $mbox_name)));69 68 $OUTPUT->set_env('mailbox', $mbox_name); 70 69 if ($CONFIG['trash_mbox']) -
trunk/roundcubemail/program/steps/mail/viewsource.inc
r2237 r2523 27 27 $charset = $headers->charset ? $headers->charset : $IMAP->default_charset; 28 28 header("Content-Type: text/plain; charset={$charset}"); 29 30 if (!empty($_GET['_save'])) { 31 $filename = ($headers->subject ? $headers->subject : 'roundcube') . '.eml'; 32 $browser = new rcube_browser; 33 34 if ($browser->ie && $browser->ver < 7) 35 $filename = rawurlencode(abbreviate_string($filename, 55)); 36 else if ($browser->ie) 37 $filename = rawurlencode($filename); 38 else 39 $filename = addcslashes($filename, '"'); 40 41 header("Content-Disposition: attachment; filename=\"$filename\""); 42 } 43 29 44 $IMAP->print_raw_body($uid); 30 45 } -
trunk/roundcubemail/skins/default/mail.css
r2446 r2523 47 47 48 48 #markmessagemenu, 49 #searchmenu 49 #searchmenu, 50 #messagemenu 50 51 { 51 52 position: absolute; … … 99 100 { 100 101 vertical-align: middle; 102 } 103 104 ul.toolbarmenu li hr 105 { 106 width: 90%; 107 margin: 2px 10px; 101 108 } 102 109 … … 906 913 } 907 914 908 #messageviewlink909 {910 position: absolute;911 top: 8px;912 right: 10px;913 width: 15px;914 height: 15px;915 border: 0;916 }917 918 915 /** message compose styles */ 919 916 -
trunk/roundcubemail/skins/default/templates/mail.html
r2446 r2523 28 28 <roundcube:include file="/includes/taskbar.html" /> 29 29 <roundcube:include file="/includes/header.html" /> 30 <roundcube:include file="/includes/messagemenu.html" /> 30 31 31 32 <div id="mainscreen"> … … 114 115 <roundcube:button command="checkmail" imageSel="/images/buttons/inbox_sel.png" imageAct="/images/buttons/inbox_act.png" imagePas="/images/buttons/inbox_pas.png" width="32" height="32" title="checkmail" /> 115 116 <roundcube:button command="compose" imageSel="/images/buttons/compose_sel.png" imageAct="/images/buttons/compose_act.png" imagePas="/images/buttons/compose_pas.png" width="32" height="32" title="writenewmessage" /> 116 <roundcube:button name="markreadbutton" id="markreadbutton" image="/images/buttons/markread_act.png" width="32" height="32" title="markmessages" onclick="rcmail_ui.show_markmenu();return false" />117 117 <roundcube:button command="reply" imageSel="/images/buttons/reply_sel.png" imageAct="/images/buttons/reply_act.png" imagePas="/images/buttons/reply_pas.png" width="32" height="32" title="replytomessage" /> 118 118 <roundcube:button command="reply-all" imageSel="/images/buttons/replyall_sel.png" imageAct="/images/buttons/replyall_act.png" imagePas="/images/buttons/replyall_pas.png" width="32" height="32" title="replytoallmessage" /> 119 119 <roundcube:button command="forward" imageSel="/images/buttons/forward_sel.png" imageAct="/images/buttons/forward_act.png" imagePas="/images/buttons/forward_pas.png" width="32" height="32" title="forwardmessage" /> 120 120 <roundcube:button command="delete" imageSel="/images/buttons/delete_sel.png" imageAct="/images/buttons/delete_act.png" imagePas="/images/buttons/delete_pas.png" width="32" height="32" title="deletemessage" /> 121 <roundcube:button command="print" imageSel="/images/buttons/print_sel.png" imageAct="/images/buttons/print_act.png" imagePas="/images/buttons/print_pas.png" width="32" height="32" title="printmessage" /> 121 <roundcube:button name="markreadbutton" id="markreadbutton" image="/images/buttons/markread_act.png" width="32" height="32" title="markmessages" onclick="rcmail_ui.show_markmenu();return false" /> 122 <roundcube:button name="messagemenulink" id="messagemenulink" image="/images/icons/extwin.png" width="32" height="32" title="messagemenu" onclick="rcmail_ui.show_messagemenu();return false" /> 122 123 <roundcube:container name="toolbar" id="messagetoolbar" /> 123 124 -
trunk/roundcubemail/skins/default/templates/message.html
r2401 r2523 6 6 <link rel="stylesheet" type="text/css" href="/mail.css" /> 7 7 <script type="text/javascript" src="/splitter.js"></script> 8 <script type="text/javascript" src="/functions.js"></script> 8 9 <style type="text/css"> 9 10 #mailboxlist-container { width: <roundcube:exp expression="!empty(cookie:mailviewsplitterv) ? cookie:mailviewsplitterv-5 : 160" />px; } … … 14 15 </style> 15 16 </head> 16 <body >17 <body onload="rcube_init_mail_ui()"> 17 18 18 19 <roundcube:include file="/includes/taskbar.html" /> 19 20 <roundcube:include file="/includes/header.html" /> 21 <roundcube:include file="/includes/messagemenu.html" /> 20 22 21 23 <div id="messagecountbar"> … … 34 36 <roundcube:button command="forward" imageSel="/images/buttons/forward_sel.png" imageAct="/images/buttons/forward_act.png" imagePas="/images/buttons/forward_pas.png" width="32" height="32" title="forwardmessage" /> 35 37 <roundcube:button command="delete" imageSel="/images/buttons/delete_sel.png" imageAct="/images/buttons/delete_act.png" imagePas="/images/buttons/delete_pas.png" width="32" height="32" title="deletemessage" /> 36 <roundcube:button command="print" imageSel="/images/buttons/print_sel.png" imageAct="/images/buttons/print_act.png" imagePas="/images/buttons/print_pas.png" width="32" height="32" title="printmessage" /> 37 <roundcube:button command="viewsource" imageSel="/images/buttons/source_sel.png" imageAct="/images/buttons/source_act.png" imagePas="/images/buttons/source_pas.png" width="32" height="32" title="viewsource" /> 38 <roundcube:button name="messagemenulink" image="/images/icons/extwin.png" width="32" height="32" title="messagemenu" onclick="rcmail_ui.show_messagemenu();return false" id="messagemenulink" /> 38 39 <roundcube:object name="mailboxlist" type="select" noSelection="moveto" maxlength="25" onchange="rcmail.command('moveto', this.options[this.selectedIndex].value)" class="mboxlist" /> 39 40 <roundcube:container name="toolbar" id="messagetoolbar" /> -
trunk/roundcubemail/skins/default/templates/messagepreview.html
r1767 r2523 9 9 10 10 <div class="messageheaderbox"> 11 <roundcube:button command=" permaurl" image="/images/icons/extwin.png" width="15" height="15" title="openinextwin" id="messageviewlink" target="_blank" />11 <roundcube:button command="messagemenu" image="/images/icons/extwin.png" width="15" height="15" title="messageactions" id="messagemenulink" /> 12 12 <roundcube:object name="messageHeaders" class="headers-table" cellspacing="0" cellpadding="2" addicon="/images/icons/plus.gif" summary="Message headers" /> 13 13 <roundcube:object name="messageAttachments" id="attachment-list" />
Note: See TracChangeset
for help on using the changeset viewer.
