mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11837 - Alfresco 4.0 SMTP Inbound does not work with messages without From and To Headers.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@33015 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -107,12 +107,18 @@ public class FolderEmailMessageHandler extends AbstractEmailMessageHandler
|
||||
Date now = new Date();
|
||||
messageSubject = I18NUtil.getMessage(MSG_DEFAULT_SUBJECT, new SimpleDateFormat("dd-MM-yyyy-hh-mm-ss").format(now));
|
||||
}
|
||||
|
||||
String messageFrom = message.getFrom();
|
||||
if(messageFrom == null)
|
||||
{
|
||||
messageFrom = "";
|
||||
}
|
||||
|
||||
// Create main content node
|
||||
NodeRef contentNodeRef;
|
||||
contentNodeRef = addContentNode(getNodeService(), spaceNodeRef, messageSubject, overwriteDuplicates);
|
||||
// Add titled aspect
|
||||
addTitledAspect(contentNodeRef, messageSubject, message.getFrom());
|
||||
addTitledAspect(contentNodeRef, messageSubject, messageFrom);
|
||||
// Add emailed aspect
|
||||
addEmailedAspect(contentNodeRef, message);
|
||||
// Write the message content
|
||||
|
Reference in New Issue
Block a user