-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-Transfer-Encoding: base64 #17
Comments
Hi @radenvodka, Can you please provide the full error message or stacktrace? |
[SOLVED] Entire message : 0 - Message header Entire message default is : 2 using : $message->body()->getMessage('1.1'); |
nice 👍 . closing the issue then. |
can you double check? example: $messages = $mailbox->getMessages();
} |
Can you try this use Clivern\Imap\MailBox;
$mailbox = new MailBox($connection);
// Get Folders
$mailbox->getFolders();
// Update Folder
$mailbox->setFolder("[Gmail]/All Mail");
// Count Messages in Current Folder
$mailbox->count();
$messages = $mailbox->getMessages();
foreach ($messages as $message) {
echo "Subject: " . $message->header()->get('subject');
echo "<br/>";
echo $message->body()->getMessage('1.1');
} https://github.com/Clivern/Imap/blob/master/src/Core/Message/Body.php#L73 |
not all messages are read with Entire message = 2 so the solution is as above. |
failed to read Content-Transfer-Encoding: base64 message
The text was updated successfully, but these errors were encountered: