freescout-helpdesk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.69k stars 461 forks source link

INBOX; Error: Warning: MIME header encountered in non-MIME message #2690

Closed Mvpblcruz closed 2 months ago

Mvpblcruz commented 1 year ago

Hi,

We have install Freescout version 1.8.57 with php v8 and mariadb v15. We have set POP and SMTP email server, and the test messages are working well, but on Errors we have always the message: "Folder: INBOX; Error: Warning: MIME header encountered in non-MIME message" Can you help us solve this. What can be causing this?

Thanks,

freescout-helpdesk commented 1 year ago

Are you using modern OAuth IMAP authentication or regular authentication?

Mvpblcruz commented 1 year ago

Regular SMTP and POP3 authentication. with server, user,password port and SSL.

freescout-helpdesk commented 1 year ago

https://stackoverflow.com/questions/3378469/how-to-get-rid-of-error-messages-with-phps-imap-fetchstructure

Strange that you are getting this warning. It has already been fixed in the IMAP library which is used in FreeScout: https://github.com/Webklex/laravel-imap/issues/72

freescout-helpdesk commented 1 year ago

Do you have "IMAP Folder To Save Outgoing Replies" set in mailbox's Fetching settings?

Mvpblcruz commented 1 year ago

Yes, I have the Sent folder.

Mvpblcruz commented 1 year ago

imagem1

I have like configured like this and it fetch the emails from INBOX.

But I also have the error: imagem2

Mvpblcruz commented 1 year ago

The follow code in https://github.com/Webklex/laravel-imap/blob/master/src/IMAP/Client.php:

/**

This code Is diferent from what is mentioned on https://stackoverflow.com/questions/3378469/how-to-get-rid-of-error-messages-with-phps-imap-fetchstructure

Should I change?

freescout-helpdesk commented 1 year ago

No. The code if fine.

We have set POP and SMTP email server, and the test messages are working well, but on Errors we have always the message: "Folder: INBOX; Error: Warning: MIME header encountered in non-MIME message"

Where do you see this message? Check also Manage > Logs > App Logs.

Mvpblcruz commented 1 year ago

I see the message on: imagem1

And on: imagem2

freescout-helpdesk commented 1 year ago

Try to add the following to the .env file, clear cache and see how it goes:

APP_NEW_FETCHING_LIBRARY=true
Mvpblcruz commented 1 year ago

nano .env Addeed: APP_NEW_FETCHING_LIBRARY=true php artisan config:clear Configuration cache cleared!

Lets wait some minuts for the fetch email...

freescout-helpdesk commented 1 year ago

https://github.com/freescout-helpdesk/freescout/wiki/Clearing-the-Cache

Mvpblcruz commented 1 year ago

Thanks, Cache cleaned: imagem1

It is not fetching and is giving erros: imagem2

freescout-helpdesk commented 1 year ago

Just revert .env file back.

When you see this warning "Warning: MIME header encountered in non-MIME message" does the email actually gets successfully fetched?

freescout-helpdesk commented 1 year ago

Closed for no activity.

Mvpblcruz commented 1 year ago

Hi,

When you see this warning "Warning: MIME header encountered in non-MIME message" does the email actually gets successfully fetched? R: No, it is not fetched.

volvisti commented 2 months ago

Hi, I hope this can can be reopened. We have the same error on one of 7 Inboxes. Cache is cleared, mails get fetched. Altpough fetching is set to 1 minute, the protocol says that the mails are fetched in a period of about 10 to 20 minutes.

Any help is good help. Regards freescout 1.8.122 (installed from the image of tiredofit)

freescout-helpdesk commented 2 months ago

We have the same error on one of 7 Inboxes.

What mail server are you using? Are you getting this error with APP_NEW_FETCHING_LIBRARY=true enabled and without it?