Hi,

Well I needed a break from writing requirements and I use commons-email, so I thought I'd chip in here.

This String is used to set the Content-ID header, which is specified in RFC 2392. (I love rfc-editor.org).

<blockquote>
content-id = url-addr-spec
<snip/>
url-addr-spec = addr-spec ; URL encoding of RFC 822 addr-spec
cid-url = "cid" ":" content-id
</blockquote>

Well, I discovered that RFC 2822 (a proposed standard) obsoletes RFC822, but in my 5 minutes of reading they seemed to agree on what an addr-spec is: "addr-spec = local-part "@" domain ; global address". That's the one from 822, 2822 gets more complex with the local-part and the domain.

Anyway, it seems Just Plain Wrong to shove random characters in there, right? The examples in RFC2387 seem to be appending an @domain.com to the Content-ID's anyway. If I missed something obvious, my apologies. Today was the first time I looked at these RFCs.

I remember Noel and some others discussing a possible MIME library on this list recently; perhaps they have some input?

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net/

Oron Ogdan Adam wrote:

line 183 in HtmlEmail.java :

-------

String cid = RandomStringUtils.randomAscii(10);

-------

this can produce special html chars, which are hard to escape, wouldn't it
be easier and safer to
randomly get alphanumeric chars of say size 20 ?

BR

Oron

http://netada.co.uk


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





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



Reply via email to