Don't see messages
Moderators: Developer, Contributor
Don't see messages
Hi !
I use MantisBT in 2.2.1 with EmailReporting in 0.10.
To test the plugin, I used an Outlook email with some folders and all worked.
Now, I have to use an email linked to a domain we bought with Zimbra webmail. I've create the same folder structure as the Outlook one, connection test seems to be good but the complete test won't show anything even if the basefolder is empty, it's like the plugin don't see messages.
For informations, the new mail use TCP port 993, SSL and Login method.
The Outlook one use TCP 993, TLS and USER method. Both are IMAP.
So, someone have an idea ?
Thanks !
I use MantisBT in 2.2.1 with EmailReporting in 0.10.
To test the plugin, I used an Outlook email with some folders and all worked.
Now, I have to use an email linked to a domain we bought with Zimbra webmail. I've create the same folder structure as the Outlook one, connection test seems to be good but the complete test won't show anything even if the basefolder is empty, it's like the plugin don't see messages.
For informations, the new mail use TCP port 993, SSL and Login method.
The Outlook one use TCP 993, TLS and USER method. Both are IMAP.
So, someone have an idea ?
Thanks !
Re: Don't see messages
Please activate debug mode
Make sure there is an email in the folder that should be processed
Run bug_report_mail.php and post the output in this topic
Make sure there is an email in the folder that should be processed
Run bug_report_mail.php and post the output in this topic
Re: Don't see messages
Thanks for your reply !
There is the output from the complete test with debug mode on
There is two mails in the folder and when I try with the Outlook I got this output
No mail in the Outlook but when I send one, it work.
There is the output from the complete test with debug mode on
Code: Select all
/home/vagrant/Mantis/plugins/EmailReporting/core/mail_api.php:232:
array (size=14)
'enabled' => int 1
'description' => string 'PDU0021 - Correction' (length=20)
'mailbox_type' => string 'IMAP' (length=4)
'hostname' => string 'ssl://mailbox.planetb.fr' (length=24)
'port' => int 993
'encryption' => string 'SSL' (length=3)
'ssl_cert_verify' => int 1
'erp_username' => string 'ticket@bugtracker-deliverup.com' (length=31)
'erp_password' => string '' (length=12)
'auth_method' => string 'LOGIN' (length=5)
'project_id' => int 1
'global_category_id' => int 2
'imap_basefolder' => string 'INBOX/PDU0021/CORRECTION' (length=24)
'imap_createfolderstructure' => int 0
Code: Select all
/home/vagrant/Mantis/plugins/EmailReporting/core/mail_api.php:232:
array (size=14)
'enabled' => int 1
'description' => string 'Outlook Test' (length=12)
'mailbox_type' => string 'IMAP' (length=4)
'hostname' => string 'tls://imap-mail.outlook.com' (length=27)
'port' => int 993
'encryption' => string 'TLS' (length=3)
'ssl_cert_verify' => int 1
'erp_username' => string 'dubroquin@outlook.fr' (length=20)
'erp_password' => string '' (length=20)
'auth_method' => string 'USER' (length=4)
'project_id' => int 1
'global_category_id' => int 2
'imap_basefolder' => string 'PDU0021/CORRECTION' (length=18)
'imap_createfolderstructure' => int 0
Mailbox: Outlook Test
Location: IMAP Get folder info
[pear_error: message="NO, The specified message set is invalid." code=0 mode=return level=notice prefix="" info=""]
Mailbox: Outlook Test
Location: Retrieve list of messages
[pear_error: message="NO, The specified message set is invalid." code=0 mode=return level=notice prefix="" info=""]
- Attachments
-
- Mails in the right folder
- mail.jpeg (79.26 KiB) Viewed 14855 times
Last edited by DBroquin on 06 Apr 2017, 06:10, edited 1 time in total.
Re: Don't see messages
I suggest you remove your password from the posts above (erp_password)
Are you using the latest version of EmailReporting 0.10.0-DEV? check the changelog if necessary
I don't see any errors so it should find the folder properly but for some reason it does not find emails inside the folder. Please enable "Show the memory usage in different stages of the email processing process" in EmailReporting and post the update of the above test with zimbra again
Are you using the latest version of EmailReporting 0.10.0-DEV? check the changelog if necessary
I don't see any errors so it should find the folder properly but for some reason it does not find emails inside the folder. Please enable "Show the memory usage in different stages of the email processing process" in EmailReporting and post the update of the above test with zimbra again
Re: Don't see messages
Thank you, I forgot to do it!
The plugin version is the 0.10-DEV and there is the output with "Show the memory usage in different stages of the email processing process" option enabled.
For information, I use Laravel Homestead to run Mantis and the CRON since I have to test the plugin.
The plugin version is the 0.10-DEV and there is the output with "Show the memory usage in different stages of the email processing process" option enabled.
Code: Select all
Debug output memory usage
Location: Mail API - Finished __construct
Runtime in seconds: 0
Current memory usage: 1.83 MiB / 512M
Peak memory usage: 2.69 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
/home/vagrant/Mantis/plugins/EmailReporting/core/mail_api.php:232:
array (size=14)
'enabled' => int 1
'description' => string 'PDU0021 - Correction' (length=20)
'mailbox_type' => string 'IMAP' (length=4)
'hostname' => string 'ssl://mailbox.planetb.fr' (length=24)
'port' => int 993
'encryption' => string 'SSL' (length=3)
'ssl_cert_verify' => int 1
'erp_username' => string 'ticket@bugtracker-deliverup.com' (length=31)
'erp_password' => string '' (length=12)
'auth_method' => string 'LOGIN' (length=5)
'project_id' => int 1
'global_category_id' => int 2
'imap_basefolder' => string 'INBOX/PDU0021/CORRECTION' (length=24)
'imap_createfolderstructure' => int 0
Debug output memory usage
Location: Mail API - Start process mailbox
Runtime in seconds: 0.0003
Current memory usage: 1.83 MiB / 512M
Peak memory usage: 2.69 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
Debug output memory usage
Location: Mail API - Finished process mailbox
Runtime in seconds: 0.5707
Current memory usage: 1.84 MiB / 512M
Peak memory usage: 2.69 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
- Attachments
-
- EmailReporting version
- version.jpeg (41.43 KiB) Viewed 14843 times
Re: Don't see messages
Thats should only be normal if there are no emails to be processed.
I've been through the code and can't figure which part is causing issues
Please verify that there are still emails in the folder in question and if necessary place some emails in them
Run the script again and post the output here again
Please also post the changelog for 0.10.0-DEV. It's the development version so you might be some chances behind even though the version number itself has not changed
I've been through the code and can't figure which part is causing issues
Please verify that there are still emails in the folder in question and if necessary place some emails in them
Run the script again and post the output here again
Please also post the changelog for 0.10.0-DEV. It's the development version so you might be some chances behind even though the version number itself has not changed
Re: Don't see messages
There is one mail remain since yesterday and I send a new one today.
I also try to decompose the code to find what happen but I find nothing
The complete test output:
The changelog:
I also try to decompose the code to find what happen but I find nothing
The complete test output:
Code: Select all
Debug output memory usage
Location: Mail API - Finished __construct
Runtime in seconds: 0
Current memory usage: 1.7 MiB / 512M
Peak memory usage: 1.76 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
/home/vagrant/Mantis/plugins/EmailReporting/core/mail_api.php:232:
array (size=14)
'enabled' => int 1
'description' => string 'PDU0021 - Correction' (length=20)
'mailbox_type' => string 'IMAP' (length=4)
'hostname' => string 'ssl://mailbox.planetb.fr' (length=24)
'port' => int 993
'encryption' => string 'SSL' (length=3)
'ssl_cert_verify' => int 1
'erp_username' => string 'ticket@bugtracker-deliverup.com' (length=31)
'erp_password' => string 'TjJXNHIhNW50' (length=12)
'auth_method' => string 'LOGIN' (length=5)
'project_id' => int 1
'global_category_id' => int 2
'imap_basefolder' => string 'INBOX/PDU0021/CORRECTION' (length=24)
'imap_createfolderstructure' => int 0
Debug output memory usage
Location: Mail API - Start process mailbox
Runtime in seconds: 0.0003
Current memory usage: 1.7 MiB / 512M
Peak memory usage: 1.76 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
Debug output memory usage
Location: Mail API - Finished process mailbox
Runtime in seconds: 0.5821
Current memory usage: 1.77 MiB / 512M
Peak memory usage: 1.86 MiB / 512M
Current real memory usage: 2 MiB / 512M
Peak real memory usage: 2 MiB / 512M
Code: Select all
Changelog:
Jan 2017 - EmailReporting-0.10.0-DEV
- Officially compatible with MantisBT 2.x.x
- Drop support for MantisBT 1.2.x
- Updated PEAR packages: PEAR, Auth_SASL, Net_Socket
- Fixed issue with css path in notification emails
- Added support for processing signed emails (#22153)
- Fixed "Email address without the domain name" option for user/real names (based on work from srh-hochschule-berlin)
- Fixed issues with MimeDecode concerning signed email attachments
- Improved email parser to not parse unsupported content
- Fixed issue with "Test" not reporting issues with login information incase of POP3 mailbox
- SAPI helper link now opens in a new tab/window
- Moved the moment for the mailbox (complete) test
- Refreshed the interface for MantisBT 2.x.x
- Added parameter documentation for the ERP_output_config_option function
- Fixed issue with non-existing reporter user resulting in APPLICATION ERROR #811
- Added check to see whether issue exists before adding attachments
- Standardized the regex for email address searching/validation
- Added Spanish language file (provided by franksanabria)
- Fixed issue when job_users variable is not an array
Jan 2017 - EmailReporting-0.9.3.1
- Fixed issue with db_get_table and MantisBT 1.2.x (legacy issue)
Jan 2017 - EmailReporting-0.9.3
- Preliminary support for MantisBT 2.0.x and ModernUI
- Fix possible fatal error on return value
- Added error when __construct is not run when it should have
- Added fallback in case of an unknown email priority
- Added helper link for scheduled job setup
- Updated mimeDecode pear package to version 337165
- SSL Cert error only shown when ssl_cert_verify is enabled
- Added option that allows restricting access to bug_report_mail when invoked through a webserver (based on work from Chris_Z #21786)
- Fixed deprecated errors in PEAR packages
- Fixed issue with disabled mailboxes and "Create project subfolder structure" (#21856)
- Added clean-up of message ids after issue deletion (#21850)
- Added clean-up of message ids for issues beyond the readonly border (#21850)
- Show IMAP foldername if it could not be created
- Fixed IMAP issue with Exchange and empty folders
- Store references ids from message headers for a better match of new emails to existing bugs (#21851)
- Fixed possible duplication of removed reply text
- Only show removed reply text when the description has changed
- Grouped remove reply options together
- Email body can now be limited to a certain size (#21858)
- Added IMAP folder sort to maintain proper email processing order
- Test and Complete test now also show location of pear error
- Fixed moved functionality concerning reassign_on_feedback
- Added extra check whether the given priority exists
- Test and Complete test now always show result
Re: Don't see messages
I'm afraid i cannot find the source of the issue
Any tests done seem to be without issues
So i'm going to try to copy your environment so please answer the following questions
Which mail server software are you using?
Which version of PHP are you using?
Which webserver and version of said software are you using?
Any other specifics about your environment that might be relevant
Any tests done seem to be without issues
So i'm going to try to copy your environment so please answer the following questions
Which mail server software are you using?
Which version of PHP are you using?
Which webserver and version of said software are you using?
Any other specifics about your environment that might be relevant
Re: Don't see messages
I use Homestead, a vagrant box create by the Laravel team and based on Ubuntu 16.04.1. This box has :
The mail server is in another machine and it use CentOS 6.5 with Postfix 2.6.6.
Is that enough or you need something else ?
- PHP 7.1.2-3
Nginx 1.11.9
Postfix 3.1.0
MySQL 5.7.17
Redis 3.2.8
The mail server is in another machine and it use CentOS 6.5 with Postfix 2.6.6.
Is that enough or you need something else ?
Re: Don't see messages
I think i might have found it
There is an issue with the PEAR Net_IMAP package and PHP 7.1.x
PHP 7.0.x works fine though
So i will be working on a fix.
Please check your php error logs to see whether you get the same error
There is an issue with the PEAR Net_IMAP package and PHP 7.1.x
PHP 7.0.x works fine though
So i will be working on a fix.
Please check your php error logs to see whether you get the same error
Code: Select all
SYSTEM WARNING
'Illegal string offset 'EXISTS'' in '/mantisbt/plugins/EmailReporting/core_pear/Net/IMAPProtocol.php' line 871
Re: Don't see messages
If you had the same error it should be fixed now
https://github.com/mantisbt-plugins/Ema ... 59ae9d6c3d
https://github.com/mantisbt-plugins/Ema ... 59ae9d6c3d
Re: Don't see messages
Hi !
It's work now, you're a genius !
Tank you !
It's work now, you're a genius !
Tank you !
Re: Don't see messages
Good to hear
Please let us know if you run into any other issues
Please let us know if you run into any other issues