-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
All works except querying for specific message. #150
Comments
Hi @klukiyan , Besides that your code looks fine (ecept Best regards |
@Webklex
empty array... I've just tried pure PHP and it returned me 3 messages. Something must be really wrong with query().
Update |
Is reffering to a second page where each page contains 10 messages. So in order to receive any message you would habe to have at least 11 mails matching that criteria. Please try the following: $aMessage = $oFolder->query(null)->subject('Electra')->limit(10, 1)->get(); Note you can parse an parameter Please take a look at #100 a user had an simular issue. Setting |
@Webklex , thank you, with
I want to use your package, especially when it comes to working with attachments. But the speed is really a concern. Can you give me a hint how can I make it faster? |
If you want to decrease the loading time you could as well fetch bodys and attachments later. $oFolder->query(null)->setFetchFlags(false) ->setFetchBody(false)->setFetchAttachment(false); Your mentioned plain php code does'nt fetch all attachments, thats probably why its faster. This library also does some encoding etc which might take a few additional ms. However feel free to create a fork and remove everything you don't need - that's probably the best in order to get the most out of it :) |
@Webklex That's a good hint. |
There are several possibilities. Here are two examples: https://github.com/Webklex/laravel-imap#fetch-a-specific-message $oMessage = $oFolder->getMessage($uid = 1); ..or by token if you want to be a bit more "bullet proof", since the uid isn't always unique: |
Great |
$oMessage = $oFolder->getMessage($uid = 1); |
@dharmendravirasat that could be caused by a ton of things. Please provide more information and if it isn't related to this issue, please consider to open a new issue. Best regards |
This works:
This refuses to work:
all the time getting empty arrays...
Any help please?
I'm using the "facade approach"
The text was updated successfully, but these errors were encountered: