X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=bookworm%2Fhome_files%2Fuser%2Fmail_sync.sh;h=ffe6b4abdf1937aae830904fde93398fb709ad7c;hb=aebbb73738fd2a46c540497a32c1db0fb05defca;hp=7d96256fe9bb8a26075511b5a5b154f7bc15b92b;hpb=0c72ea778890a63b1d6b2302c94f8f840fca07e8;p=config
diff --git a/bookworm/home_files/user/mail_sync.sh b/bookworm/home_files/user/mail_sync.sh
index 7d96256..ffe6b4a 100755
--- a/bookworm/home_files/user/mail_sync.sh
+++ b/bookworm/home_files/user/mail_sync.sh
@@ -22,11 +22,8 @@ for tag in $(notmuch search --output=tags '*'); do
fi
target_dir="${basedir}"$(echo "${tag}" | cut -c5-)"/cur/"
for f in $(notmuch search --output=files tag:"${tag}"); do
- echo DEBUG0 $f
new_name=$(basename "${f}" | sed -e 's/,U=[0-9]*//')
- echo DEBUG0 $new_name
target_path="${target_dir}${new_name}"
- echo DEBUG0 $target_path
if [ ! "${target_path}" = "${f}" ]; then
echo "Moving ${f} to ${target_path}."
mv "${f}" "${target_path}"