Add more mailbox for Email Reporting Plugin

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

Moderators: Developer, Contributor

NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

Hello,

I was trying to add and configure more than 1 mail for Email Reporting. Is this possible ?

Thank You
Ancy
Posts: 46
Joined: 30 Jun 2017, 11:10

Re: Add more mailbox for Email Reporting Plugin

Post by Ancy »

Yes, it is possible. But your mailbox should be of imap not pop3
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

Well actually its possible with both. You can process as many mailboxes as you wish with EmailReporting

For IMAP you can process other folders besides the INBOX folder.

See the explanation here: https://www.mantisbt.org/wiki/doku.php/ ... ilbox_type
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

So, i have already one mailbox. I just need to click on ADD ?

Thank You
Attachments
Capture.JPG
Capture.JPG (28.02 KiB) Viewed 16547 times
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

I tried and now i have:

pear_error: message="NO, LOGIN failed." code=0 mode=return level=notice prefix="" info=""
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

I suggest you use "copy" since i expect the mailbox configurations are pretty similar.

adjust the mailbox settings as needed

The process for adding a new mailbox is as follows
  1. In the screenshot select add
  2. Click on select mailbox
  3. Fill the mailbox settings as required
  4. Click on "Add" to add the mailbox to EmailReporting
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

Thank You. I followed your steps but i have error when i try to TEST it
Attachments
Capture.JPG
Capture.JPG (32.96 KiB) Viewed 16519 times
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

The error says that the login failed. Which means that the username password combination given is likely incorrect.

I suggest you check that

What mail server software are you using?
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

Hello,

We are using Exchange
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

have you tried using IMAP with a normal mail client to see if it works?
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

I have already configured another IMAP mail from exchange and it's working. I was thinking if i need to include the new mailbox+password into the config_inc.php ?

For the moment i have only one entry:

$g_smtp_username =
$g_smtp_password =

thnx
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

Thats only necessary to send the notifications emails from MantisBT. It has nothing to do with EmailReporting
It is important that people answering the MantisBT notification email are sending those emails to a mailbox monitored by EmailReporting. This can be any mailbox. If EmailReporting can match an email to an existing ticket it will always do this no matter what mailbox the email was received on
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

HEllo

It's working. The strange fact is that if we do a test we have the error message but the issued are created
SL-Gundam
Posts: 722
Joined: 06 Jul 2011, 14:17

Re: Add more mailbox for Email Reporting Plugin

Post by SL-Gundam »

Thats really weird since the login happens before actual email retrieval

You might wanna enable debug mode do the test again
If needed post the output here so that we can look at it together
NandoNaldo
Posts: 122
Joined: 09 Mar 2016, 21:44

Re: Add more mailbox for Email Reporting Plugin

Post by NandoNaldo »

I had another doubt: Is ther any way to separate the Delete processed email from the mailbox for each mailbox ?

I noticed that this option is for the plugin, but if i want to delete only one of the mailbox and leave the other one configured ?

Is this possible ?

Thank You in advance
Post Reply