I am looking at these calls: mailrepository.JDBCMailRepository.store(Mail), which calls MimeMessageWrapper.writeTo(various)
and I don't see any escaping going on there.
Unfortunately I do not have a running copy of James with which to test this myself.
I stumbled into this question when, using my James-offshoot server, I sent a test message with a possessive (single quote) in the subject:
Subject: Friday's test
and it failed with
java.sql.SQLException: ERROR: parser: parse error at or near "s"
So I have to be escaping my headers before I feed them into SQL, and I went looking in James for a good idea of a way to do it. But I have not found it yet.
Assuming that James does this escaping, what method does it use?
Thank you, Rich
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]