瀏覽代碼

Delete email marked for deletion when syncing

Colin Powell 5 年之前
父節點
當前提交
b77d5e4786
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      systemd/.config/systemd/user/syncmail.sh

+ 2 - 0
systemd/.config/systemd/user/syncmail.sh

@@ -4,6 +4,8 @@ STATE=`nmcli networking connectivity`
 
 if [ $STATE = 'full' ]
 then
+        notmuch search --output=files tag:deleted | xargs -l rm	
+	notmuch new
 	muchsync rhea.unbl.ink
 	exit 0
 fi