> Attached is a patch which should work for both crypted passwords and > plaintext passwords, and fail gracefully if you try and use CRAM-MD5 > with a crypted password. > > Lightly tested at the moment; before I commit it to the repository, I'l > do much more testing (and you are welcome to test as well). > > John > I gave it a run on my test system and ran into an issue. The vpopmail build on my system didn't create a pw_clear_passwd column in the vpopmail database. I took a look through the vpopmail source and the pw_clear_passwd column isn't created if the vpopmail isn't build with the clear pass option.
So maybe select * from vpopmail, fetchrow_hashref, then a check for pw_clear_passwd in the results to determine how vpopmail was built will do the trick?
