hbedi 2003/01/21 02:12:31
Modified: src/java/org/apache/james/nntpserver/repository Tag:
branch_2_1_fcs NNTPArticleImpl.java
Log:
Fix for very specific and helpful bug report with test case filed by
[EMAIL PROTECTED]
For more information see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16244
Revision Changes Path
No revision
No revision
1.10.4.2 +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.10.4.1
retrieving revision 1.10.4.2
diff -u -r1.10.4.1 -r1.10.4.2
--- NNTPArticleImpl.java 10 Jan 2003 08:30:16 -0000 1.10.4.1
+++ NNTPArticleImpl.java 21 Jan 2003 10:12:30 -0000 1.10.4.2
@@ -76,6 +76,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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>