To build a Java version of mailcatcher (test-tool that serves as an SMTP server, keeps all mail and provides a webinterface to browse messages received, see http://mailcatcher.me/), that can be deployed as a .war, I needed messages to have an ID (number) and a reception date. So I added those two attributes. Plus a method to retrieve a message by ID.
The mailcatcher lookalike will be in a separate project.
To build a Java version of mailcatcher (test-tool that serves as an SMTP server, keeps all mail and provides a webinterface to browse messages received, see http://mailcatcher.me/), that can be deployed as a .war, I needed messages to have an ID (number) and a reception date. So I added those two attributes. Plus a method to retrieve a message by ID. The mailcatcher lookalike will be in a separate project.