<?xml version="1.0" encoding="UTF-8"?>
<editor id="editor.eml" openable="true" text="editor.eml.name" iconClass="mdi mdi-email" title="editor.eml.title"  mimes="eml"
        className="PydioEml" formId="emlviewer_box" label="CONF_MESSAGE[Email Viewer]"
        description="CONF_MESSAGE[Email reader, supports eml format and eml mimetypes. Detects if a folder contains only email and display columns accordingly.]"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
	<class_definition filename="plugins/editor.eml/EmlParser.php" classname="Pydio\Editor\EML\EmlParser"/>
    <client_settings>
        <resources>
            <js file="plugins/editor.eml/res/build/PydioEml.js" className="PydioEml"/>
            <css file="plugins/editor.eml/emlViewer.css"/>
            <i18n namespace="editor.eml" path="plugins/editor.eml/i18n" />
        </resources>
    </client_settings>
	<registry_contributions>
		<actions>
			<action name="eml_get_xml_structure">
				<processing>
					<serverCallback methodName="switchAction"/>
				</processing>
			</action>
			<action name="eml_get_bodies">
				<processing>
					<serverCallback methodName="switchAction"/>
				</processing>
			</action>
			<action name="eml_dl_attachment">
				<processing>
					<serverCallback methodName="switchAction"/>
				</processing>
			</action>
			<action name="eml_cp_attachment">
				<processing>
					<serverCallback methodName="switchAction"/>
				</processing>
			</action>
			<action name="ls" dirDefault="true">
				<post_processing>
					<serverCallback methodName="lsPostProcess" capture="true"/>
				</post_processing>
			</action>
		</actions>
		<hooks>
			<serverCallback hookName="node.info.nocache" methodName="extractMimeHeaders"/>
		</hooks>
	</registry_contributions>
	<dependencies>
		<!-- Image proxy must be implemented -->
		<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
	</dependencies>
</editor>
