Saturday, June 25, 2022

SuiteCRM Auto Import of Emails not working

As per this thread - https://github.com/salesagility/SuiteCRM/pull/7459 - a problem with the email charset (apparently specifically with Office 365 emails?) cause auto import of emails to fail.

Relevant hooks and scripts are:

function::pollMonitoredInboxesAOP

function::pollMonitoredInboxes

include/Imap/ImapHandler.php

modules/InboundEmail/InboundEmail.php

modules/InboundEmail/AOPInboundEmail.php

This issue appears to be that a null charset result on querying the email stops processing of inbound emails.

The solution I chose (mentioned elsewhere0 was to change the deafualt value of the charset parameter passed to the imap search script:

Change ln 795 from:

public function search($criteria, $options = SE_FREE, $charset = NULL)

to:

public function search($criteria, $options = SE_FREE, $charset = 'US-ASCII')

0 Comments:

Post a Comment

<< Home

I shmaak SA Blogs, sorted with Amatomu.com