php-imap
php-imap copied to clipboard
[BUG] Processing ENCBINARY encoding returned base64 string
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.