Changeset 710b1bd in github
- Timestamp:
- Nov 10, 2011 9:30:51 AM (19 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 8c2b883
- Parents:
- bed577e
- Files:
-
- 7 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
program/localization/en_US/labels.inc (modified) (1 diff)
-
program/localization/pl_PL/labels.inc (modified) (1 diff)
-
program/steps/mail/autocomplete.inc (modified) (3 diffs)
-
program/steps/settings/func.inc (modified) (1 diff)
-
program/steps/settings/save_prefs.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r46cdbf0 r710b1bd 2 2 =========================== 3 3 4 - Add option to skip alternative email addresses in autocompletion 4 5 - Fix inconsistent behaviour of Compose button in Drafts folder, add Edit button for drafts 5 6 - Fix problem with parsing HTML message body with non-unicode characters (#1487813) -
config/main.inc.php.dist
rf21a04c r710b1bd 782 782 $rcmail_config['spellcheck_before_send'] = false; 783 783 784 // Skip alternative email addresses in autocompletion (show one address per contact) 785 $rcmail_config['autocomplete_single'] = false; 786 784 787 // end of config file -
program/localization/en_US/labels.inc
r46cdbf0 r710b1bd 432 432 $labels['replysamefolder'] = 'Place replies in the folder of the message being replied to'; 433 433 $labels['defaultaddressbook'] = 'Add new contacts to the selected addressbook'; 434 $labels['autocompletesingle'] = 'Skip alternative email addresses in autocompletion'; 434 435 $labels['spellcheckbeforesend'] = 'Check spelling before sending a message'; 435 436 $labels['spellcheckoptions'] = 'Spellcheck Options'; -
program/localization/pl_PL/labels.inc
r46cdbf0 r710b1bd 487 487 $labels['timeformat'] = 'Format czasu'; 488 488 $labels['isdraft'] = 'To jest kopia robocza wiadomoÅci.'; 489 $labels['autocompletesingle'] = 'Nie pokazuj alternatywnych adresów przy autouzupeÅnianiu'; 489 490 490 491 ?> -
program/steps/mail/autocomplete.inc
r55a8a8c r710b1bd 41 41 42 42 43 $MAXNUM = (int) $RCMAIL->config->get('autocomplete_max', 15);43 $MAXNUM = (int) $RCMAIL->config->get('autocomplete_max', 15); 44 44 $mode = (int) $RCMAIL->config->get('addressbook_search_mode'); 45 $single = (bool) $RCMAIL->config->get('autocomplete_single'); 45 46 $search = get_input_value('_search', RCUBE_INPUT_GPC, true); 46 47 $source = get_input_value('_source', RCUBE_INPUT_GPC); … … 67 68 $email_cnt = count($email_arr); 68 69 foreach ($email_arr as $email) { 69 if (empty($email)) 70 if (empty($email)) { 70 71 continue; 72 } 73 71 74 $contact = format_email_recipient($email, $sql_arr['name']); 75 72 76 // skip entries that don't match 73 77 if ($email_cnt > 1 && strpos(mb_strtolower($contact), $search_lc) === false) { 74 78 continue; 75 79 } 80 76 81 // skip duplicates 77 82 if (!in_array($contact, $contacts)) { … … 79 84 if (count($contacts) >= $MAXNUM) 80 85 break 2; 86 } 87 88 // skip redundant entries (show only first email address) 89 if ($single) { 90 break; 81 91 } 82 92 } -
program/steps/settings/func.inc
r0324621 r710b1bd 660 660 } 661 661 662 if (!isset($no_override['autocomplete_single'])) { 663 $field_id = 'rcmfd_autocomplete_single'; 664 $checkbox = new html_checkbox(array('name' => '_autocomplete_single', 'id' => $field_id, 'value' => 1)); 665 666 $blocks['main']['options']['autocomplete_single'] = array( 667 'title' => html::label($field_id, Q(rcube_label('autocompletesingle'))), 668 'content' => $checkbox->show($config['autocomplete_single']?1:0), 669 ); 670 } 671 662 672 break; 663 673 -
program/steps/settings/save_prefs.inc
r1cc9e21 r710b1bd 94 94 $a_user_prefs = array( 95 95 'default_addressbook' => get_input_value('_default_addressbook', RCUBE_INPUT_POST, true), 96 'autocomplete_single' => isset($_POST['_autocomplete_single']) ? TRUE : FALSE, 96 97 ); 97 98
Note: See TracChangeset
for help on using the changeset viewer.
