X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=bookworm%2Fhome_files%2Fuser%2Fmail_sync.sh;h=ffe6b4abdf1937aae830904fde93398fb709ad7c;hb=dca680417add4b592da91877e382337b09a0bd09;hp=7d96256fe9bb8a26075511b5a5b154f7bc15b92b;hpb=d7a6ade847683fb0879365e857776f5d1de6d788;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}"