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
shutdown-hook does not execute sync-mailbox (possible bug) #4184
Comments
Ok. I think I did manage to run both commands, by either doing:
or
However it still seems to not be working as expected... The sync-script (that is just a call to mbsync) detects no changes, so read emails are not updated, as if How could I fix it? |
In fact it seems that I'm trying to do something very similar. It doesn't even seem to be a race condition, because when doing
it is still not updated when the script runs. Btw. neomutt updates mailboxes when it quits. So if you are closing, opening, closing and it works, that is no indication that the hook actually did something. I'd also greatly appreciate some advice on what's wrong here. |
Yes, I also tried using I ended up rebinding the exit key ( |
Hi, to clarify: the My wild guess is that |
Exactly. If I do something like:
I'm getting the notification. It's just that |
I had a deeper look and the problem doesn't seem to be related to
and some additional logging I get:
Notice how the I'll see if I can find some changes related to that next. |
Quick update here: we have a, not to ugly, PR that fixes the issue that However the behavior is confusing because the command queue is only triggered after the complete hook is parsed. Fixing this would be a way bigger change. I suggest something like |
Hello, I'm trying to run multiple commands with a single hook. This sounds simple enough, but I was not able to do it nor find any information about online.
My ideia is to use
shutdown-hook
to first save changes with<sync-mailbox>
and then run a shell script that synchronises the maildir itself. I am able to easily do each alone, writing eithershutdown-hook 'exec sync-mailbox'
orshutdown-hook 'echo `sync-script.sh`'
. However, I was not able to run both, firstsync-mailbox
and then the script.Is there a way that I could do that? Thanks.
The text was updated successfully, but these errors were encountered: