i have another UTF-8 problem. I use
munpack -C $extrdir $file to automatically extract JPG files from emails that i received with
fetchmail. Afterwards I use
imagemagick to process images that i can get with
find -iname "*.jpg*" -o -iname "*.jpeg*" -o -iname "*.JPEG*" -o -iname "*.JPG*". This works fine for most images, as long as no spaces or special characters are added to the filename.
In the email sourcecode the filename is written as
Content-Disposition: attachment; filename="=?UTF-8?B?V2FuZGVydW5nIFNwaWVsd2VnIDIuSlBH?="
munpack save the file as
I could add
find, but then other types of attachements like txt-files might be processed by
imagemagick as well.
munpack also replaces "?" with "X" that is why I can not decode the filenames.
Do you have a solution for this problem?
Thanks in advance!