[sam] [PATCH] Fix for amavisd-sql constraint problem

Jan Schneider jan at horde.org
Sun Aug 14 06:57:01 PDT 2005


Zitat von Josh Endries <josh at endries.org>:

> I'm not a PHP/PEAR/Horde expert, but attached is a patch I hacked up
> to fix a constraint problem I was having with SAM. The problem is
> that, when a user submits a whitelist, the existence of sender
> addresses is only checked for addresses in the existing wblist and
> not for new additions. If one user adds an address, and someone else
> tries to add that same address, it breaks the unique index in the DB.
> This patch simply checks for the existence of new addresses. If
> found, it uses the current ID, otherwise it inserts as usual.

Please upload your patch to bugs.horde.org, so it doesn't get lost.

Jan.

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


More information about the sam mailing list