[imp] hardening imp against spammers

Jan Schneider jan at horde.org
Wed Jun 29 05:42:30 PDT 2005


Zitat von Jon Lewis <jlewis at lewis.org>:

> Is there any reason not to have something like:
>
> /* impose limit on number of recipients */
>     if (substr_count($recips,"@") > $conf['user']['max_recipients']) {
>       Horde::raiseMessage(_("Too many recipients.  Try again with 
> fewer."), HORDE_ERROR);
>       $get_sig = false;
>       break;
>     }
> /* end impose limit on number of recipients */
>
> in compose.php in case SEND_MESSAGE: right after $recips is filled in?  It
> seems to work for me anyway.

Beside that it's for a very special problem (that I currently have at a 
customer's site too, btw), no.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list