sverweij/mscgen_js

View on GitHub
src/samples/test05_smtp.msgenny

Summary

Maintainability
Test Coverage
# typical SMTP conversation example - 
# source: https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol
hscale="1.8";

c:Client, s:Server;

s->c : 220 smtp.example.com ESMTP Postfix;
c->s : HELO relay.example.org;
s>>c : "250 Hello relay.example.org, I am glad to meet you";
c->s : MAIL FROM:<bob@example.org>;
s>>c : 250 Ok;
c->s : RCPT TO:<alice@example.com>;
s>>c : 250 Ok;
c->s : DATA;
s>>c : 354 End data with <CR><LF>.<CR><LF>;
c->s : (mail message);
...: (more message body);|||;
s>>c : 250 Ok: queued as 12345;
c->s : QUIT;
s>>c : 221 Bye;
s->s : close connection;