Subject: This patch fix a bug that occured when courier-IMAP and vpopmail (STABLE version : 5.2.1) are used together (with courier authentication set to vchkpw). Details: To authenticate users, courier-IMAP is using vpopmail functions. But these functions have not be written for multiple calls (vpopmail has nos daemon, authdaemon is a... daemon !). The vpopmail function "parse_email" don't initialize its buffers, so next calls will returns incorrects results, resulting in hasardous authentication problems. Fix: Integrate "parse_email" function of vpopmail 5.3, writing more secure (using snprintf), with the function name "parse_email_internal" (and of course, modify call). Notes: DON'T USE THIS PATCH IF YOU ARE USING vpopmail > 5.3 ! -- freebsd@simplerezo.com http://www.simplerezo.com/FreeBSD/