plugin_EmailReporting_mailboxes array question

This plugin allows you to report an issue in MantisBT by sending an email to a particular mail account

Moderators: Developer, Contributor

Post Reply
Mophilly
Posts: 45
Joined: Feb 24, 2005 6:47 pm
Location: California
Contact:

plugin_EmailReporting_mailboxes array question

Post by Mophilly » Dec 15, 2018 4:57 pm

EmailReporting 0.10.1
In working through the installation and config of this plug-in, I noticed something unexpected. in the code snippet below the array index is 0, 2, 3. I expected it to be 0, 1, 2. Also, I notice that element 3 has no description. That is probably not desirable. Playing around with the add/edit features, I found I can edit what appears to be the default "new" template, element 3 in the code below.

Code: Select all

array (
  0 => 
  array (
    'enabled' => 1,
    'description' => 'Project 1 requests',
    'mailbox_type' => 'IMAP',
    'hostname' => 'mail.mydomain.com',
    'port' => '',
    'encryption' => 'SSL',
    'ssl_cert_verify' => 1,
    'erp_username' => 'email_reporter_1',
    'erp_password' => '****************',
    'auth_method' => 'LOGIN',
    'project_id' => 161,
    'global_category_id' => 1,
    'imap_basefolder' => '',
    'imap_createfolderstructure' => 0,
  ),
  2 => 
  array (
    'enabled' => 1,
    'description' => 'Project 1 requests',
    'mailbox_type' => 'IMAP',
    'hostname' => 'mail.mydomain.com',
    'port' => '',
    'encryption' => 'SSL',
    'ssl_cert_verify' => 0,
    'erp_username' => 'email_reporter_2',
    'erp_password' => '***************',
    'auth_method' => 'LOGIN',
    'project_id' => 155,
    'global_category_id' => 1235,
    'imap_basefolder' => '',
    'imap_createfolderstructure' => 1,
  ),
  3 => 
  array (
    'enabled' => 0,
    'description' => '',
    'mailbox_type' => 'POP3',
    'hostname' => '',
    'port' => '',
    'encryption' => 'None',
    'ssl_cert_verify' => 0,
    'erp_username' => '',
    'erp_password' => '',
    'auth_method' => 'USER',
    'project_id' => 31,
    'global_category_id' => 44,
  ),
)

SL-Gundam
Posts: 567
Joined: Jul 06, 2011 9:17 am

Re: plugin_EmailReporting_mailboxes array question

Post by SL-Gundam » Dec 15, 2018 11:11 pm

Yes you can add a completely empty mailbox configuration.
You can also delete or edit it if you so wish

Number 1 was probably deleted at some time by you while Number 2 already existed

These are not bugs and work as intended

Post Reply