Summary | [PATCH] Fix for amavisd-sql constraint problem |
Queue | Sam |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | Horde Developers (at) , max (at) |
Requester | josh (at) endries (dot) org |
Created | 08/14/2005 (7346 days ago) |
Due | |
Updated | 09/09/2005 (7320 days ago) |
Assigned | 08/15/2005 (7345 days ago) |
Resolved | 09/09/2005 (7320 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
Assigned to
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ [PATCH] Fix for amavisd-sql constraint problem
Queue ⇒ Sam
New Attachment: sam-diff
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.
Josh