6.0.0-beta1
8/14/25

[#1201] maximum number of recipients
Summary maximum number of recipients
Queue IMP
Queue Version 3.2.3
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester adrian (at) designeffects (dot) com (dot) au
Created 01/20/2005 (7511 days ago)
Due
Updated 01/20/2005 (7511 days ago)
Assigned
Resolved 01/20/2005 (7511 days ago)
Milestone
Patch No

History
01/20/2005 01:29:04 PM Jan Schneider Comment #2
State ⇒ Rejected
Reply to this comment
Sorry, but we don't add new features to IMP 3.x. A patch including 
configuration against CVS HEAD would be considered though.
01/20/2005 01:21:52 PM adrian (at) designeffects (dot) com (dot) au Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ maximum number of recipients
Queue ⇒ IMP
Reply to this comment
i had a case were i wanted to restrict the maximum number of 
recipients so as to stop spammers abusing my webmail accounts. I 
wanted to restrict the total number of TO, CC and BCC recipients as 
spammers were adding thousands to teh BCC field and hitting send.



my solution may not be refined, but it works.



in compose.php in the SEND_MESSAGE case right after $recips is defined 
and addresses assigned I added the following code



         if (substr_count($recips,",") + substr_count($recips,";") + 
substr_count(ereg_replace("  "," ",$recips)," ") > 21) {

          $get_sig = false;

          Horde::raiseMessage(_("For security reasons you can not send 
an email to more than 22 persons at once. If you need to sent to more 
than 22 persons, please create a second email."), HORDE_ERROR);

          break;

      }



this may be useful, and the variable 22 could be added to conf.



Thanks.

Saved Queries