Changeset 4390 in subversion
- Timestamp:
- Jan 4, 2011 12:21:34 PM (2 years ago)
- Location:
- trunk/plugins/archive
- Files:
-
- 2 edited
-
archive.js (modified) (1 diff)
-
archive.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/archive/archive.js
r4086 r4390 9 9 return; 10 10 11 var uids = rcmail.env.uid ? rcmail.env.uid : rcmail.message_list.get_selection().join(','), 12 lock = rcmail.set_busy(true, 'loading'); 13 14 rcmail.http_post('plugin.archive', '_uid='+uids+'&_mbox='+urlencode(rcmail.env.mailbox), lock); 11 if (rcmail.env.mailbox != rcmail.env.archive_folder) 12 rcmail.command('moveto', rcmail.env.archive_folder); 15 13 } 16 14 -
trunk/plugins/archive/archive.php
r3841 r4390 17 17 { 18 18 $rcmail = rcmail::get_instance(); 19 20 $this->register_action('plugin.archive', array($this, 'request_action'));21 19 22 20 // There is no "Archived flags" … … 81 79 if ($item['id'] == $folder) { 82 80 $list[$idx]['name'] = $new_name; 83 return true;81 return true; 84 82 } else if (!empty($item['folders'])) 85 83 if ($this->_mod_folder_name($list[$idx]['folders'], $folder, $new_name)) 86 return true;84 return true; 87 85 } 88 86 return false; 89 }90 91 function request_action()92 {93 $this->add_texts('localization');94 95 $uids = get_input_value('_uid', RCUBE_INPUT_POST);96 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST);97 98 $rcmail = rcmail::get_instance();99 100 // There is no "Archive flags", but I left this line in case it may be useful101 // $rcmail->imap->set_flag($uids, 'ARCHIVE');102 103 if (($archive_mbox = $rcmail->config->get('archive_mbox')) && $mbox != $archive_mbox) {104 $rcmail->output->command('move_messages', $archive_mbox);105 $rcmail->output->command('display_message', $this->gettext('archived'), 'confirmation');106 }107 108 $rcmail->output->send();109 87 } 110 88
Note: See TracChangeset
for help on using the changeset viewer.
