Changeset d1851ba in github


Ignore:
Timestamp:
Apr 6, 2010 2:40:45 AM (3 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ace0624
Parents:
3616845
Message:

Configurable limit of address group members

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • config/main.inc.php.dist

    r751b22b rd1851ba  
    183183// Maximum number of recipients per message. Default: 0 (no limit) 
    184184$rcmail_config['max_recipients'] = 0;  
     185 
     186// Maximum allowednumber of members of an address group. Default: 0 (no limit) 
     187// If 'max_recipients' is set this value should be less or equal 
     188$rcmail_config['max_group_members'] = 0;  
    185189 
    186190// add this user-agent to message headers when sending 
  • program/localization/de_CH/messages.inc

    ra61bbb2 rd1851ba  
    110110$messages['smtperror'] = 'SMTP Fehler: $msg'; 
    111111$messages['emailformaterror'] = 'UngÃŒltige E-Mail-Adresse: $email'; 
     112$messages['toomanyrecipients'] = 'Zuviele EmpfÀnger angegeben. Reduzieren Sie die EmpfÀngeradressen auf $max.'; 
     113$messages['maxgroupmembersreached'] = 'Die Anzahl Adressen in dieser Gruppe ÃŒberschreitet das Maximum von $max'; 
    112114 
    113115?> 
  • program/localization/en_US/messages.inc

    r751b22b rd1851ba  
    111111$messages['smtprecipientserror'] = 'SMTP Error: Unable to parse recipients list'; 
    112112$messages['smtperror'] = 'SMTP Error: $msg'; 
    113 $messages['emailformaterror'] = 'Incorrect e-mail address: $email'; 
     113$messages['emailformaterror'] = 'Invalid e-mail address: $email'; 
    114114$messages['toomanyrecipients'] = 'Too many recipients. Reduce the number of recipients to $max.'; 
     115$messages['maxgroupmembersreached'] = 'The number of group members exceeds the maximum of $max'; 
    115116 
    116117?> 
  • program/steps/addressbook/groups.inc

    r65c8764b rd1851ba  
    3232    $plugin = $RCMAIL->plugins->exec_hook('group_addmembers', array('group_id' => $gid, 'ids' => $ids, 'source' => $source)); 
    3333     
    34     if (!$plugin['abort'] && $CONTACTS->add_to_group($gid, $plugin['ids'])) 
     34    $CONTACTS->set_group($gid); 
     35    $num2add = count(explode(',', $plugin['ids'])); 
     36     
     37    if (!$plugin['abort'] && ($maxnum = $RCMAIL->config->get('max_group_members', 0)) && ($CONTACTS->count()->count + $num2add > $maxnum)) 
     38      $OUTPUT->show_message('maxgroupmembersreached', 'warning', array('max' => $maxnum)); 
     39    else if (!$plugin['abort'] && $CONTACTS->add_to_group($gid, $plugin['ids'])) 
    3540      $OUTPUT->show_message('contactaddedtogroup'); 
    3641    else if ($plugin['message']) 
Note: See TracChangeset for help on using the changeset viewer.