enzoh/smtps-gmail — pull request #6 by damiencourousse (2014-09-01 19:02:15+00:00)
Title: State monad generalised

Hi Enzo,

This pull request is a generalisation of my previous fixes.
+ generalise the use of the SMTPState monad, for SMTP and SMTPS sequences
+ handle SMTP sequences with different orderings, e.g. 250-AUTH, 250-ENHANCEDSTATUSCODES or 250-ENHANCEDSTATUSCODES, 250-AUTH (which sometimes happen)
+ handle optional replies; for example, the TLS sequence sometimes contains the message 250-PIPELINING