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: 66
Joined: 24 Feb 2005, 23:47
Location: California
Contact:

plugin_EmailReporting_mailboxes array question

Post by Mophilly »

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: 722
Joined: 06 Jul 2011, 14:17

Re: plugin_EmailReporting_mailboxes array question

Post by SL-Gundam »

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
Mophilly
Posts: 66
Joined: 24 Feb 2005, 23:47
Location: California
Contact:

Re: plugin_EmailReporting_mailboxes array question

Post by Mophilly »

SL-Gundam wrote: 16 Dec 2018, 04:11 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
thank you. We found to work out what we needed.
Post Reply