Vagabond/gen_smtp — pull request #73 by gotthardp (2014-11-22 14:28:54+00:00)
Title: Pass handle_info to the session callback module.

The gen_smtp_server_session currently ignores unknown messages. The callback module may be interested in receiving for example the 'EXIT' messages. But when an {'EXIT', Pid, Reason} message is received, it is confused with {_SocketType, Socket, Packet} and the gen_smtp_server_session crashes.
I suggest to pass the unhandled messages to the callback module using the handle_info. This is very common in OTP.