NAME

cyr-mail-filter.pl v1.03 - Cyrillic Mail Filter to convert email across cyrillic charsets


DESCRIPTION

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:


SYNOPSIS

cyr-mail-filter.pl [-s] -f[<charset>] -t<charset>


OPTIONS

-s

Always transliterate subject

-f{AUTO,WIN,KOI8,ISO}

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.

-t{VOL,WIN,KOI8,ISO}

Convert text _T_o charset, where charset is one of WIN, KOI8, ISO or VOL (e.g. volapuk or translit).


EXAMPLES

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"


PREREQUISITES

This script requires the MIME, Mail, Convert::Cyrillic and HTTP::Headers::UserAgent modules available from CPAN or at http://www.neystadt.org/cyrillic/.

any