07-23-2010 09:00 AM
07-23-2010 09:53 AM
07-23-2010 10:29 AM
There's a metadata extractor for RFC822 messages. (which are what .eml messages are)
This can extract values from the message header and put them into properties of your choosing.
<bean id="extracter.Mail" class="org.alfresco.repo.content.metadata.MailMetadataExtracter" parent="baseMetadataExtracter" />
<bean id="extracter.RFC822" class="org.alfresco.repo.content.metadata.RFC822MetadataExtracter" parent="baseMetadataExtracter" >
<property name="supportedDateFormats">
<list>
<value>EEE, d MMM yyyy HH:mm:ss Z</value>
</list>
</property>
</bean>
<bean id="transformer.OutlookMsg"
class="org.alfresco.repo.content.transform.MailContentTransformer"
parent="baseContentTransformer" />
<bean id="transformer.RFC822"
class="org.alfresco.repo.content.transform.EMLTransformer"
parent="baseContentTransformer" />
07-29-2010 06:14 AM
11:30:09,738 DEBUG [org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter] Metadata extraction failed:
Extracter: org.alfresco.repo.content.metadata.RFC822MetadataExtracter@1b61568
Content: ContentAccessor[ contentUrl=store://2010/7/29/11/30/daef1ae8-9eb8-4841-a5c4-efa83086485c.bin, mimetype=message/rfc822, size=7372, encoding=UTF-8, locale=it_IT]
org.alfresco.error.AlfrescoRuntimeException: 06290001 Metadata extraction failed because an extracted value failed to convert to the required type:
Extractor: org.alfresco.repo.content.metadata.RFC822MetadataExtracter@1b61568
Target Property QName: {http://www.alfresco.org/model/imap/1.0}dateReceived
Required Type: {http://www.alfresco.org/model/dictionary/1.0}datetime
Extracted Value: Tue, 13 Jul 2010 10:39:02 +0200
at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:54)
at org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter.convertSystemPropertyValues(AbstractMappingMetadataExtracter.java:804)
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.