Use volatile modifier on loop control variable.
Stub of event driven parser.

Codebase in smtp.c truncated, header file only lists command types.