Configurable limit of address group members
| | |
| | | // Maximum number of recipients per message. Default: 0 (no limit) |
| | | $rcmail_config['max_recipients'] = 0; |
| | | |
| | | // Maximum allowednumber of members of an address group. Default: 0 (no limit) |
| | | // If 'max_recipients' is set this value should be less or equal |
| | | $rcmail_config['max_group_members'] = 0; |
| | | |
| | | // add this user-agent to message headers when sending |
| | | $rcmail_config['useragent'] = 'RoundCube Webmail/'.RCMAIL_VERSION; |
| | | |
| | |
| | | $messages['smtprecipientserror'] = 'SMTP Fehler: Die Empfängerliste konnte nicht verarbeitet werden'; |
| | | $messages['smtperror'] = 'SMTP Fehler: $msg'; |
| | | $messages['emailformaterror'] = 'Ungültige E-Mail-Adresse: $email'; |
| | | $messages['toomanyrecipients'] = 'Zuviele Empfänger angegeben. Reduzieren Sie die Empfängeradressen auf $max.'; |
| | | $messages['maxgroupmembersreached'] = 'Die Anzahl Adressen in dieser Gruppe überschreitet das Maximum von $max'; |
| | | |
| | | ?> |
| | |
| | | $messages['smtptoerror'] = 'SMTP Error ($code): Failed to add recipient "$to"'; |
| | | $messages['smtprecipientserror'] = 'SMTP Error: Unable to parse recipients list'; |
| | | $messages['smtperror'] = 'SMTP Error: $msg'; |
| | | $messages['emailformaterror'] = 'Incorrect e-mail address: $email'; |
| | | $messages['emailformaterror'] = 'Invalid e-mail address: $email'; |
| | | $messages['toomanyrecipients'] = 'Too many recipients. Reduce the number of recipients to $max.'; |
| | | $messages['maxgroupmembersreached'] = 'The number of group members exceeds the maximum of $max'; |
| | | |
| | | ?> |
| | |
| | | if (($gid = get_input_value('_gid', RCUBE_INPUT_POST)) && ($ids = get_input_value('_cid', RCUBE_INPUT_POST))) { |
| | | $plugin = $RCMAIL->plugins->exec_hook('group_addmembers', array('group_id' => $gid, 'ids' => $ids, 'source' => $source)); |
| | | |
| | | if (!$plugin['abort'] && $CONTACTS->add_to_group($gid, $plugin['ids'])) |
| | | $CONTACTS->set_group($gid); |
| | | $num2add = count(explode(',', $plugin['ids'])); |
| | | |
| | | if (!$plugin['abort'] && ($maxnum = $RCMAIL->config->get('max_group_members', 0)) && ($CONTACTS->count()->count + $num2add > $maxnum)) |
| | | $OUTPUT->show_message('maxgroupmembersreached', 'warning', array('max' => $maxnum)); |
| | | else if (!$plugin['abort'] && $CONTACTS->add_to_group($gid, $plugin['ids'])) |
| | | $OUTPUT->show_message('contactaddedtogroup'); |
| | | else if ($plugin['message']) |
| | | $OUTPUT->show_message($plugin['message'], 'warning'); |