From ff2cbe7e2d40197e28302777df8fe8f0a076a798 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 6 Dec 2022 16:09:52 +0100 Subject: [PATCH] mail: Rename mailbox syncing script Renamed script to sync local mbox directory with remote from `mail-check` to `sync-mail`. Changed necessary integrations accordingly (neomutt and system service). --- mail/.config/neomutt/maps | 4 ++-- mail/.local/bin/{mail-check => sync-mail} | 0 services/.config/systemd/user/mbsync.service | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) rename mail/.local/bin/{mail-check => sync-mail} (100%) diff --git a/mail/.config/neomutt/maps b/mail/.config/neomutt/maps index fee8617..6d0e3a8 100644 --- a/mail/.config/neomutt/maps +++ b/mail/.config/neomutt/maps @@ -53,8 +53,8 @@ bind index,pager R group-reply macro index,pager \CU "|urlview" "call urlview to open links" # Refresh far imap email -macro index O "export MBSYNC_PRE=true; mail-check" "refresh all e-mail" -macro index o "export MBSYNC_PRE=true; mail-check gmail-inbox" "refresh inbox e-mail" +macro index O "export MBSYNC_PRE=true; sync-mail" "refresh all e-mail" +macro index o "export MBSYNC_PRE=true; sync-mail gmail-inbox" "refresh inbox e-mail" # Saner copy/move dialogs macro index C "?" "copy a message to a mailbox" diff --git a/mail/.local/bin/mail-check b/mail/.local/bin/sync-mail similarity index 100% rename from mail/.local/bin/mail-check rename to mail/.local/bin/sync-mail diff --git a/services/.config/systemd/user/mbsync.service b/services/.config/systemd/user/mbsync.service index 8c6546b..f5d5c3b 100644 --- a/services/.config/systemd/user/mbsync.service +++ b/services/.config/systemd/user/mbsync.service @@ -5,4 +5,5 @@ After=network.target network-online.target dbus.socket gpg-agent.socket [Service] Type=oneshot -ExecStart=/home/marty/.local/bin/mail-check +# workaround to allow relative executable invocation (i.e. current users' home dir) +ExecStart=/bin/bash -c '%h/.local/bin/sync-mail'