[Tickets #1201] NEW: maximum number of recipients

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Jan 20 05:21:52 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1201
-----------------------------------------------------------------------
 Ticket     | 1201
 Created By | adrian at designeffects.com.au
 Summary    | maximum number of recipients
 Queue      | IMP
 Version    | 3.2.3
 State      | New
 Priority   | 1. Low
 Type       | Enhancement
 Owners     | 
-----------------------------------------------------------------------


adrian at designeffects.com.au (2005-01-20 05:21) wrote:

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.




More information about the bugs mailing list