>How about creating a new field on auth database and make a little hack
>on the sql query on source code? For exemple, 1=pop, 0=imap and even
>2=both. Then on the auth query for imap you use a where clause like
>select passwd from user where type = '0' or type = '2'
>and the same for pop, just where type = '1' or type = '2'
>I dont know the query or fields nor code rigth now, but I think it
>should be easy to hack...

yeah, there is somtehing like this in the authdaemonrc config file
##NAME: MYSQL_WHERE_CLAUSE:0
#
# This is optional, MYSQL_WHERE_CLAUSE can be basically set to an arbitrary
# fixed string that is appended to the WHERE clause of our query
#
# MYSQL_WHERE_CLAUSE    server='mailhost.example.com'
MYSQL_WHERE_CLAUSE      imapok=1 AND bool1=1 AND bool2=1

i have the fields imapok, bool1, bool2 in my database, as far as i get 
this, both, pop3 and imap, are checked with this where clause...
i am not sure what the use of this could be? i mean, if the select doesnt 
hit, it doesnt hit for both, and if it does, then again, for both...
what would be more usefull was something like "POP3_WHERE_CLAUSE" and 
"IMAP_WHERE_CLAUSE" ...

is there anything like this ?

stefan.



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to