MERGE V3.2 to HEAD

19301 - RECORD ONLY - ALF-2026 -  imap.server.web.application.context.url does not have any effect
   19258 - ALF-751- Email server does not accept email where Subject ends with a period

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19315 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-03-16 17:01:42 +00:00
parent 03d130e99c
commit 8bd060798c

View File

@@ -404,9 +404,9 @@ public class SubethaEmailMessage implements EmailMessage
{
return attachments;
}
/**
* Replaces characters \/*|:"<>? on their hex values. Subject field is used as name of the content, so we need to replace characters that are forbidden in content names.
* Replaces characters \/*|:"<>?. on their hex values. Subject field is used as name of the content, so we need to replace characters that are forbidden in content names.
*
* @param subject String representing subject
* @return Encoded string
@@ -415,7 +415,7 @@ public class SubethaEmailMessage implements EmailMessage
{
String result = subject.trim();
String[][] s = new String[][] { { "\\", "%5c" }, { "/", "%2f" }, { "*", "%2a" }, { "|", "%7c" }, { ":", "%3a" }, { "\"", "%22" }, { "<", "%3c" }, { ">", "%3e" },
{ "?", "%3f" } };
{ "?", "%3f" }, { ".", "%2e" } };
for (int i = 0; i < s.length; i++)
{