4 +-----------------------------------------------------------------------+
5 | program/steps/mail/copy.inc |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2005-2010, Roundcube Dev. - Switzerland |
9 | Licensed under the GNU GPL |
12 | Copy the submitted messages to a specific mailbox |
14 +-----------------------------------------------------------------------+
15 | Author: Aleksander Machniak <alec@alec.pl> |
16 +-----------------------------------------------------------------------+
18 $Id: copy.inc 4321 2010-12-08 12:52:04Z alec $
22 // only process ajax requests
23 if (!$OUTPUT->ajax_call)
27 if (!empty($_POST['_uid']) && !empty($_POST['_target_mbox'])) {
28 $uids = get_input_value('_uid', RCUBE_INPUT_POST);
29 $target = get_input_value('_target_mbox', RCUBE_INPUT_POST, true);
30 $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true);
32 $copied = $IMAP->copy_message($uids, $target, $mbox);
36 rcmail_display_server_error('errorcopying');
41 $OUTPUT->show_message('messagecopied', 'confirmation');
44 rcmail_send_unread_count($target, true);
46 $OUTPUT->command('set_quota', rcmail_quota_content());
48 // unknown action or missing query param