On Sun, Aug 24, 2008 at 4:54 PM, Stefano Bagnara <[EMAIL PROTECTED]> wrote: > Robert Burrell Donkin ha scritto: >> >> On Sun, Aug 24, 2008 at 12:49 PM, Stefano Bagnara <[EMAIL PROTECTED]> wrote: >>> >>> I don't know if "Subject:" alone in a line is a valid header so I don't >>> know >>> what implementation does the right thing here. >> >> IIRC that's a cpature of an actual wild email >> >> AIUI anything after the colon can be wrapped by adding CRLF and >> starting the next line with whitespace. if so then the header's >> legitimate. > > Adding a space after the colon fixed the javamail parsing. I didn't have the > time to check the mime grammar to understand if this is a bug or not.
it's not really clear in the specification. subject is unstructured so some may argue not. it does happen in the wild though. IIRC we discussed something similar with mime4j - what to do about incorrect headers >>> Unless anyone object I plan to change the .test files so to avoid this >>> cases >>> (empty line on top and new line after headername) and let both >>> implementations pass the test suite. >> >> i think the newline header is a bug but it's probably best to resolve >> this at the parser level. maybe we need to raise bug reports with sun >> and geronino about this parser corner case. > > https://issues.apache.org/jira/browse/GERONIMO-4261 javamail? - robert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
