Hi All,

I am looking at implementing James in an application where the customer 
wants to be able to account for approx. email traffic. They want to 
record the TO:/FROM: pairs along with the size of each email (content 
size is the primary focus)

So I started to look at how I could write additional log messages from 
SMTPHandler...

The first thing that I noticed is that if the sender does NOT send the 
"SIZE" command after data, it appears as if James reads the entire data 
stream from the socket to work out what size it is, then it works out 
if it has exceeded the size.

Is this the case?
(I have searched the MimeMessage, MimeMessageWrapper etc and couldn't 
find where a read would be limited to a preset maximum size and thus 
subject to a resource choke from a malicious sender.)

I'm still working on the patch for logging the message size and the 
parser for the log file - it might be useful for someone else wanting 
to do email accounting....

Regards,

Anthony



   


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to