-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Only last message in the query has attachments within IMAP::ST_UID on Gmail #108
Comments
Hi, I see that version 2.7.0 implemented the moveManyMessages method, but I can't find this on the docs. Also, can we hope to see the php-imap evolving or is it stalled? |
Hi @EthraZa , If you are missing a certain feature, feel free to create a new feature or pull request and lets talk or discuss 👍 Best regards, |
Hi. This issue itself, if I use ST_UID with Gmail, I can't get the attachments. |
I see. I'm scared to touch the boundary. Every time its changed, it breaks something else.. What do you think if the boundary regex gets moved to the config - so everyone who likes to play with it can do so? Perhaps we find a solid one (perhaps your regex is perfect - I don't know). Best regards, |
I myself, like to put in the config everything that can be in the config. The boundary regexp there is indead a great idea. Right now I'm using php-imap in a project that is reading about 2000 email acconts that send 100's to 1000's each everyday with XML, ZIP and PDFs attacheds, till now, my regexp is doing great. |
Problem:
When passing 'sequence' => \Webklex\PHPIMAP\IMAP::ST_UID to ClientManager, we can "see" the attachments only for the last message in the query.
I'm on this problem all the day long trying to figure it out, but it is just passing over the top of my head. For now, I just found that the ST_UID is the one to blame, but don't know why.
How I set it up:
On Gmail (ordinary free account), I set a folder "Test" with 3 messages coming from the same source.
1st - 1 PDF
2nd - 1 PDF, 1 XML
3rd - 2 XML
What happens:
'sequence' => \Webklex\PHPIMAP\IMAP::ST_UID
I get only the 2 XML attachments from the 3rd message. 1st and 2nd are reported as no attachments, be it with hasAttachment or getAttachments method.
If I do with only the first 2 messages, it get the PDF and XML attachments of the 2nd.
So it always get only the last message attachments.
'sequence' => \Webklex\PHPIMAP\IMAP::ST_MSGN
Everything is "seen" ok, I can download all attachments of all messages.
Test code:
Dumps:
'sequence' => \Webklex\PHPIMAP\IMAP::ST_UID
'sequence' => \Webklex\PHPIMAP\IMAP::ST_MSGN
If dumping of anything at any moment in the code can help, please, just let me know.
The text was updated successfully, but these errors were encountered: