Open mmarquez opened 1 year ago
I have had to change in the next line
(string)$imapemail
by
$imapemail->getTextBody()
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).
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