Kernel::System::PostMaster::Modifier::MailAccountID

NAME

Kernel::System::PostMaster::Modifier::MailAccountID – Postmaster module to attempt to add mail account context.

DESCRIPTION

Normally when the mails are processed/fetched the mail account information or configuration is present, but if for some reason the processing of the mail fails, the mail will be saved for later reprocessing, in folder `spool`, but at this time the mail account information is no longer available/present.

This module will try to improve/fix the lack of the mail account configuration, looking for the header `X-OTRS-MailAccountID`.

PUBLIC INTERFACE

new()

This module is not intended to be instantiated as a stand alone module, but as part of Kernel::System::Postmaster.

    my $ModifierObject = Kernel::System::PostMaster::Modifier::MailAccountID->new(
        # L<Kernel::System::EmailParser>
        ParserObject           => $ParserObject,

        # L<Kernel::System::CommunicationLog>
        #  with started 'message' log
        CommunicationLogObject => $CommunicationLogObject
    );

Run()

Execute the module, Fixed email as a new Parser Object will be set as $ModifierObject{ParserObject} so it can be access later by the caller.

    my $Success = $ModifierObject->Run();
Scroll to Top