AutoYADM commit: 2025-03-17 18:15:15
This commit is contained in:
parent
2ea4f8a896
commit
94b3b6e701
3 changed files with 33 additions and 6 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/env bash
|
||||
|
||||
echo "Hello, World!"
|
30
.config/mail/mail-sync.sh##hostname.dpad
Executable file
30
.config/mail/mail-sync.sh##hostname.dpad
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
PIPE="/tmp/email_refresh_pipe"
|
||||
|
||||
# Create pipe if doesn't exist
|
||||
[ -p "$PIPE" ] || mkfifo "$PIPE"
|
||||
|
||||
MBSYNC=$(pgrep mbsync)
|
||||
NOTMUCH=$(pgrep notmuch)
|
||||
MUCHSYNC=$(pgrep muchsync)
|
||||
|
||||
if [ -n "$MBSYNC" -o -n "$NOTMUCH" -o -n "$MUCHSYNC" ]; then
|
||||
echo "Already running one instance of mbsync or notmuch or muchsync. Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# echo "Deleting messages tagged as *deleted*"
|
||||
# notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm -v
|
||||
|
||||
# sync mailbox with external servers
|
||||
mbsync -Va
|
||||
muchsync dbox
|
||||
# apply tag:new to new mail
|
||||
notmuch new
|
||||
# new mail tagging pipeline
|
||||
afew --tag --new
|
||||
# signal waybar indicator update
|
||||
echo "refresh" > "$PIPE"
|
||||
# generate new ranked addressbook
|
||||
maildir-rank-addr
|
|
@ -1,9 +1,9 @@
|
|||
Videos /home/fic/Videos v
|
||||
Videos /home/fic/Videos/ v
|
||||
SyncDocuments /home/fic/SyncDocuments s
|
||||
Videos /home/fic/Videos v
|
||||
SyncDocuments /home/fic/SyncDocuments/ s
|
||||
Pictures /home/fic/Pictures p
|
||||
SyncDocuments /home/fic/SyncDocuments s
|
||||
Pictures /home/fic/Pictures/ p
|
||||
Pictures /home/fic/Pictures p
|
||||
Downloads /home/fic/Downloads D
|
||||
Downloads /home/fic/Downloads/ D
|
||||
Documents /home/fic/Documents d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue