When posting the message below on a NT 4.0 System, the follwing happens:
1) the file generated for message id is not valid on NT
2) the spooler adds the message to the repository, but
a) does not add the Message-ID
b) does not delete the spool file
and hence loops undefinitely;
The Message-ID was taken from a real life newsgroup. I have not tested this
on a Unix system.
To reproduce, just place a file containg the message in the nntp/spool directory
and start the server.
Message-ID: <
E5B80B001D76D211879C00E02910776104F807C1@njc240po05.mt.host.com>
From: "Someuser" <
someuser@host.com>
Subject: Testing Long MessageIDs
Date: Wed, 23 Aug 2000 15:43:48 -0400
Newsgroups: org.apache.james.dev
Path: news.host.com
This is a valid message containing a long Message-ID
the base64 encode from javax.mail.internet.MimeUtility adds line feeds to the
encoded stream; this consequently leads to a IOException when the file for the
repository id should be created.
Finally due to this exception the code in NNTPSpooler$SpoolerRunnable.process()
which deletes the spool file is skipped and will be picked up on the next loop
again.