-
Notifications
You must be signed in to change notification settings - Fork 62
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
[CNB] [MU] Mailrepository: filter content #5336
Comments
It seems MailRepository interface does not support listing mails by specific conditions |
No need to change this. Just do this onto the presentation layer (webadmin). No need to be optional, I just want to easily filter this... |
Does this mean we have to fetch all mails from storage and do filter in memory? |
This is what it means. Though filtering is only done on metadata. Loading all mail content is not acceptable. Maybe the current MailRepository API would not allow for filtering wwithout retrieving the mail content, we might need to provide methods for this in So IMO:
API suggestion:
Let's do it only for listing. Lets not do it for reprocessing nor deletes as it will be super verbose! |
Anything in regular expression could be used? |
Let's not go with REGEXP Let allow extact match: [email protected] Prefix match: *@linagora.com |
what does 2d mean? |
It's pretty explicit: it means the mail had been updated in the last 2 day, so the update date is more recent than this. |
Ah ok got it: updatedBefore=2d means updatedDate < currentDate - 2d Only 'd' is accepted or any other units (h,m,...) ? |
Of course other units of |
PR for listing mails: https://github.com/apache/james-project/pull/2600/files |
Similar to listing api, we will apply all query paras (updatedBefore, updatedAfter, sender, ...) to delete and reprocess api, right? |
Yes but the big issue is carrying that through the task API. I really fear the upcoming boiler plate here.... Have a look if you want but in a separate PR please. |
I see that boiler plate as well but of course it can still be done. Do you still want to implement those api? Are they neccessary? |
Let's keep it for later |
Done: get api |
https://issues.apache.org/jira/browse/JAMES-4092
The text was updated successfully, but these errors were encountered: