Kernel::System::Ticket::TicketMessageIDMap

NAME

Kernel::System::Ticket::TicketMessageIDMap – functions to manage ticket-message_id maps

DESCRIPTION

This class relates the email message_id to the ticket_id. So when the email process should fail we can on the reprocess find the incomplete ticket and complete it.

PUBLIC INTERFACE

new()

Don't use the constructor directly, use the ObjectManager instead:

    my $TicketMessageMapObject = $Kernel::OM->Get('Kernel::System::Ticket::TicketMessageIDMap');

MessageMapLookUp()

message map lookup by message_id

    my $Result = $TicketMessageMapObject->TicketIDLookup(
        Message_id => '<123-456@otrs.com>',
    );

MessageMapCreate()

creates a ticket-message_id map

    my $Success = $TicketMessageMapObject->MessageMapCreate(
        TicketID     => 1,
        TicketNumber => '12345',
        MessageID    => '<123-456@otrs.com>',
    );

MessageMapUpdate()

updates a ticket-message_id and adds the article_id

    my $Success = $TicketMessageMapObject->MessageMapUpdate(
        TicketID     => 1,
        MessageID    => '<123-456@otrs.com>',
        ArticleID    => 2,
    );

MessageMapDelete()

deletes a ticket-message_id

    my $Success = $TicketMessageMapObject->MessageMapDelete(
        TicketID     => 1,
    );

MessageMapCleanup()

cleans up all ticket-message_id maps which are older then 5 days

    my $Success = $TicketMessageMapObject->MessageMapCleanup();
Scroll to Top