commit dc3aa43ea6bc7a4b2fe61d87fc1b70578309e23c
parent 4a0b5fc42404e70c676aab24b44815ad8ebc7763
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 15 Jul 2023 21:21:18 +0200
Fix imageopener file names for mailcap.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/openers/imageopener b/openers/imageopener
@@ -3,11 +3,11 @@
mkdir -p $HOME/tmp/imagecache
cd $HOME/tmp/imagecache
-file=$(basename "$1")
+file=$(basename "$1" | tr '*&,=' '___')
-curl -s \
+curl \
--user-agent "Lynx/2.8.8dev.3 libwww-FM/2.14 SSL-MM/1.4.1" \
- -Lkz "$file" -O "$1"
+ -Lk -o "$file" "$1"
$PLUMB_IMAGE "${file}"