-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Open first unread mailbox, otherwise any mailbox #4199
Labels
type:question
Question
Comments
Hi @dorsiflexion, that definitely sounds useful. I'm not aware of a way to do that in NeoMutt at the moment. I see two ways to build this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can one start neomutt in such a way, that it opens a mailbox with unread mail on start, and when there is no unread mail it opens any (or even better: a specified) mailbox?
I know of
-Z
that opens a mailbox with unread mail. But with this option, neomutt immediately exits when there is no new mail.-Zf "/some/mailbox"
doesn't work either.startup-hook 'exec next-unread-mailbox'
doesn't work, probably because it's too early when this hook is executed.A workaround is
sh -c 'neomutt -Z || neomutt -f "/some/mailbox"'
. But this calls neomutt twice, which will definitely and unnecessarily do some stuff twice, and it also forces one to start a shell, which is also unnecessary, making it pretty ugly.The text was updated successfully, but these errors were encountered: