Skip to content
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

Ability to use mox over bidirectional stream: 2024: mox world’s only functional Go IMAP4rev2 server #119

Open
haraldrudell opened this issue Jan 27, 2024 · 1 comment

Comments

@haraldrudell
Copy link

With few changes mox imapserver package can be used over a bidirectional socket io.ReadWriteCloser

  • temporary or separate file-system storage
  • configurable logging
  • ability to disable timeouts enabling single-step debugging
  • bypassing network stack
  • integration-testing against mox IMAP service endpoint instance
@mjl-
Copy link
Owner

mjl- commented Feb 8, 2024

Sorry for the late reply, was busy on other work, then at FOSDEM.

Indeed, an IMAP server could be spun up relatively easily on a socket. That's also how the internal tests work. I'm wondering: What kind of use cases do you have in mind? Testing Go client code against the mox server? At least that seems like an understandable and reasonable use-case.

I suppose it could be almost enough to export the serve and limitersInit functions. mlog.LogModel could be added separately too. Then the imaptemp package could be implemented externally, it feels niche enough for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants