[AMaViS-user] MySQL changes in amavisd-new from 2.2.0 to 2.3.3

This is a discussion on [AMaViS-user] MySQL changes in amavisd-new from 2.2.0 to 2.3.3 within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Well, I'm trying to get some modification to work in 2.3.3 so I'm hoping someone familiar ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-23-2006
Dale Walsh
 
Posts: n/a
Default [AMaViS-user] MySQL changes in amavisd-new from 2.2.0 to 2.3.3

Well, I'm trying to get some modification to work in 2.3.3 so I'm
hoping someone familiar with amavisd-new and MySQL can assist.

MySQL is not one of my strong points and I didn't do the original
patches and the person who did isn't around to assist anymore.

This is what I know....

original 2.2.0:
$sql_select_white_black_list =
'SELECT wb FROM wblist,mailaddr'
. ' WHERE (wblist.rid=?) AND (wblist.sid=mailaddr.id)'
. ' AND (mailaddr.email IN (%k))'
. ' ORDER BY mailaddr.priority DESC';

modified 2.2.0:
$sql_select_white_black_list =
'SELECT wblist.wb FROM wblist,mailaddr,users'
. ' WHERE (users.id=?)'
. ' AND (wblist.rid=users.amavisd_user_id)'
. ' AND (wblist.sid=mailaddr.id)'
. ' AND (mailaddr.email IN (%k))'
. ' ORDER BY mailaddr.priority DESC';



In 2.3.3 the changes are different as shown from the original 2.2.0
so I guessed at it but it didn't work so I was wondering if someone
could offer some help.

original 2.3.3:
$sql_select_white_black_list =
'SELECT wb FROM wblist LEFT JOIN mailaddr ON wblist.sid=mailaddr.id'.
' WHERE (wblist.rid=?)'
. ' AND (mailaddr.email IN (%k))'.
' ORDER BY mailaddr.priority DESC';

modified 2.3.3: (guessed)
$sql_select_white_black_list =
'SELECT wblist.wb FROM wblist LEFT JOIN mailaddr ON
wblist.sid=mailaddr.id'.
. ' WHERE (users.id=?)'
. ' AND (wblist.rid=users.amavisd_user_id)'
. ' AND (wblist.sid=mailaddr.id)'
. ' AND (mailaddr.email IN (%k))'
. ' ORDER BY mailaddr.priority DESC';



-- Dale



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0