My mail fetching script kills mu before calling "mu index", like so :
$ pgrep mu && kill `pgrep mu`
$ mu index
It works perfectly. Mu4e then restarts mu when it needs it.
I think I saw that as the recommended setup somewhere in the mu docs.
$ pgrep mu && kill `pgrep mu`
$ mu index
It works perfectly. Mu4e then restarts mu when it needs it.
I think I saw that as the recommended setup somewhere in the mu docs.
`pkill -x mu` matches the whole name without substrings.
This could be rewritten as:
$ pkill mu