From ac6d6138c0e00bc7d4aea4b515df9d5f858e37eb Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 9 Aug 2022 22:09:19 -0700 Subject: run athena movemymail when seeking messages that have just arrived For its imap-dl(1) runs. --- .emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 84edfe16..7dacb90d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2768,7 +2768,10 @@ mutt's review view, after exiting EDITOR." ;; time we call 'notmuch new' without --no-hooks from Emacs rather than ;; just waiting for cron, because it's slow. (unless (gnus-alive-p) (gnus)) - (with-temp-message "Fetching & indexing mail ..." + (unless (spw/on-host-p "athena.silentflame.com") + (with-temp-message "Fetching from all accounts on athena ..." + (call-process "ssh" nil nil nil "athena" "movemymail"))) + (with-temp-message "Fetching & indexing mail locally ..." (call-process "notmuch" nil nil nil "new")) (if (not (get-buffer "*Summary nnselect:Process-Weekday*")) (gnus-group-read-group nil t "nnselect:Process-Weekday") -- cgit v1.2.3