Re: [PATCH] Fix for amavisd-sql constraint problem
Jan Schneider <[email protected]> Sun, 14 Aug 2005 15:57:01 +0200
| Newsgroups | gmane.comp.horde.sam |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Josh Endries <[email protected]>: > 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/ -- sam mailing list - Join the hunt: http://horde.org/bounties/#sam Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]