message parser: Cleaned up the code and another attempt at fixing infinite looping.
message parser: Cleaned up the code and another attempt at fixing infinite looping.

--HG--
branch : HEAD

dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot