<<< Date Index >>>     <<< Thread Index >>>

multiple attachments from command line



Hi,

How can I convince mutt to proper identify the content-type when using
it in command line something like that:

echo diacritics | mutt -a iso8859.txt -a utf8.txt -s diacritics foo@bar


By doing it so, both attachments will go as iso8859-x.
The first one is iso8859 and the second is utf-8, as file
would say:

bucovina~> file iso8859.txt utf8.txt
iso8859.txt: ISO-8859 text
utf8.txt:    UTF-8 Unicode text


I have tried to play with "send_charset" but without luck:

set send_charset="us-ascii:iso-8859-2" would make both iso8859-2
set send_charset="us-ascii:UTF-8" would make both UTF-8
set send_charset="us-ascii:iso-8859-2:UTF-8" would make both iso8859-2
set send_charset="us-ascii:UTF-8:iso-8859-2" would make both UTF-8

In the second and the forth case the text itself is converted, such
the iso8859.txt containing ISO-8859 text is transformed in UTF-8 and
the utf8.txt containing UTF-8 is changed into garbage (the eight bit
components of the UTF-8 character are all converted to UTF-8, except
to command characters).

Maye I don't understand the way mutt is handeling the charset
convertion (why it dowes need one?). I would appreciate any hint, even
a rtfm, which I did, btw. 

Thank you for your input.

Ionel