Changeset 5285146 in github


Ignore:
Timestamp:
Oct 2, 2008 1:48:29 PM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
0e109cf
Parents:
2c832e4
Message:
  • Fix race conditions when changing mailbox (set some env variables only when needed - no action or action==list)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r4683bf1 r5285146  
    66- Minimize "inline" javascript scripts use (#1485433) 
    77- Fix css class setting for folders with names matching defined classes names (#1485355) 
     8- Fix race conditions when changing mailbox 
    89 
    9102008/10/01 (alec) 
  • program/steps/mail/func.inc

    r95fcc33 r5285146  
    5454  } 
    5555 
    56  
    57 // set current mailbox in client environment 
    58 $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); 
    59 $OUTPUT->set_env('quota', $IMAP->get_capability('quota')); 
    60 $OUTPUT->set_env('delimiter', $IMAP->get_hierarchy_delimiter()); 
    61  
    62 if ($CONFIG['trash_mbox']) 
    63   $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); 
    64 if ($CONFIG['drafts_mbox']) 
    65   $OUTPUT->set_env('drafts_mailbox', $CONFIG['drafts_mbox']); 
    66 if ($CONFIG['junk_mbox']) 
    67   $OUTPUT->set_env('junk_mailbox', $CONFIG['junk_mbox']); 
    68  
    69 if (!$OUTPUT->ajax_call) 
    70   rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
    71  
    72 // set page title 
     56// set main env variables, labels and page title 
    7357if (empty($RCMAIL->action) || $RCMAIL->action == 'list') 
     58  { 
     59  // set current mailbox in client environment 
     60  $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name()); 
     61  $OUTPUT->set_env('quota', $IMAP->get_capability('quota')); 
     62  $OUTPUT->set_env('delimiter', $IMAP->get_hierarchy_delimiter()); 
     63 
     64  if ($CONFIG['trash_mbox']) 
     65    $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); 
     66  if ($CONFIG['drafts_mbox']) 
     67    $OUTPUT->set_env('drafts_mailbox', $CONFIG['drafts_mbox']); 
     68  if ($CONFIG['junk_mbox']) 
     69    $OUTPUT->set_env('junk_mailbox', $CONFIG['junk_mbox']); 
     70 
     71  if (!$OUTPUT->ajax_call) 
     72    rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 
     73 
    7474  $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); 
     75  } 
    7576 
    7677 
Note: See TracChangeset for help on using the changeset viewer.