You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i loop over messages is INBOX i also get Messages from INBOX/Tets
Is there any solution to avoid this behaviour, or even manually find out, which mailbox a message belongs to, so i can manually skip if message is from sub-mailbox?
The text was updated successfully, but these errors were encountered:
Hi,
I'm having the same problem. I'm using Docker ghcr.io/docker-mailserver/docker-mailserver:latest to create a local mail server.
Version of ddeboer/imap: 1.18 with PHP 8.1
In my case:
I have my INBOX folder with 4 messages and a folder called Test inside INBOX ("INBOX.Test") with 2 messages. When I get the count of messages by ussing $mailbox->getMessages( )->count(); it returns 6 instead of 4. Mailbox is loaded with $mailbox = $this->connection->getMailbox( 'INBOX' );
Update:
Thunderbird app returns the correct amount of messages when I open INBOX (also webmail installed, Roundcube). It seems to be something related with this library.
Update:
In my case the issue was related with a wrong usage of Message::move(). When I move the message I didn't call Connection::expunge.
This duplicates the message (but Thunderbird or webmail shows only one message, not duplicates) when moved as defined in PHP imap_mail_move function. I call this expunge method and now it returns messages correctly.
If i loop over messages is INBOX i also get Messages from INBOX/Tets
Is there any solution to avoid this behaviour, or even manually find out, which mailbox a message belongs to, so i can manually skip if message is from sub-mailbox?
The text was updated successfully, but these errors were encountered: