Skip to content

Too long message ids lead to crash #98

@tograss

Description

@tograss

Having a mail with a message_id > 255 leads to a crash of the plugin and hence stops mail import in glpi all together.
Reason is the restriction to 255 chars in the table glpi_plugin_mailanalyzer_message_id.

The responsible lines are

                  $DB->insert(
                     'glpi_plugin_mailanalyzer_message_id',
                     [
                        'message_id'        => $messageId,
                        'tickets_id'        => $input['items_id'],
                        'mailcollectors_id' => $mailgateId
                     ]
                  );

in hook.php. The case that this insert fails should be handled gracefully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions