Changeset 575 in subversion
- Timestamp:
- May 18, 2007 8:35:28 AM (6 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 3 edited
-
js/app.js (modified) (2 diffs)
-
steps/mail/func.inc (modified) (1 diff)
-
steps/mail/list.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r574 r575 1245 1245 { 1246 1246 page = 1; 1247 add_url += '&_refresh=1';1248 1247 this.env.current_page = page; 1249 1248 if (this.message_list) … … 1251 1250 this.show_contentframe(false); 1252 1251 } 1252 1253 if (mbox != this.env.mailbox || (mbox == this.env.mailbox && !page && !sort)) 1254 add_url += '&_refresh=1'; 1253 1255 1254 1256 this.select_folder(mbox, this.env.mailbox); -
trunk/roundcubemail/program/steps/mail/func.inc
r574 r575 1208 1208 1209 1209 // add comments arround html and other tags 1210 $out = preg_replace(array('/(<\/?html[^>]*>)/i', 1211 '/(<\/?head[^>]*>)/i', 1212 '/(<title[^>]*>.*<\/title>)/Ui', 1213 '/(<\/?meta[^>]*>)/i'), 1214 '<!--\\1-->', 1215 $body); 1216 1217 $out = preg_replace(array('/(<body[^>]*>)/i', 1218 '/(<\/body>)/i'), 1219 array('<div class="rcmBody">', 1210 $out = preg_replace(array( 1211 '/(<!DOCTYPE.+)/i', 1212 '/(<\/?html[^>]*>)/i', 1213 '/(<\/?head[^>]*>)/i', 1214 '/(<title[^>]*>.*<\/title>)/Ui', 1215 '/(<\/?meta[^>]*>)/i'), 1216 '<!--\\1-->', 1217 $body); 1218 1219 $out = preg_replace(array('/<body([^>]*)>/i', 1220 '/<\/body>/i'), 1221 array('<div class="rcmBody"\\1>', 1220 1222 '</div>'), 1221 1223 $out); -
trunk/roundcubemail/program/steps/mail/list.inc
r573 r575 38 38 } 39 39 40 $mbox_name = $IMAP->get_mailbox_name(); 40 41 41 42 // fetch message headers 42 if ($count = $IMAP->messagecount( ))43 if ($count = $IMAP->messagecount($mbox_name, 'ALL', !empty($_REQUEST['_refresh']))) 43 44 $a_headers = $IMAP->list_headers($mbox_name, NULL, $sort_col, $sort_order); 44 45 45 $unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh']) ? TRUE : FALSE);46 $unseen = $IMAP->messagecount($mbox_name, 'UNSEEN', !empty($_REQUEST['_refresh'])); 46 47 47 48 // update message count display … … 52 53 53 54 // update mailboxlist 54 $OUTPUT->command('set_unread_count', $ IMAP->get_mailbox_name(), $unseen);55 $OUTPUT->command('set_unread_count', $mbox_name, $unseen); 55 56 56 57
Note: See TracChangeset
for help on using the changeset viewer.
