Aller à : navigation, rechercher

Socle Technique / Mail Capture module


The documentation of this tool is now at :

Retrieve this module via our svn : mail_capture from svn

mail_capture is a Maarch module which allows you to archive e-mails and attachments in Maarch with imap protocol.

We use the php_imap library.

This Maarch module proposes a batch allowing the storing of e-mails and works on Linux or Windows OS.

The module prepares the e-mails and their attachments for the Maarch web service client..

mail_capture module tree structure

               mail_capture_2009_02_18 10-11-47.log


<?xml version="1.0" encoding="utf-8" ?>
                <!-- Path of the module -->
                <!-- Path of the tmp folder -->
                <!-- Path of the scripts of the preprocess -->
                <!-- Path of the config of the preprocess -->
                <!-- Path of the scripts of the postprocess -->
                <!-- Path of the config of the postprocess -->
                <!-- flag to delete the mail on the server -->
                <!-- flag to enabled the debug mode -->
                <!-- imap only -->
                <!--regular expression for mail from -->
	<!-- another box-->


the config file of the store resource web service in Maarch


How to launch the batch

In the directory "scripts" you will find the files necessary to the launching of the module.

You must modify these files so that launching is carried out correctly.

launch_mail_capture.bat contains :

"C:\xampp\php\php.exe" c:\xampp\htdocs\maarch_entreprise_trunk\modules\mail_capture\mail_capture.php  c:\xampp\htdocs\maarch_entreprise_trunk\modules\mail_capture\xml\config.xml

You can launch it with your scheduler program or the CRON.

How to retrieve emails in Maarch

There are two baskets for emails :

  • EmailsToQualify

Emails to qualify

  • MyEmailsToQualify

here you can see a new keyword for the basket query : @email -> it contains the email of the connected user

My emails to qualify

-> This basket contains emails that I transferred to the dedicated box archive

1 : the email body

2 : the email attachments

My emails to qualify content

-> Then you can qualify the email

1 : the email body text

2 : the specifics customs fields

Qualification of the email