I think it might be a bit dangerous to do it for all messages during SMTP retrieval. The trick is you can't do this to every line as you could mess up headers and lots of non-text content.
You could write a mailet that took the MimeMessage and reformated any text/plain content to remove unwanted line feeds. I don't know what if any rules there are regarding when these line feeds are enforced and if 7bit vs. 8bit has much to do with it. -- Serge Knystautas Loki Technologies - Unstoppable Websites http://www.lokitech.com/ Samuel Sadek wrote: > Hi all, > > I wanted to know if there is any way I can control the formatting of > mail data being received from a requesting SMTP-sender server over a > TCP/IP transmission channel. The reason I ask this is that I have > noticed that if I send mail to a local recipient from the same domain as > my JAMES SMTP server, it sets the message attachment file line length to > exactly 76 characters long. If I send the same attachment file within > the same message but sent from a remote mail server eg. hotmail.com or > yahoo.com they seem to set the line length of the attachment to exactly > 60 characters long. I wondered if there's any chance of intercepting > every line as it's being sent from a sending SMTP server and control the > width of it. I know in SMTPHandler.doData method intercepts the mail > data as an inputstream but do not how to perceive this from this point... > > Could this difference be due to the content-transfer-encoding scheme > being used to send the binary data over a transmission channel i.e. 7bit > vs. 8bit ? > > Your feedback will be greatly appreciated as always. > > Thanks in advance. > > Sam. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
