diff options
| author | Robert Günzler <r@gnzler.io> | 2023-01-17 00:41:31 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2023-01-17 00:41:31 +0100 |
| commit | 651a2956646c5baf94d3efbc1ab02c1acbeaf9b0 (patch) | |
| tree | 2060386abb98e5e4b62d47d9c01c39a57007aeaf /bin | |
| parent | 97ebc9060926407e8332b9e6a2ae0a259d914aca (diff) | |
bin/mailsync: use standalone clear-notification script
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/mailsync | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 0fcb43b..75a7376 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -125,11 +125,12 @@ run_sync() { # persistent notification id=$(notifysend "${acct}: fetching new mail..." "running mbsync" -i "$(iconez -sn email-sync-outline)" --print-id --expire-time=0) + trap '{ clear-notification "$id"; }' EXIT mbsync_args= [ -n "${verbose}" ] && mbsync_args="--verbose" mbsync $mbsync_args --config="$HOME/.config/mbsyncrc" "$acct" - clear-notification "$id" + # create cachefile touch "${cachefile}.${acct}" |