Just realized I replied to Manos directly instead of via the list.
Sounds good!
I was able to get melib to lazy load messages in my patches, but I was not able to lazy load attachments too.
I would be happy to help out with some integration tests, either with green mail or some other tool.
Andrei
> On 18. May 2023, at 23:23, Manos Pitsidianakis <manos@pitsidianak.is> wrote:
>
>
> With the "wisdom" accrued over the years, I feel it's time to completely rewrite the IMAP backend. We now have features I didn't have back when I started it: better parsers, async, better testing and new IMAP servers.
>
> This crate by @duesee is the most potential candidate for the rewrite: <https://github.com/duesee/imap-codec>. Usually I implement stuff myself but it'd never reach `imap-codec`'s level.
>
> The motivations for the rewrite are:
>
> - unit test EVERYTHING
> - redesign backend to lazily load messages instead of entire mailboxes; therefore improving performance.
> - increase compatibility with more IMAP server implementations.
>
> I'd like to hear your thoughts, if there are any.
>
> - epilys