Module mod_email_receive

Handle received e-mails, notifies email observers depending on the recipient.

Copyright © 2011 Marc Worrell

Authors: Marc Worrell (marc@worrell.nl).

Description

Handle received e-mails, notifies email observers depending on the recipient.

Function Index

event/2
init/1
observe_email_add_handler/2Add an email handler, returns the email address for the handler.
observe_email_drop_handler/2Drop all handlers matching the parameters.
observe_email_ensure_handler/2Ensure that en email handler exists.
observe_email_received/2Find handlers based on the recipient, forward the e-mail to those handlers.

Function Details

event/2

event(Event, Context) -> any()

init/1

init(Context) -> any()

observe_email_add_handler/2

observe_email_add_handler(Email_add_handler, Context) -> any()

Add an email handler, returns the email address for the handler

observe_email_drop_handler/2

observe_email_drop_handler(Email_drop_handler, Context) -> any()

Drop all handlers matching the parameters

observe_email_ensure_handler/2

observe_email_ensure_handler(Email_ensure_handler, Context) -> any()

Ensure that en email handler exists

observe_email_received/2

observe_email_received(Email_received, Context) -> any()

Find handlers based on the recipient, forward the e-mail to those handlers. The e-mail is already parsed and (mostly) sanitized. The e-mail address can be of the form "recipient+tag"


Generated by EDoc