maildir-inbound-procs.tcl

Provides API for importing email via postfix maildir

Location:
packages/acs-mail-lite/tcl/maildir-inbound-procs.tcl
Created:
12 Oct 2017
CVS Identification:
$Id: maildir-inbound-procs.tcl,v 1.8.2.1 2019/11/16 16:54:06 gustafn Exp $

Procedures in this file

Detailed information

acs_mail_lite::maildir_check_incoming (private)

 acs_mail_lite::maildir_check_incoming

Checks for new, actionable incoming email via Postfix MailDir standards. Email is actionable if it is identified by acs_mail_lite::email_type. When actionable, email is buffered in table acs_mail_lite_from_external and callbacks are triggered.

See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 acs_mail_lite::email_type acs_mail_lite::email_type (public) acs_mail_lite::inbound_cache_hit_p acs_mail_lite::inbound_cache_hit_p (private) acs_mail_lite::inbound_email_context acs_mail_lite::inbound_email_context (private) acs_mail_lite::inbound_prioritize acs_mail_lite::inbound_prioritize (public) acs_mail_lite::inbound_queue_insert acs_mail_lite::inbound_queue_insert (private) acs_mail_lite::maildir_check_incoming acs_mail_lite::maildir_check_incoming acs_mail_lite::maildir_check_incoming->acs_mail_lite::email_type acs_mail_lite::maildir_check_incoming->acs_mail_lite::inbound_cache_hit_p acs_mail_lite::maildir_check_incoming->acs_mail_lite::inbound_email_context acs_mail_lite::maildir_check_incoming->acs_mail_lite::inbound_prioritize acs_mail_lite::maildir_check_incoming->acs_mail_lite::inbound_queue_insert

Testcases:
No testcase defined.

acs_mail_lite::maildir_email_parse (private)

 acs_mail_lite::maildir_email_parse \
    [ -headers_arr_name headers_arr_name ] \
    [ -parts_arr_name parts_arr_name ] [ -message_fpn message_fpn ] \
    [ -part_id part_id ] [ -section_ref section_ref ] \
    [ -error_p error_p ]

Parse an email from a Postfix maildir into array array_name for adding to queue via acs_mail_lite::inbound_queue_insert

Parsed data is set in headers and parts arrays in calling environment.

Switches:
-headers_arr_name (optional)
-parts_arr_name (optional)
-message_fpn (optional)
is absolute file path and name of one message
-part_id (optional)
-section_ref (optional)
-error_p (optional, defaults to "0")

Partial Call Graph (max 5 caller/called nodes):
%3 acs_mail_lite::maildir_check_incoming acs_mail_lite::maildir_check_incoming (private) acs_mail_lite::maildir_email_parse acs_mail_lite::maildir_email_parse acs_mail_lite::maildir_check_incoming->acs_mail_lite::maildir_email_parse _ _ (public) acs_mail_lite::maildir_email_parse->_ acs_mail_lite::sched_parameters acs_mail_lite::sched_parameters (public) acs_mail_lite::maildir_email_parse->acs_mail_lite::sched_parameters acs_mail_lite::section_id_of acs_mail_lite::section_id_of (private) acs_mail_lite::maildir_email_parse->acs_mail_lite::section_id_of acs_root_dir acs_root_dir (public) acs_mail_lite::maildir_email_parse->acs_root_dir mime::buildmessage mime::buildmessage acs_mail_lite::maildir_email_parse->mime::buildmessage

Testcases:
No testcase defined.
[ show source ]