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

Request: Always show latest mail #394

Closed
mahemoff opened this issue Apr 15, 2019 · 5 comments
Closed

Request: Always show latest mail #394

mahemoff opened this issue Apr 15, 2019 · 5 comments

Comments

@mahemoff
Copy link

It would be extremely useful if MailCatcher kept the browser synchronized with latest mail that's been received.

Is there any way to do this? If not, please consider it a request for a new option/action to always show latest. Then you can just keep the page open and don't have to interact with it to preview changes.

@her
Copy link

her commented Apr 29, 2019

@mahemoff what do you mean latest mail that's been received?

Current behavior for me on macOS in Safari is that new mail is received without having to refresh the browser.

@sj26
Copy link
Owner

sj26 commented Apr 29, 2019

I think you mean a “follow” mode, to always select and render the latest mail when it is received as well as displaying it in the list? I like the idea, but implementation is going to be finicky. I’d really like to rewrite the mail catcher frontend to make it more resilient and make features like this easier.

@mahemoff
Copy link
Author

@sj26 Yes, that's it, while the list of mails may be updated automatically, a browser interaction is still needed to select and render the latest mail. Looking at mailcatcher.js, maybe it could be implemented just after addMessage in the websocket callback, ie simply a one-liner to switch to that message if a certain param is present in the URL.

@sj26
Copy link
Owner

sj26 commented Apr 29, 2019

and a button to turn the behavior on/off, somewhere to store whether the behavior is on, an arg to start with that behavior, sensible auto-disable behavior (like selecting another message should probably disable follow) etc.

@sj26
Copy link
Owner

sj26 commented Feb 22, 2021

This is a duplicate of #266, please track there.

@sj26 sj26 closed this as completed Feb 22, 2021
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

3 participants