Saving attachments from multiple messages when filenames are non-natively encoded

"Nickolai Dobrynin" <[email protected]> Thu, 12 Feb 2026 03:04:28 +0100
Newsgroups gmane.mail.mutt.user
Message-ID <87bjhupvir.fsf@qUsTRXiEQl2mqe0RhRTCBvdMK1NPDFYUhwG8H6ChHv1t8DocVciblLlLbOcY.dobrynin.net>
I know, this is an old subject: one way to save all attachments in multiple
messages is through a macro that invokes ripmime. This macro should be
applied to the tagged messages via ';'.

This works fine, as long as the filenames use the native encoding of
your operating system. But what if this is not the case? My native
encoding, for example, is utf-8, but people send me files whose names use
iso-8859-1. ripmime makes no attempt to transcode the filenames, and by
the time the file is extracted, the encoding information is lost, and the
filename contains gibberish.

How can I avoid this? This problem does not occur if I use the built-in
saving feature instead.


Many thanks.