E-Mail import handler.

This uses the OpenPSA 2 email importer MDA system. Emails are imported into blog, with a possible attached image getting stored using 'image' type in schema if available.

package net.nehmer.blog

 Methods

_handler_import (mixed $handler_id, array $args, array $data)

Parameters

$handler_id

mixedThe ID of the handler.

$args

arrayThe argument list.

$data

array&$data The local request data.

_on_initialize ()

Maps the content topic from the request data to local member variables.

_show_import (mixed $handler_id, array $data)

Parameters

$handler_id

mixedThe ID of the handler.

$data

array&$data The local request data.

_add_image ($att)

Parameters

$att

_create_article ($title)

DM2 creation callback, binds to the current content topic.

Parameters

$title

_decode_email ()

_find_email_person ($email, $prefer_user)

Parameters

$email

$prefer_user

_load_datamanager ()

Internal helper, loads the datamanager for the current article.

Any error triggers a 500.

_parse_email_persons ()

 Properties

 

\midcom_db_article $_article

The article to operate on
 

\midcom_db_topic $_content_topic

The content topic to use
 

\org_openpsa_mail $_decoder

Email importer