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
Pass "SearchTerms" to do the searching of imap email folders on the email server. #103
Comments
The subject for this issue seems to differ from the description... would it be better to have something where calling code handle MimeMessage objects directly (ie don't go through EMECA rules), or to allow search terms somewhere... perhaps in the pollEmailServer service or perhaps even the EmailServer entity for all polling/etc on that server? |
What I meant was the 'SearchTerm' functionality. I understood this as effectively running the existing EMECA type functionality (at least the 'condition' element) directly on server instead of on the client, where it would similarly process each message. But I see now that it probably does not have to do this to 'search' on the server. I will edit the issue subject. The difficulty I would see with use of the EmailServer entity is in having 'dynamic' search terms. As a simple example, if you only wanted to look at emails for the past two days. So, I would be thinking along lines of passing SearchTerm parameters through in a pollEmail service, perhaps a separate one to use as an alternative to the one that implements the EMECA functionality? Or combined? Certainly the EMECA process is useful and powerful. |
The pollEmailServer service is designed to run in the background using settings on the EmailServer entity and perhaps parameters set in the service job that runs it on a schedule. In other words, it is not so much meant to be manually triggered where you would explicitly pass some sort of parameter based on what you want in a moment. This is why any search terms in addition to the default ones it uses now would have to be configured somewhere. What sort of overall process do you have in mind for more 'dynamic' search terms? |
The kind of process I have in mind would be along the line that you could have another scheduled service** that calls the poll#EmailServer service sending it the required parameters. For example,
And so on. -- If there is a core poll#EmailServer service that can accept a range of parameters as to how and what it should poll, I think one could use it much more flexibly. ** Or more than one for that matter... |
Closing as part of general cleanup for the move to HiveMind and for no recent activity on this issue. If this comes up again or anyone wants to pursue it feel free to create a request on moqui.org. For more information see: |
…lso fixed issue in EditDbView, hasn't been updated and used an old EntityFacade method
Ensuing from issue #97, it would be great to have the option to pass "searchTerms" to do the searching of imap email folders on the email server, without downloading to the client for processing by EMECAs. (In my case, I would be most interested in being able to pass a date search term). Thanks.
The text was updated successfully, but these errors were encountered: