pgr
21
Where is the issue and PR for this on Github?
rsp
22
Hello all,
Is there any way to tag all Suitecrm developer, responsible maintainers and fix all these known issues?
pgr
23
@rsp you create Issues in the GitHub repos, one for v7, one for v8
I found the exact same issue
This helped, thank you very much
After testing I found another issue relevant, when the subjects are in other encoding like “GBK”, so I modified the code a little bit, as below:
public function handleMimeHeaderDecode($subject)
{
$subjectDecoded = $this->getImap()->MimeHeaderDecode($subject);
$ret = '';
if(!is_array($subjectDecoded)){
// regex to extract all the MIME parts (Like GBK)
preg_match_all("/=\?[^?]+\?[B|Q]\?[^?]+\?=/", $subjectDecoded, $matches);
if (!empty($matches[0])) {
$allEncodedParts = array_merge(...$matches);
foreach ($allEncodedParts as $part) {
//decode the GBK MIME
$ret.= mb_decode_mimeheader($part);
}
return $ret;
} else {
return $subjectDecoded;
}
}
foreach ($subjectDecoded as $object) {
if ($object->charset != 'default') {
$ret .= $this->handleCharsetTranslation($object->text, $object->charset);
} else {
$ret .= $object->text;
}
}
return $ret;
}
I uploaded a fix for this to v7, hopefully it’ll get added to both v7 and v8 ASAP.
To test this fix on your own server:
- Go to your server’s Linux command line terminal.
- Go to base directory of your Suite 7 install, example:
cd /home/suite7/public_html
apt update -qqq && apt -y install wget git
wget https://github.com/salesagility/SuiteCRM/pull/10323.diff
git apply 10323.diff
1 Like
i would like to share my experience with this issue.
my environment is docker
when i use bitnami/php-fpm:8.0 ~ 8.2, i have this issue. when i changed to bitnami/php-fpm:7.4.33, issue Disappeared
The Norrch patch is missing (again) from v8.6.
You will not see FROM or SUBJECT fields in emails.
1 Like