| | |
| | | |
| | | // set configuration |
| | | $RCMAIL->set_env_config(array('delete_junk', 'flag_for_deletion', 'read_when_deleted', |
| | | 'skip_deleted', 'display_next', 'message_extwin', 'compose_extwin', 'forward_attachment')); |
| | | 'skip_deleted', 'display_next', 'message_extwin', 'forward_attachment')); |
| | | |
| | | if (!$OUTPUT->ajax_call) { |
| | | $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', |
| | | 'movingmessage', 'copyingmessage', 'deletingmessage', 'markingmessage', |
| | | 'copy', 'move', 'quota', 'replyall', 'replylist', 'stillsearching', |
| | | 'flagged', 'unflagged', 'unread', 'deleted', 'replied', 'forwarded', |
| | | 'priority', 'withattachment'); |
| | | 'priority', 'withattachment', 'fileuploaderror'); |
| | | } |
| | | |
| | | $pagetitle = $RCMAIL->localize_foldername($mbox_name, true); |
| | |
| | | $head_replace = true; |
| | | } |
| | | |
| | | // add 'folder' column to list on multi-folder searches |
| | | $search_set = $RCMAIL->storage->get_search_set(); |
| | | $search_set = $RCMAIL->storage->get_search_set(); |
| | | $multifolder = $search_set && $search_set[1]->multi; |
| | | |
| | | // add/remove 'folder' column to the list on multi-folder searches |
| | | if ($multifolder && !in_array('folder', $a_show_cols)) { |
| | | $a_show_cols[] = 'folder'; |
| | | $head_replace = true; |
| | | } |
| | | else if (!$multifolder && ($found = array_search('folder', $a_show_cols)) !== false) { |
| | | unset($a_show_cols[$found]); |
| | | $head_replace = true; |
| | | } |
| | | |
| | |
| | | |
| | | // Make sure there are no duplicated columns (#1486999) |
| | | $a_show_cols = array_unique($a_show_cols); |
| | | $_SESSION['list_attrib']['columns'] = $a_show_cols; |
| | | |
| | | // Plugins may set header's list_cols/list_flags and other rcube_message_header variables |
| | | // and list columns |
| | |
| | | )); |
| | | |
| | | $content = html::tag('input', array('type' => 'hidden', 'name' => '_unlock', 'value' => '')) |
| | | . html::tag('input', array('type' => 'hidden', 'name' => '_framed', 'value' => '1')) |
| | | . html::div(null, $fileinput->show()) |
| | | . html::div('hint', $RCMAIL->gettext(array('name' => 'maxuploadsize', 'vars' => array('size' => $max_filesize)))); |
| | | |
| | |
| | | foreach ($abook->list_groups($search, $search_mode) as $group) { |
| | | $abook->reset(); |
| | | $abook->set_group($group['ID']); |
| | | $group_prop = $abook->get_group($group['ID']); |
| | | |
| | | // group (distribution list) with email address(es) |
| | | if ($group_prop['email']) { |
| | | foreach ((array)$group_prop['email'] as $email) { |
| | | if ($group['email']) { |
| | | foreach ((array)$group['email'] as $email) { |
| | | $row_id = 'G'.$group['ID']; |
| | | $jsresult[$row_id] = format_email_recipient($email, $group['name']); |
| | | $OUTPUT->command('add_contact_row', $row_id, array( |
| | |
| | | } |
| | | } |
| | | // make virtual groups clickable to list their members |
| | | else if ($group_prop['virtual']) { |
| | | else if ($group['virtual']) { |
| | | $row_id = 'G'.$group['ID']; |
| | | $OUTPUT->command('add_contact_row', $row_id, array( |
| | | 'contactgroup' => html::a(array( |