james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/mailrepository AvalonMailRepository.java
Date Thu, 18 Apr 2002 14:52:08 GMT
serge       02/04/18 07:52:07

  Modified:    src/java/org/apache/james/mailrepository
                        AvalonMailRepository.java
  Log:
  Wrapped the latest debug code I added into a DEEP_DEBUG block so it won't appear in normal
usage.
  
  Revision  Changes    Path
  1.15      +5 -3      jakarta-james/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
  
  Index: AvalonMailRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/mailrepository/AvalonMailRepository.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AvalonMailRepository.java	18 Apr 2002 14:49:15 -0000	1.14
  +++ AvalonMailRepository.java	18 Apr 2002 14:52:07 -0000	1.15
  @@ -179,9 +179,11 @@
   
                   if (mc.getMessage() instanceof MimeMessageWrapper) {
                       MimeMessageWrapper wrapper = (MimeMessageWrapper) mc.getMessage();
  -                    System.out.println("Retrieving from: " + wrapper.getSourceId());
  -                    System.out.println("Saving to:       " + destination + "/" + mc.getName());
  -                    System.out.println("Modified: " + wrapper.isModified());
  +                    if (DEEP_DEBUG) {
  +                        System.out.println("Retrieving from: " + wrapper.getSourceId());
  +                        System.out.println("Saving to:       " + destination + "/" + mc.getName());
  +                        System.out.println("Modified: " + wrapper.isModified());
  +                    }
                       if (wrapper.getSourceId().equals(destination + "/" + mc.getName())
&& !wrapper.isModified()) {
                           //We're trying to save to the same place, and it's not modified...
we shouldn't save.
                           //More importantly, if we try to save, we will create a 0-byte
file since we're
  
  
  

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


Mime
View raw message