| | |
| | | |
| | | // Handle virtual (non-existing) folders |
| | | if (!$result && $IMAP->get_error_code() == -1 && |
| | | strpos($IMAP->get_error_str(), '[TRYCREATE]') |
| | | $IMAP->get_response_code() == rcube_imap::TRYCREATE |
| | | ) { |
| | | $result = $IMAP->create_mailbox($mbox, true); |
| | | if ($result) { |
| | |
| | | if ($result) |
| | | $OUTPUT->show_message('foldersubscribed', 'confirmation'); |
| | | else |
| | | $OUTPUT->show_message('errorsaving', 'error'); |
| | | rcmail_display_server_error('errorsaving'); |
| | | } |
| | | } |
| | | |
| | |
| | | if ($result) |
| | | $OUTPUT->show_message('folderunsubscribed', 'confirmation'); |
| | | else |
| | | $OUTPUT->show_message('errorsaving', 'error'); |
| | | rcmail_display_server_error('errorsaving'); |
| | | } |
| | | } |
| | | |
| | |
| | | $OUTPUT->command('set_quota', rcmail_quota_content()); |
| | | } |
| | | else if (!$deleted) { |
| | | $OUTPUT->show_message('errorsaving', 'error'); |
| | | rcmail_display_server_error('errorsaving'); |
| | | } |
| | | } |
| | | |
| | |
| | | rcube_charset_convert($name, 'UTF7-IMAP'), $display_rename, $before); |
| | | } |
| | | else if (!$rename) { |
| | | $OUTPUT->show_message('errorsaving', 'error'); |
| | | rcmail_display_server_error('errorsaving'); |
| | | } |
| | | } |
| | | |
| | |
| | | $OUTPUT->command('show_folder', $mbox_utf8, null, true); |
| | | } |
| | | else { |
| | | $OUTPUT->show_message('errorsaving', 'error'); |
| | | rcmail_display_server_error('errorsaving'); |
| | | } |
| | | } |
| | | |
| | |
| | | if ($size !== false) { |
| | | $OUTPUT->command('folder_size_update', show_bytes($size)); |
| | | } |
| | | else { |
| | | rcmail_display_server_error(); |
| | | } |
| | | } |
| | | |
| | | if ($OUTPUT->ajax_call) |