Comments (2)
I have a fix, but should I leave this open so you can create a branch? Do you want me to do it? I haven't done one of those before on here. I would be happy to learn.
Replacing the function with this resolved my issue:
public function handleMimeHeaderDecode($subject)
{
$GLOBALS['log']->debug('handleMimeHeaderDecode: Starting MIME header decoding for subject: ' . $subject);
$subjectDecoded = $this->getImap()->MimeHeaderDecode($subject);
// If $subjectDecoded is a string, log its content to understand why
if (is_string($subjectDecoded)) {
$GLOBALS['log']->error('handleMimeHeaderDecode: $subjectDecoded is a string. Content: ' . $subjectDecoded);
// Instead of returning an error message, we might want to return the original subject
// or handle this case appropriately based on the actual content of $subjectDecoded.
return $subject; // returning the original subject for now
}
$ret = '';
if (is_array($subjectDecoded)) { // Checking if it's an array as expected
$GLOBALS['log']->debug('handleMimeHeaderDecode: $subjectDecoded is an array, proceeding with decoding');
foreach ($subjectDecoded as $object) {
if (isset($object->charset) && $object->charset != 'default' && isset($object->text)) {
$ret .= $this->handleCharsetTranslation($object->text, $object->charset);
} elseif (isset($object->text)) {
$ret .= $object->text;
}
}
} else {
$GLOBALS['log']->error('handleMimeHeaderDecode: $subjectDecoded is not an array');
// Similar to above, decide how you want to handle this error.
return $subject; // returning the original subject for now
}
$GLOBALS['log']->debug('handleMimeHeaderDecode: Decoding completed, result: ' . $ret);
return $ret;
}
from suitecrm-core.
This issue has been fixed on 7.14.4, then ported and released on 8.6.1. Closing
see:
salesagility/SuiteCRM#10323
from suitecrm-core.
Related Issues (20)
- Diagnostic Tool broken in latest version
- Improve Cache Clear Speed
- Error updating suiteCRM - Leads and Custom Modules HOT 10
- PHP Fatal error: Uncaught RuntimeException: Unable to create the Doctrine Proxy directory on clean install HOT 4
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports
- Validation error when editing a case HOT 5
- Custom module with Many-to_One relationship to Users does not show Users in listview HOT 8
- Upload max size error on install HOT 3
- Error 500 on custom module deployment. HOT 2
- Call list shows Related to field incorrectly if containing letters with accents HOT 1
- Error in the Email Field When Required
- Modules no longer state the created by or modified by HOT 3
- Workflows - Calculated Fields - related field won't show up as parameter
- Session Headers Repeated HOT 6
- Descrition field in tasks shows html-entities for special characters HOT 1
- The sub panel cannot display normally HOT 2
- Can't add additional fields to Import Screen in any Module SuiteCRM 8 HOT 2
- Repair & Rebuild does not sync vardefs w/DB SuiteCRM 8 HOT 3
- Unable to Horizontal Scroll Reports in SuiteCRM 8 HOT 1
- Images being displayed in PDF Template but not in PDF File
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suitecrm-core.