Closed maxandersen closed 4 years ago
Speaking out loud w/o looking at the code, Jodd email should not perform any additional logic to underlying mail
library. I will check whats going on.
How did you measure the amount of data?
As said, Jodd is just passing the flag to the implementation:
Current behavior
when doing:
var mails = session.receive().filter( EmailFilter.filter().flag(Flag.SEEN, false)) .envelopeOnly() .get();
the amount of data fetched is much larger than when doing:
Expected behavior
there should be a way to fetch just the minimum data to make initial searches faster.
...i'm wondering if jodd email assumes you will always be interested in all data ?