Ethereal-dev: [ethereal-dev] SMTP Dissect routine

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Mon, 15 Feb 1999 20:02:52 +1000
Hi,

well, I have POP being dissected OK, but that gave me false hope that SMTP
would be as easy.

Unfortunately, it is not, and I believe that I need a state mechanism to
handle SMTP properly.

With POP I was able to look for the space separating a command and its arg
or a response and its arg (but I have not tested with enough data.

With SMTP, there are some odd bits, like the DATA command that has no
arguments and thus I can't search for a space, and then the actual data.  I
need to write a parser that figure out what we have been given, and it
needs to keep state!



Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, NIC-Handle:RJS96
NS Computer Software and Services P/L, 
Ph: +61-8-8281-0063, FAX: +61-8-8250-2080, 
Samba (Team member), Linux, Apache, Digital UNIX, AIX, C, ...