PS.. I'm not mad .. The reason I thought you could store mail as Text is that rfc 2822 says this:
"This standard specifies that messages are made up of characters in the US-ASCII range of 1 through 127. There are other documents, specifically the MIME document series [RFC2045, RFC2046, RFC2047, RFC2048, RFC2049], that extend this standard to allow for values outside of that range. Discussion of those mechanisms is not within the scope of this standard." and this: "Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF." suggesting that the implementation of any protocol piggybacking off SMTP, specifically MIME, would have to take that into account, and this from rfc 2046: "NOTE: Some protocols defines a maximum line length. E.g. SMTP [RFC- 821] allows a maximum of 998 octets before the next CRLF sequence. To be transported by such protocols, data which includes too long segments without CRLF sequences must be encoded with a suitable content-transfer-encoding." which suggests to me that any binary data should be encoded as it cannot reasonably be expected to conform to the line length in its raw form. I accept that it is not reasonable to assume that every binary Content-Type will be encoded based on this evidence alone. :) d. > -----Original Message----- > From: Serge Knystautas [mailto:[EMAIL PROTECTED]] > Sent: 16 December 2002 19:59 > To: James Developers List > Subject: Re: [JDBC repository] Viewing mail archives from a webapp > > > Danny Angus wrote: > > Hi, > > > > The mail is conciously written out in a single field to avoid > the overhead of unneccesary processing, though there is no good > reason for using a BLOB rather than TEXT since it has to be > encoded for transfer as ASCII anyway. > > Err, correction... MIME headers have be encoded, but the message itself > can be binary. If you don't use blob, you'll quickly hit probs. > > -- > Serge Knystautas > Loki Technologies - Unstoppable Websites > http://www.lokitech.com > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
