james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1362051 - /james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java
Date Mon, 16 Jul 2012 14:19:22 GMT
Author: eric
Date: Mon Jul 16 14:19:21 2012
New Revision: 1362051

URL: http://svn.apache.org/viewvc?rev=1362051&view=rev
Log:
Return the sender, not the recipients (MAILETSTANDARD-13)

Modified:
    james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java

Modified: james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java?rev=1362051&r1=1362050&r2=1362051&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java
(original)
+++ james/mailet/standard/trunk/src/main/java/org/apache/james/transport/matchers/SenderIsLocal.java
Mon Jul 16 14:19:21 2012
@@ -18,6 +18,7 @@
  ****************************************************************/
 package org.apache.james.transport.matchers;
 
+import java.util.Arrays;
 import java.util.Collection;
 
 import javax.mail.MessagingException;
@@ -32,6 +33,6 @@ import org.apache.mailet.base.GenericMat
 public class SenderIsLocal extends GenericMatcher {
 
     public final Collection<MailAddress> match(Mail mail) throws MessagingException
{
-        return (getMailetContext().isLocalEmail(mail.getSender())) ? mail.getRecipients():
null;
+        return (getMailetContext().isLocalEmail(mail.getSender())) ? Arrays.asList(mail.getSender()):
null;
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message