Page 3 of 3
Re: OAuth2 email authentication method needed
Posted: 06 Nov 2023, 14:33
by jkwtw
Hi,
I'm also trying to get sambucas fork to work. From the Microsoft portal it seems the OAuth works but when I try to run the script on the server I get:
Code: Select all
Call to undefined method Javanile\Imap2\Roundcube\ImapClient::getMailboxName()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/core/mail_api.php: 400: IMAP - -> - getCurrentMailBox()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/core/mail_api.php: 251: ERP_mailbox_api - -> - process_imap_mailbox()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/pages/bug_report_mail.php: 74: ERP_mailbox_api - -> - process_mailbox()
/var/www/html/mantisbt-2.25.7/plugin.php: 74: - - - - include( <string>'/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/pages/bug_report_mail.php' )
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/scripts/bug_report_mail.php: 28: - - - - require_once( <string>'/var/www/html/mantisbt-2.25.7/plugin.php' )
Start checking all mailboxes: Monday 6th of November 2023 14:30:26
INTERNAL APPLICATION ERROR:
user@server:/var/www/html/mantis/plugins/EmailReporting/scripts$
I know pretty much nothing about php, so any help would be highly appreciated.
Re: OAuth2 email authentication method needed
Posted: 08 Nov 2023, 07:01
by jkwtw
Hi, it seems my last post shows up everywhere but in the thread itself, so I'll just quote it in hopes it goes through this time.
Sorry, if the original post shows up after all and this ends up being a double post.
jkwtw wrote: 06 Nov 2023, 14:33
Hi,
I'm also trying to get sambucas fork to work. From the Microsoft portal it seems the OAuth works but when I try to run the script on the server I get:
Code: Select all
Call to undefined method Javanile\Imap2\Roundcube\ImapClient::getMailboxName()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/core/mail_api.php: 400: IMAP - -> - getCurrentMailBox()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/core/mail_api.php: 251: ERP_mailbox_api - -> - process_imap_mailbox()
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/pages/bug_report_mail.php: 74: ERP_mailbox_api - -> - process_mailbox()
/var/www/html/mantisbt-2.25.7/plugin.php: 74: - - - - include( <string>'/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/pages/bug_report_mail.php' )
/var/www/html/mantisbt-2.25.7/plugins/EmailReporting/scripts/bug_report_mail.php: 28: - - - - require_once( <string>'/var/www/html/mantisbt-2.25.7/plugin.php' )
Start checking all mailboxes: Monday 6th of November 2023 14:30:26
INTERNAL APPLICATION ERROR:
user@server:/var/www/html/mantis/plugins/EmailReporting/scripts$
I know pretty much nothing about php, so any help would be highly appreciated.
Re: OAuth2 email authentication method needed
Posted: 13 Nov 2023, 10:00
by jkwtw
For future reference:
The getMailboxName function is not implemented. However, it is only called when the IMAP Basefodler is not set. When specified, the plugin works correctly.
There are also some errors when using php 8 with unescaped hyphons in regular expressions. These can be fixed by escaping the hyphons.
The previously mentioned expunge method seems to be missing as well and is marked as todo.
Re: OAuth2 email authentication method needed
Posted: 13 May 2024, 07:03
by databird
Hi everyone,
We managed to activate OAUTH2 on MantisBT (v1.2.7) with plugin "Email Reporting" (v0.9.3.1)
Have a look on our GitHub repository :
https://github.com/databird/mantisbt_oauth2
and enjoy it

Re: OAuth2 email authentication method needed
Posted: 20 Jan 2026, 06:26
by Rainer
is this still working?
we have
Email Reporting 0.11.0-DEV
PHP 8.3.26
MantisBT 2.27.1
but I am unable to test the mailbox with the procedure you have mentioned.
I just get operationed failed and have not signin logs in O365.
Re: OAuth2 email authentication method needed
Posted: 23 Apr 2026, 09:08
by Sau3333
I have the same problem than you it gets imposible for me to make it work and the plugin its 3 years old so I think that could be the problem. Theres someone else active in thise forum that could help us?
Re: OAuth2 email authentication method needed
Posted: 28 Apr 2026, 09:37
by Sau3333
Sau3333 wrote: 23 Apr 2026, 09:08
I have the same problem than you it gets imposible for me to make it work and the plugin its 3 years old so I think that could be the problem. Theres someone else active in thise forum that could help us?
I`ve been searching and I have found a Emailreporting 0.12.0 DEV that supports OAUTH autentication according to the documentation could someone help me to make it work?
Re: OAuth2 email authentication method needed
Posted: 08 May 2026, 18:41
by EvilDennisR
Our company is absolutely interested in using the EmailReporting plugin with IMAP with OAuth for Office365.
Both Google and Microsoft are phasing out (if they haven't already) normal user/password logins, and they now require an authentication token.