Skip to content

Strange Behavior (No Body or No Metadata) #115

@FatihKoz

Description

@FatihKoz

Hi, updated my package to latest version 1.17.2 and started my tests, what I am observing can be a bug or design choice but it is below in detail.

I am using the laravel package mainly but also tested this without it too.

When I fetch withBody(), withHeaders(), withFlags(), I can see the attachements (if any) and mail bodies BUT I loose all metadata fields (like date, from, to, uid, subject etc.)

// use DirectoryTree\ImapEngine\Mailbox;
use DirectoryTree\ImapEngine\Laravel\Facades\Imap;

$messages = $inbox->messages()->withFlags()->withBody()->withHeaders()->since($date)->get();

When I do a basic fetch, I can get the metadata but not attachements and bodies.

// use DirectoryTree\ImapEngine\Mailbox;
use DirectoryTree\ImapEngine\Laravel\Facades\Imap;

$messages = $inbox->messages()->since($date)->get();

I am trying to follow available docs but can not find a cause for this, also checking the code via GitHub to get a better view of the relationships and methods...

Do you need any logs for this to debug, if so I can provide IMAP debug logs or laravel error logs without sensitive information.

Thanks for your time and support :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions