james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets RemoteDelivery.java
Date Fri, 21 Feb 2003 02:23:40 GMT
noel        2003/02/20 18:23:40

  Modified:    src/java/org/apache/james/transport/mailets
                        RemoteDelivery.java
  Log:
  Added some log statements related to the recipient sets to aid in debugging.
  
  Revision  Changes    Path
  1.45      +8 -8      jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
  
  Index: RemoteDelivery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/RemoteDelivery.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- RemoteDelivery.java	20 Feb 2003 20:27:05 -0000	1.44
  +++ RemoteDelivery.java	21 Feb 2003 02:23:40 -0000	1.45
  @@ -294,7 +294,12 @@
                   throw lastError;
               }
           } catch (SendFailedException sfe) {
  +            boolean deleteMessage = false;
  +            Collection recipients = mail.getRecipients();
  +
               //Would like to log all the types of email addresses
  +            if (isDebug) log("Recipients: " + recipients);
  +
               /*
               if (sfe.getValidSentAddresses() != null) {
                   Address[] validSent = sfe.getValidSentAddresses();
  @@ -333,11 +338,6 @@
                *
                */
   
  -            boolean deleteMessage = false;
  -            Collection recipients = mail.getRecipients();
  -
  -            log("Recipients: " + recipients);
  -
               if (sfe.getInvalidAddresses() != null) {
                   Address[] address = sfe.getInvalidAddresses();
                   if (address.length > 0) {
  @@ -352,7 +352,7 @@
                               log("Can't parse invalid address: " + pe.getMessage());
                           }
                       }
  -                    log("Invalid recipients: " + recipients);
  +                    if (isDebug) log("Invalid recipients: " + recipients);
                       deleteMessage = failMessage(mail, sfe, true);
                   }
               }
  @@ -371,7 +371,7 @@
                               log("Can't parse unsent address: " + pe.getMessage());
                           }
                       }
  -                    log("Unsent recipients: " + recipients);
  +                    if (isDebug) log("Unsent recipients: " + recipients);
                       deleteMessage = failMessage(mail, sfe, false);
                   }
               }
  
  
  

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


Mime
View raw message