Page 1 of 1

plugin_EmailReporting_mailboxes array question

Posted: 15 Dec 2018, 21:57
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,
  ),
)

Re: plugin_EmailReporting_mailboxes array question

Posted: 16 Dec 2018, 04:11
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

Re: plugin_EmailReporting_mailboxes array question

Posted: 29 Aug 2019, 23:46
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.