home · contact · privacy
WIP.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 11 Aug 2019 22:35:56 +0000 (00:35 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 11 Aug 2019 22:35:56 +0000 (00:35 +0200)
buster/home_files/user/.tridactylrc
buster/home_files/user/mail_sync.sh

index c46948ae7cb68c4d3ae4e9f98795af27b21414ef..631e25ac5fbb42c495f0f0e933a5d385c1d1a76d 100644 (file)
@@ -1,2 +1,3 @@
-guiset statuspanel top-left
+guiset statuspanel top-right
 set newtab file:///opt/firefox/blank.html
+autocmd DocStart www.reddit.com urlmodify -t www old
index 0837390302a4b9d05e55f5bfae163b74969a56be..6962800090262de68539f10101f4fc36f6d62298 100755 (executable)
@@ -1,9 +1,21 @@
 #!/bin/sh
 set -e
 
+basedir="/home/plom/mail/maildir/"
+# Ensure directories exist for all "dir:*" tags.
+for tag in $(notmuch search --output=tags '*'); do
+    if [ ! $(echo "${tag}" | cut -c-4) = "dir:" ]; then
+        continue
+    fi
+    target_dir="${basedir}"$(echo "${tag}" | cut -c5-)"/cur/"
+    if [ ! -d "${target_dir}" ]; then
+        echo "Directory ${target_dir} does not exist."
+        exit 1
+    fi
+done
+
 # Ensure all "dir:*"-tagged mails are in proper directories,
 # remove all "dir:*" tags.
-basedir="/home/plom/mail/maildir/"
 for tag in $(notmuch search --output=tags '*'); do
     if [ ! $(echo "${tag}" | cut -c-4) = "dir:" ]; then
         continue