The point of the bzero(3) call is so that you don't have to set data, dsize, nextnode, etc. to NULL. I'd remove those for now, they're not needed. Is there a list init call that needs to be added to imap4.c, similar to what was applied to pop3.c? -scDoes my patch fix your bug with POP3? Please, please test it.
I don't use pop3 and haven't had any problems with pop3, yet. :) -sc -- Sean Chittenden