[BUG] Processing ENCBINARY encoding returned base64 string
wking0702 opened this issue · 0 comments
wking0702 commented
In the \PhpImap\DataPartInfo::decodeAfterFetch method, the "imap_binary" function is used when processing ENCBINARY encoding. But "imap_binary" returns "base64 string" (details: https://www.php.net/manual/en/function.imap-binary.php).
Bug in this possition: src/PhpImap/DataPartInfo.php#L98
For test: run code print imap_binary("Plain text");
and print base64_decode(imap_binary("Plain text"));
Please fix this bug.