Changeset 2639 in subversion


Ignore:
Timestamp:
Jun 11, 2009 2:07:35 PM (4 years ago)
Author:
alec
Message:
Location:
trunk/roundcubemail
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2637 r2639  
    22=========================== 
    33 
     4- Added message Edit feature (#1483891, #1484440) 
    45- Fix message Etag generation for counter issues (#1485623) 
    56- Fix messages searching on MailEnable IMAP (#1485762) 
  • trunk/roundcubemail/program/js/app.js

    r2638 r2639  
    190190          { 
    191191          this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 
    192             'open', 'mark', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 
     192            'open', 'mark', 'edit', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 
    193193 
    194194          if (this.env.next_uid) 
     
    692692        else if (this.task=='settings' && props) 
    693693          this.load_identity(props, 'edit-identity'); 
     694        else if (this.task=='mail' && (cid = this.get_single_uid())) { 
     695          var url = (this.env.mailbox == this.env.drafts_mailbox) ? '_draft_uid=' : '_uid='; 
     696          this.goto_url('compose', url+cid+'&_mbox='+urlencode(this.env.mailbox), true); 
     697        } 
    694698        break; 
    695699 
     
    13941398      { 
    13951399      this.enable_command('reply', 'reply-all', 'forward', false); 
    1396       this.enable_command('show', 'print', 'open', 'download', 'viewsource', selected); 
     1400      this.enable_command('show', 'print', 'open', 'edit', 'download', 'viewsource', selected); 
    13971401      this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 
    13981402      } 
    13991403    else 
    14001404      { 
    1401       this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'open', 'download', 'viewsource', selected); 
     1405      this.enable_command('show', 'reply', 'reply-all', 'forward', 'print', 'edit', 'open', 'download', 'viewsource', selected); 
    14021406      this.enable_command('delete', 'moveto', 'mark', (list.selection.length > 0 ? true : false)); 
    14031407      } 
     
    18041808 
    18051809    // Hide message command buttons until a message is selected 
    1806     this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'viewsource', 'download', false); 
     1810    this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'edit', 'viewsource', 'download', false); 
    18071811 
    18081812    this._with_selected_messages('moveto', lock, add_url); 
     
    39413945        if (this.env.action == 'show') { 
    39423946          // re-enable commands on move/delete error 
    3943           this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'viewsource', 'download', true); 
     3947          this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'edit', 'viewsource', 'download', true); 
    39443948        } else if (this.message_list) 
    39453949          this.message_list.init(); 
     
    39543958          // disable commands useless when mailbox is empty 
    39553959          this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete',  
    3956             'mark', 'viewsource', 'open', 'download', 'print', 'load-attachment',  
     3960            'mark', 'viewsource', 'open', 'edit', 'download', 'print', 'load-attachment',  
    39573961            'purge', 'expunge', 'select-all', 'select-none', 'sort', false); 
    39583962        } 
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r2627 r2639  
    2424define('RCUBE_COMPOSE_FORWARD', 0x0107); 
    2525define('RCUBE_COMPOSE_DRAFT', 0x0108); 
     26define('RCUBE_COMPOSE_EDIT', 0x0109); 
    2627 
    2728$MESSAGE_FORM = NULL; 
     
    7576else if ($msg_uid = $_SESSION['compose']['param']['_forward_uid']) 
    7677  $compose_mode = RCUBE_COMPOSE_FORWARD; 
     78else if ($msg_uid = $_SESSION['compose']['param']['_uid']) 
     79  $compose_mode = RCUBE_COMPOSE_EDIT; 
    7780else if ($msg_uid = $_SESSION['compose']['param']['_draft_uid']) { 
    7881  $RCMAIL->imap->set_mailbox($CONFIG['drafts_mbox']); 
     
    169172  else if ($fname && !$fvalue && !empty($_SESSION['compose']['param'][$fname])) 
    170173    $fvalue = $_SESSION['compose']['param'][$fname]; 
    171  
    172174  else if ($header && $compose_mode == RCUBE_COMPOSE_REPLY) 
    173175  { 
     
    209211    } 
    210212  } 
    211   else if ($header && $compose_mode == RCUBE_COMPOSE_DRAFT) 
     213  else if ($header && in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT))) 
    212214  { 
    213215    // get drafted headers 
     
    386388      $body = rcmail_create_forward_body($body, $isHtml); 
    387389    // load draft message body 
    388     else if ($compose_mode == RCUBE_COMPOSE_DRAFT) 
     390    else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) 
    389391      $body = rcmail_create_draft_body($body, $isHtml); 
    390392  } 
     
    690692  } 
    691693  // creeate a draft-subject 
    692   else if ($compose_mode == RCUBE_COMPOSE_DRAFT) { 
     694  else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) { 
    693695    $subject = $MESSAGE->subject; 
    694696  } 
     
    829831 
    830832  $out = $form_start ? "$form_start\n" : ''; 
    831   $out .= $checkbox->show( 
    832     $compose_mode == RCUBE_COMPOSE_DRAFT && $MESSAGE->headers->mdn_to ? 1 : 0); 
     833  $out .= $checkbox->show(in_array($compose_mode, array(RCUBE_COMPOSE_DRAFT, RCUBE_COMPOSE_EDIT)) 
     834        && $MESSAGE->headers->mdn_to ? 1 : 0); 
    833835  $out .= $form_end ? "\n$form_end" : ''; 
    834836 
  • trunk/roundcubemail/skins/default/includes/messagemenu.html

    r2574 r2639  
    33    <li><roundcube:button class="printlink" command="print" label="printmessage" classAct="printlink active" /></li> 
    44    <li><roundcube:button class="downloadlink" command="download" label="emlsave" classAct="downloadlink active" /></li> 
     5    <li><roundcube:button class="editlink" command="edit" label="edit" classAct="editlink active" /></li> 
    56    <li class="separator_below"><roundcube:button class="sourcelink" command="viewsource" label="viewsource" classAct="sourcelink active" /></li> 
    67    <li><roundcube:button class="openlink" command="open" label="openinextwin" target="_blank" classAct="openlink active" /></li> 
  • trunk/roundcubemail/skins/default/mail.css

    r2633 r2639  
    137137{ 
    138138  background: url('images/messageactions.png') no-repeat 1px 0; 
     139  background-position: 0px 20px; 
    139140} 
    140141 
Note: See TracChangeset for help on using the changeset viewer.