This release fixes error when deleting messages (#5).
Maven dependency information:
<dependency>
<groupId>nl.hsac</groupId>
<artifactId>hsac-fitnesse-email</artifactId>
<version>0.5.0</version>
</dependency>
Configuring your mail server and retrieve the last email in your test:
| script | email fixture |
| connect to host | <host> | user | <username> | password | <password> |
|only messages sent to|<receiver-email>|
|only messages with subject|<subject>|
|only messages received after|<yyyy-MM-dd HH:mm:ss>|
|retrieve last message|
|check|sender|<expected-sender>|
|check|to recipient|<expected-first-receiver>|
|check|cc recipient|<expected-first-cc-receiver>|
|show|sent date|
|show|received date|
|show|body|
|$body=|body text|
You can also block until a mail matching your criteria is found:
| script | email fixture |
| connect to host | <host> | user | <username> | password | <password> |
|only messages sent to|<receiver-email>|
|only messages with subject|<subject>|
|only messages received after|<yyyy-MM-dd HH:mm:ss>|
|set repeat interval to |500| milliseconds|
|repeat at most |100| times|
| wait until message found |
|check|sender|<expected-sender>|
|check|to recipient|<expected-first-receiver>|
|check|cc recipient|<expected-first-cc-receiver>|
|show|sent date|
|show|received date|
|show|body|
|$body=|body text|