cancel
Showing results for 
Search instead for 
Did you mean: 

IMAP storage information

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi all,
I try to use the IMAP service of Alfresco, I've correctly configure it, and I can move/copy some email from outlook to alfresco IMAP repository.
When I go to see the message stored in IMAP repo, I found a .eml file that contains only the text of the mail, now I've a question for you:

can I save also the information of the message? like senders, recipients, email object…

Thanks in advace for any response
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
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.

chicco0386
Champ on-the-rise
Champ on-the-rise
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.

Thanks for the response, but I can't extract the metadata by the action "Extract common metadata fields".
I look into the <WEB-INF>/classes/alfresco/content-services-context.xml and there's this XML lines:


<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" />

That seam to be all already configured, so why I can't extract the metadata information?

VERY THANKS

efestione
Champ in-the-making
Champ in-the-making
I have the same problem. This is the alfresco.log:

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)

It seems to be correlated with this
http://issues.alfresco.com/jira/browse/ALF-2716

Alfresco33G is running…

Thanks
Ale