################################################################### # # According to the docs on the inter7.com web site, # ( http://inter7.com/vpopmail/vpopmail.html ) # if you REQUIRE a vauth_getall() userlist sorted in alphabetical # order, you need to set the sort_it parameter to 1 # # "struct *vauth_getall( char *domain, int first, int sort_it ) # domain = domain name to retrieve password structure from # authentication system # first = 1 to get first record, 0 = get next record # sort_it = 1 to have the user list sorted alphabetically. # This has no effect on vpasswd/cdb method, # since all users are added alphabetically. # With mysql it adds an order by pw_name to the query." # # If you have sort_it set to 0, depending on the type of backend # you are running, you may or may not receive a sorted userlist. # * cdb backend always returns a sorted list # * mysql, postgres, ldap backends will return an unsorted list # # Qmailadmin-1.0.6 has been coded with sort_it = 0, which means # that if you are not using the cdb backend, your email accounts # screen will be unsorted, and so will the dropdown userlist boxes # eg "add new alias" # # It makes sense for the qmailadmin source to be altered so the # sort_it parameter is set to 1. This way, no matter what backend # the user is running, they will receive sorted userlists. # # Written by Michael Bowe # #################################################################### --- template.c.orig Sat Nov 30 11:32:41 2002 +++ template.c Sat Nov 30 11:32:58 2002 @@ -459,7 +459,7 @@ { struct vqpasswd *pw; - pw = vauth_getall(Domain,1,0); + pw = vauth_getall(Domain,1,1); while (pw != NULL) { fprintf(actout, "\n", pw->pw_name, pw->pw_name);