Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.47k stars 2.8k forks source link

EmailCollector and gmail #26575

Open mmarquez opened 1 year ago

mmarquez commented 1 year ago

Bug

When the emailcollector read a gmail folder throw an error in this code (line 1631 in actual prod).

$emailto = $this->decodeSMTPSubject($overview[0]->to);

I try to change for these:

$overviewTo = ''; if (isset($overview['to'])) { $overviewTo = $overview['to']; } elseif (isset($overview[0])) { $overviewTo = $overview[0]->to; } $emailto = $this->decodeSMTPSubject($overviewTo);

Can anyone check if they have a similar problem?

Environment Version

18.0.3

Environment OS

Debian

Environment Web server

Apache

Environment PHP

8.1

Environment Database

mysql 8.0.35

Environment URL(s)

No response

Expected and actual behavior

No response

Steps to reproduce the behavior

Connect to a gmail account in the emailcollector and try to synchronize

Attached files

No response

mmarquez commented 1 year ago

I have had to change in the next line

(string)$imapemail

by

$imapemail->getTextBody()

github-actions[bot] commented 4 days ago

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).