cyr-mail-filter.pl v1.03 - Cyrillic Mail Filter to convert email across cyrillic charsets
Copyright (c) 1998 John Neystadt (http://www.neystadt.org/cyrillic/). Filters email messages and converts the content across cyrillic charsets accrodingly to specified options.
This script addresses the following problems of cyrillization:
Some people can not read cyrillic and need to get mail transliterated.
Most mail software does not sets correctly the Content-Type tag in headers.
Many mail readers can't handle cyrillic in Subject field.
cyr-mail-filter.pl [-s] -f[<charset>] -t<charset>
Always transliterate subject
If _F_rom charset is not specified, will use charset from 'Content-Type' header for conversions. Otherwise will ignore the header. AUTO will detect the charset automatically from email body. WIN, KOI8 or ISO will enforce the source charset accordingly.
Convert text _T_o charset, where charset is one of WIN, KOI8, ISO or VOL (e.g. volapuk or translit).
On UNIX to create mail account to-win, which automatically translates all incoming mail, you can use the following:
to-win: "|./cyr-mail-filter.pl -fAUTO -tWIN -s | resend my-email@jopa.org"
Good use also is to create majordomo mailing list that auto-transliterates all incoming mail:
ksp-lat: "|/usr/lib/majordomo/wrapper ./cyr-mail-filter.pl -fAUTO -tVOL -s | ./resend -l ksp-lat ksp-lat-resend"
This script requires the MIME
, Mail
, Convert::Cyrillic
and HTTP::Headers::UserAgent
modules available from CPAN or at http://www.neystadt.org/cyrillic/.
any