Coder Social home page Coder Social logo

Comments (11)

camann9 avatar camann9 commented on June 1, 2024

SearchKey contains a list of unimplemented search keys. We have to add them to the SearchTermBuilder

from greenmail.

buildscientist avatar buildscientist commented on June 1, 2024

This looks to be related to this http://sourceforge.net/p/greenmail/bugs/4/

from greenmail.

camann9 avatar camann9 commented on June 1, 2024

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.

camann9 avatar camann9 commented on June 1, 2024

@buildmaster Do you want to take this one? Probably it's pretty straightforward except for the logical operations (and/or)

from greenmail.

buildmaster avatar buildmaster commented on June 1, 2024

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.

buildscientist avatar buildscientist commented on June 1, 2024

@buildmaster yes that's correct :)

@camann9 ok I'll see what I can do

from greenmail.

buildscientist avatar buildscientist commented on June 1, 2024

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.

camann9 avatar camann9 commented on June 1, 2024

Ok, Thanks :-) . Only do this if you feel like it, otherwise I'm gonna do it when I come back :-)

from greenmail.

buildscientist avatar buildscientist commented on June 1, 2024

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.

camann9 avatar camann9 commented on June 1, 2024

Ok

from greenmail.

marcelmay avatar marcelmay commented on June 1, 2024

All related issues closed => completed!

from greenmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.