That link seems to point to a rater involved 'date.lua'… nothing related to IMAP at first glance… thoughts?
Well, I quickly ripped off the code for imap.lua from a larger code-base, and just included the date.lua because it was a requirement. After second look through the code, it really is unnecessary, I only used it in "client" code. Should be fixed now.