Hi,
For my tests on custom matchers and mailets I need to set the sender
address of a FakeMail. I guess this can be a common need for many people.
You will find attached to this mail a patch that simply add a setter for
the sender field of the FakeMail.
Sincerly yours,
Benoit Tellier
diff -uNr james-mailet/base/src/test/java/org/apache/mailet/base/test/FakeMail.java james-mailet-new/base/src/test/java/org/apache/mailet/base/test/FakeMail.java
--- james-mailet/base/src/test/java/org/apache/mailet/base/test/FakeMail.java 2014-12-22 16:29:33.308411163 +0100
+++ james-mailet-new/base/src/test/java/org/apache/mailet/base/test/FakeMail.java 2014-12-22 16:37:20.155073594 +0100
@@ -90,6 +90,10 @@
return sender;
}
+ public void setSender(MailAddress sender) {
+ this.sender = sender;
+ }
+
public String getState() {
return state;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]