You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by hb...@apache.org on 2003/01/19 22:36:26 UTC

cvs commit: jakarta-james/src/java/org/apache/james/nntpserver/repository NNTPArticleImpl.java

hbedi       2003/01/19 13:36:26

  Modified:    src/java/org/apache/james/nntpserver/repository
                        NNTPArticleImpl.java
  Log:
  Fix for very specific and helpful bug report with test case filed by
  christian.buchegger@planet-interkom.de.
  
  For more information see:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16244
  
  Revision  Changes    Path
  1.16      +4 -0      jakarta-james/src/java/org/apache/james/nntpserver/repository/NNTPArticleImpl.java
  
  Index: NNTPArticleImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/nntpserver/repository/NNTPArticleImpl.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- NNTPArticleImpl.java	18 Jan 2003 22:02:59 -0000	1.15
  +++ NNTPArticleImpl.java	19 Jan 2003 21:36:26 -0000	1.16
  @@ -86,6 +86,10 @@
               reader = new BufferedReader(new FileReader(articleFile));
               String line = null;
               while ( ( line = reader.readLine() ) != null ) {
  +                // add extra dot if line starts with '.'
  +                // '.' indicates end of article.
  +                if ( line.startsWith(".") )
  +                    prt.print(".");
                   prt.println(line);
               }
           } catch(IOException ex) {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>