cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing RFC822 Messages

gtj
Champ in-the-making
Champ in-the-making
Hi,
Wondering if somebody can shed some light to my confusion.
When I add content or drop an RFC822 message (for instance, mymessage.eml - a message which I just saved from my Thunderbird) via CIFS the content has never got indexed. If use Web Client Add Content and tell alfresco that the content type is "plain/text" then sure does it work.

In an attempt to make Alfresco knows that .eml file is just a text file, I put 'mimetype-map-extension.xml' in <TOMCAT_HOME>/shared/classes/alfresco/extension with the following content:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <bean id="mimetypeConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
        <constructor-arg>
            <bean class="org.alfresco.config.source.UrlConfigSource">
                <constructor-arg>
                    <list>
                        <value>classpath:alfresco/mimetype/mimetype-map.xml</value>
                        <value>classpath:alfresco/mimetype/mimetype-map-openoffice.xml</value>
                        <value>classpath:alfresco/extension/mimetypes-extension.xml</value>
                    </list>
                </constructor-arg>
            </bean>
        </constructor-arg>
    </bean>
</beans>

Then in the same directory I put 'mimetypes-extension.xml' and the content of this file is:
<alfresco-config area="mimetype-map">
   <config evaluator="string-compare" condition="Mimetype Map">
      <mimetypes>
         <mimetype mimetype="message/rfc822" display="RFC822 Message">
            <extension>eml</extension>
         </mimetype>
      </mimetypes>
   </config>
</alfresco-config>

Then I restart Alfresco but no luck. So, can somebody give me some suggestions?
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
But you haven't told Alfresco that the .eml filetype is plain/text, you've told it that it's mimetype/rfc822 which out-of-the-box it doesn't know how to index.

Mike

gtj
Champ in-the-making
Champ in-the-making
Hi Mike,
could you give me more direction as where I can tell alfresco so that it knows that eml is a text/plain file.

thanks!

veronika_zenz
Champ in-the-making
Champ in-the-making
In your mimetypes-extension.xml file add text="true" to the definition of the mimetype.

<mimetype mimetype="message/rfc822" text="true"  display="RFC822 Message">

Getting started

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.