Comments (11)
SearchKey contains a list of unimplemented search keys. We have to add them to the SearchTermBuilder
from greenmail.
This looks to be related to this http://sourceforge.net/p/greenmail/bugs/4/
from greenmail.
It actually is. At some point Marcel implemented search for flags and I recently added support for recipient and sender search. But some other fields can still not be searched. This is going to be included in 1.4.0 as soon as Marcel releases it.
There is also a unit test for this that can be extended as needed to cover additional cases.
from greenmail.
@buildmaster Do you want to take this one? Probably it's pretty straightforward except for the logical operations (and/or)
from greenmail.
presume that wasn't meant to bring me into the discussion on a repo I know nothing about. @buildscientist I'm presuming that last one was for you.
from greenmail.
@buildmaster yes that's correct :)
@camann9 ok I'll see what I can do
from greenmail.
Looks like these are the search fields we currently do NOT support:
- Before
- Body
- Larger
- Not
- On
- Or
- SentBefore
- SentOn
- SentSince
- Since
- Smaller
- Subject
- Text
- Uid
These were pulled from the TODO comments in SearchKey. I'll cross-reference RFC3501 Section 6.4.4 to verify we're implementing all specified fields.
Most of the work is going to be in SearchTermBuilder and SearchKey (updating that enum). I might look into refactoring ImapSearchTest. Looks like all of the search field related tests are in ImapSearchTest.testSearch().
from greenmail.
Ok, Thanks :-) . Only do this if you feel like it, otherwise I'm gonna do it when I come back :-)
from greenmail.
Do the date specific search attributes belong in SearchTermBuilder? It's not quite clear to me how we would implement date specific search attributes.
It's not clear to me why anyone would want to do a server side search of email attributes. I'm guessing IMAP is implemented as such because before broadband - downloading headers for all messages in a mailbox was fairly time consuming.
I'll leave this to @camann9 to implement as I'm somewhat confused about how to implement some of these search attributes.
from greenmail.
Ok
from greenmail.
All related issues closed => completed!
from greenmail.
Related Issues (20)
- `\*` is not a valid IMAP `flag` HOT 4
- Bump spring.version from 5.3.25 to 5.3.31
- Backport: SearchCommandParser$SearchOperator cannot be cast to j.m.search.SearchTerm
- Backport: Support RFC5233 subaddress handling
- Backport: Preload email files during greenmail start
- Backport: Support configuring key password for custom TLS certificate
- Update container base image to azul/zulu-openjdk:8u392-jre
- Update jetty to 9.4.53.v20231009
- Update jersey to 2.41
- Update junit to 5.10.1
- Update easymock to 5.2.0
- Update spring.version to 5.3.31
- Update com.sun.activation:jakarta.activation to 1.2.2
- Support building using JDK 21
- greenmail-2.1.0 version release timeline HOT 2
- Extend standalone runner RESTful API for basic message listing
- Provide detailed error message when attempting to create user of existing email or login
- Mails with multiple recipients HOT 1
- OpenAPI UI is missing 'Get the messages for given user and folder' operation if started as Docker image with '2.0.1' tag HOT 1
- Do not preload hidden files and files in hidden folders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greenmail.