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

POP3 responses do not update when mail is added #143

Open
andystroz opened this issue Aug 7, 2019 · 5 comments
Open

POP3 responses do not update when mail is added #143

andystroz opened this issue Aug 7, 2019 · 5 comments

Comments

@andystroz
Copy link

Hello! First off, great project!

I am running your project from the latest docker container and I am running into an issue where the POP3 mailbox is returning the same thing for STAT and other commands after the client is connected when called multiple times after adding items to the mailbox.

If I disconnect and reset my connection the correct items and number of messages appear.

Cheers, Andrew

@andystroz
Copy link
Author

andystroz commented Aug 7, 2019

This function call loads the messages but only happens during at the end of the auth state but should happen when requesting anything regarding message data. A good place for this would be at the beginning of the transaction handler.

@jhillyerd
Copy link
Collaborator

jhillyerd commented Aug 8, 2019

My memory is fuzzy, but I think the reason for this is that Inbucket needs to track which messages were deleted by the POP client, to save at the end of the session. I'm sure it could be redesigned to handled in a different way.

The clients I used during development did not keep the POP3 session open; they would connect, sync and disconnect.

@andystroz
Copy link
Author

Ah ok, I ended up implementing it this way. Have you considered adding support for IMAP?

@jhillyerd
Copy link
Collaborator

I looked at both POP and IMAP at the same time, but IMAP would have been a much larger project.

I'm pretty sure this is the first time anyone has even mentioned using the POP3 support to me, I don't think it's a popular feature; don't think I could justify the time investment for IMAP.

@andystroz
Copy link
Author

Ended up switching to use the REST API which works for what I am using it for

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

No branches or pull requests

2 participants