Scroll to navigation

MIMELANG(1) General Commands Manual MIMELANG(1)

NAME

Mimelang - handle UTF-8 encoded subjects of e.g. e-mails from standard input

SYNOPSIS

mimelang [-v] [-V[u][a]]

DESCRIPTION

The small tool mimelang can be used to decode e-mail UTF-8 subjects which are mimencoded in base64 or as quoted-printable.

OPTIONS

be verbose and report the type of UTF-8 multi-byte characters.
be very verbose and report the unicode point of each UTF-8 multi-byte character as well as the character its self. If the option -V is followed by the argument u then also the unicode block description is shown. If the option is followed by the argument a then also all normal ASCII and single byte Latin characters are shown if detected.

EXAMPLE

On the command line:


echo '=?UTF-8?Q?=E3=81=93=E3=82=93=E3=81=AB=E3=81=A1=E3=81=AF?=' | mimelang -vVu
U+3053 こ Hiragana
U+3093 ん Hiragana
U+306b に Hiragana
U+3061 ち Hiragana
U+306f は Hiragana
UTF-8 string none europe

and within a ~/.procmailrc file:


:0
* ^From:.*.(jp|cn)
* ^Subject: +=utf-8[BQ].*


{


SUBJECT="`formail -czx Subject:|mimelang -v`"


:0
* $ SUBJECT ?? ^^UTF-8 string none europe
cannotreadthat


}

SEE ALSO

utf-8(7), unicode(7), base64(7), mimencode(1).

COPYRIGHT

2021 Werner Fink, 2021 SUSE Software Solutions Germany GmbH.

AUTHOR

Werner Fink <werner@suse.de>

July 21, 2021 3rd Berkeley Distribution