Update of /var/cvs/applications/email/src/org/mmbase/applications/email
In directory james.mmbase.org:/tmp/cvs-serv28013
Modified Files:
SendMail.java
Log Message:
Returing false if not mailed because of debug-setting, will return a warning in
EmailHandler. That's silly, so changed it.
See also:
http://cvs.mmbase.org/viewcvs/applications/email/src/org/mmbase/applications/email
Index: SendMail.java
===================================================================
RCS file:
/var/cvs/applications/email/src/org/mmbase/applications/email/SendMail.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- SendMail.java 27 Nov 2008 12:26:37 -0000 1.56
+++ SendMail.java 16 Feb 2009 16:06:17 -0000 1.57
@@ -32,7 +32,7 @@
* @author Daniel Ockeloen
* @author Johannes Verelst <[email protected]>
* @since MMBase-1.6
- * @version $Id: SendMail.java,v 1.56 2008/11/27 12:26:37 michiel Exp $
+ * @version $Id: SendMail.java,v 1.57 2009/02/16 16:06:17 michiel Exp $
*/
public class SendMail extends AbstractSendMail {
private static final Logger log =
Logging.getLoggerInstance(SendMail.class);
@@ -241,6 +241,8 @@
/**
+ * @return Always <code>true</code> Could in principle return
<code>false</false> on
+ * failure. But that would normally result an exception.
*/
public boolean sendMultiPartMail(String from, String to, Map<String,
String> headers, MimeMultipart mmpart) throws MessagingException {
if (log.isServiceEnabled()) {
@@ -270,7 +272,7 @@
}
} else {
log.service("Not sending mail to " + to + " because it does not
match " + onlyToPattern);
- return false;
+ return true;
}
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs