������� | ������������ | ����� | ������ | ��������
���� | ��������� | ������ | �������� ����� | �����
������� << ������  << �����  << ���

������ �������� ([email protected])

������������ ��������� ���� � EXMH.



��������� ����� ����������� EXMH

EXMH -

freeware �������� � ��������� ����������� ���������� ��� �������, ��������� �� �������� ���������� �����, � ���������� ��� ������ � ���������� X Window ����������� ������ �����. �����, � �������� ������ - �� MUA (Mail User Agent). �� ������ ��� ������ ���� �������� ������ "������������� �������� ���������� �����", ������� ������� �� "�������������". ����� ����� �� ������ �������� �� �� �������� "�������� ���������� �����" (MTA - Mail Transport Agent ����������), ������� ��� � sendmail.

������� ���������� ����������� �� �������� MIME (Multipurpose Internet Mail Extentions), EXMH ����� ���� ���� ������������� �� ������� ����� ���������� �����.


�� ������� ��� ������ EXMH:

������� ��� ������� �� �������� ���������� ���������� ����� EXMH ����������� ������� Rand Messaging MH, �� ��������, �� ��� ������ EXMH ������� ����� ������������ ������������ ����� ������.

����� ����� ������������ ������� ���������� ����������� (��� ������� ����� ��������� ����� ���). ��� ������� ����� ��������� � ������������ ������ � ����� uuencoded, base64, quoted-printable, ����, ������� ���������� ����� ����� metamail.


MIME �������� ��� ���������� �����

��������� - ����� ����. ҳ, ��� ���, �� ������ MIME, ������ ���������� ����� ������� � ������ ��������� � ������������.

�������� ������� ���������� ����� ��������� ����� � ���������� ����� � ������������� 7 ������ ������ ��� �������� ��� ����������. �� ������ ��� ����� ���� ���������. ϳ����� ���������, �� 7 ��� ����������� ��� ����, ��� �������� ��� �� ���. 7 ��� ����� ����� 128 �������� ����. ����� ���������� ������� �� 8 ��� (����� ������ �����) �� ������� ������� ���� �������� - ���� ��� ������ ����� ����� - 256.

�'������ �������� MIME. ³� �� ��������� ��� ������� �������� ����� �������, ���� ���� ����� (� ������� ���� ������� ��������) ����� ��������. MIME �������� �� ���� ������ ����� �������� �����, �����, �� �������� ��������� ����� �� ����������� ����, ������� � �.�. ��� ��� �� �������� ���� ��� ������ �����������.

���� ����������� (���� ���� � �������� 8 �������� - ����� 8� �� � ��� ������) ����������� � ������������ ����� �� ������� ������. ������ � ����, �� ���� ������� ���������� ����� "�������" 8-� �� ��� ��������. ���� ���� ������������� ������ ��� ����� 8� �� � �� ����� �������� ����� ������������. ³������, �� �� ����������� �� �� ������ �������� � ������������� � �� ���� ������� ��� �������������� �� ��������������. ������ ������� (�������� � ��� ������, �� ������� ������������� 8-�� ������ �������) ���������� ����� �����, �� ���� ����������� ����������� �����, �� ����� �� ��������, ���� ���� 8 ����, �� ������������ �����, �� ����� �� ��������, ���� �� ����� ����������. ���� �� ������ ����� � �� �����, �� ����, ���� ������� �� ��� ������� ����� ������������� �� ����� �����. ��� �� ����� �������� ����� �������� ���������� �� ��������� ����� (������� � ��� �� ������ ���� "X-mime-autoconverted:..." )

������������� �������� ���������� �����, ��� ������� �������� MIME, ��� �������� ����� �������� � ���� ����� ���������� ���������, �� �������� ��� ��, � ��� ���� ������ ������� �������� �����. ���, ���������, �� ���������� ��������� �����, ����� � �������� ��� ��� � ������ ������� Windows-1251:

Return-path: [email protected]
Return-path: 
Received: from sophy.sakae (localhost [127.0.0.1])
	by sophy.sakae.com (8.8.7/8.8.7) with ESMTP id UAA13213
	for ; Thu, 22 Apr 1999 20:35:45 +0900
Message-id: <[email protected]>
X-mailer: exmh version 2.0.3
Mime-version: 1.0
Content-type: text/plain ; charset = windows-1251
Content-transfer-encoding: 8bit
X-mime-autoconverted: from quoted-printable to 8bit by sophy.sakae.com id UAA13213 

� ��� ���������� ��� ���� �� �������� ����� ����� "Content-type:..." � ����� ����� ������� ��� �����������: text/plain, ����� ��������� ����� � ������ ������� ����� ������ - windows-1251.

�� �����, ������, � ���������� �����. ��� EXMH ��� ���������� ���� ����� � ��������� ������ �������, ���� (����� EXMH) ����� ����� ������� - ������� ����� ������� ����� �������� � ���� ������������ EXMH � �������, ���� ���� ������� ��� ��� ������ ������� �������������.

��� ��� ���� ����� ������������� ���� � �� ����� � ��������� ������� �����. �� ������� � ��� �������� ���������� �����, �� �� ���������� MIME, ��� �� �� ����, �� ���������� MIME, ��� ���������� ������ ���������� ��������� � �����. ���������, ������ "windows-1251" � ��� ����� ����� ����������� ������ ������ ����������������� "cp1251" (�� ������ �� ��� ��� ����, ��� ������ ������� - Code Page). ���� �������� ������ ����� ����������� � ������� �� �������� ������ ��������� �������� ����� ������������ ��� EXMH. ��� �� ��������, �� �� �������.

ó���, ���� �� �������� �����, �������� � ����� ������ �������, ��� � ���������� ����� �������, �� ���� �������� � �����. (���������, �� �������� "iso-8859-1" ������ "1251".) ��� ���� �������� ���������� �������� ����, ��� ����, �� ��������� �����������, � ���� �� ������������ ������ ������������ �� �������, � �����, ���� �� ��� ���� ������ � ����� �� ������, �� ���������� ���������� ���� ������������. ���� � ��, ��� ���������� ��� �� ����������� 䳿, � ������ ����� EXMH � ��������� � ����� ���������� ������������. �����, � ������ �������, ������� EXMH �� �����������, �� ������� � ������ ������� "iso-8859-1" ���������� �������� ������ ������� "windows-1251".

�� (���!) �� ������ ��������� � ��������, ���� ���� ���� ���������� ������������ ������ �������� ���������, ��������� "koi8-u" �� "windows-1251", ��� � ���������� � ��� ������� ��� ��-� "iso-8859-1", ��� ��������� �������. ³��� ��� - �� ��������� �� ������ ��� �����. ������ � ���� �������� ����. �� ������.

���, �� ������� �������� ���������� �������� ( ����������-�������� ����������� ��������) � ���������� �� ���������, ������������� ����� ������� (���������� �������� ���������� �����?). ����� �� ������. ���������� ��������� ������������ EXMH.


������������ EXMH

������������ EXMH � ��� �����

  1. �� ��������� ���� ������������, ����������� � EXMH;
  2. ������������ ����� ������������ EXMH .exmh-defaults, �� ����������� � �������� �������� ������� �����������.

������ � ���� ������� �������� ��� �������������� �����������, ��� �� �� ������� �������� ��� ��������� ��������. �������� �� ��������� ������������ MIME. ���� ���� ����� �������� ������������ ����� �����, �������� ������ ������� ��������, ��������� �������� ����.

1. ������������ �� ��������� ���� ������������

����������, �� EXMH ��������� ���������� MIME

��� ��������� ������������ EXMH ����� ����������� (��������) MIME. EXMH Preference Window

  • �� �������� � ���� ������������ EXMH. � ��������� ���� �������� ��������� ������ Prefernces. �� ������� �� ����� ���� ���� � ���������� ������ � ����� ��������� ������ MIME � ����� ���� � � ������ ���� Exmh Preferences - MIME �������� ����� 'Enable MIME Display': Enable MIME Display option
  • ϳ��� ����� EXMH ���� ���� ���������� �����, �������� � ������������� MIME, ����� ���� �� ���������� � ����������� �������� ����� �� ����, ������������ �������� �����, ����.
  • ���, ��� ������ ����� ���������� ����� ����� �� ������. ������� ���������� ��������� ������ ��� ��������� ����.

��������� ������� ������ ��� ������� ����� (�� MIME)

��� ������� EXMH ���� ���������� � �����, � ���� �� ����������� MIME-���������, ����� �������� ���� ���������� ������ (����� ������ ���������� ��� ������ ��-MIME �����). ֳ ������ ����� �������� �� �������� ������ �������. �� �������� � ���������� ���� ������������.

  • ����������� ����� �� ���� Preferences. ��������� � ����� ���� ������ Fonts. ��� ���� ������������ ���� ���� �� ����������� ������� ��� ������ ������������ � ����� ������. ������ ���������� ��� ������ ���� ������� ������ �������� ������� ����, ��� �� ����������, ���� ���� ��������� � ������ ����� �� ������ - ������� �������� �� ��������� ����� ����.

EXMH �� ��������� ������������� ���� ������ ��� ����� �������� ����. ֳ ������ ���������� ����������� "widget" - ���������� �� ���� ��� "window" �� "gadget". ���������� ���������� ����� ��� �� ���� ���� "������ �����������" (�����?). � ����� ��������� ��� ���� ������ ����������� ���� Widget..., ��� ���� � ����� �������� ����� � ���������� widget'�.

Font selection window %


��� ����, ��� ������������� ���������� ��� ������� �������� �� ���������� ����� ��� widget'�: "*Msg*Text.font" - ��� ������� ������ �����, "*Ftoc*Text.font"(Folder Table of Content) - ��� ������ ����������� ������ ���� �������� �� ���� "Subject:", ���� ���� �������� ���������� �� "*Sedit*Text.font" (Small Editor - ���������� �������� EXMH) - ��� ��������� ����� ����������.

������� �������� ����� �� ������. ���������, � ��� ������ ������������ �����: -gemini-times-bold-i-normal--10-100-75-75-p-54-koi8-u , � ������ ������� koi8-u. ϳ��� ����, �� �� ������� ����� � �������� ������, ������� � ���� "Widget..." �������� ��'���, � ����� ������� ����������������� ������� �����. �� �������� � ���� ��� ��������� ��������� ������ "Save" � ���� Preferences.

����������� ����� ������������ EXMH

������������ EXMH ��� ������� �����, ��������� � ��������� MIME, �������� �� ��������� ����������� ���� ����� ������������ (��� ���� .exmh-defaults ����������� ��������� � �������� ����������� ��� �� ������� �������).

  • ³������� ��� ���� � ������ ���������� �������� � ������� �� ������� ����� �������� �����. �� ����� �������� � ������� ������� �����, ����� ������������� �����������, �� � � ����. ϳ� ���� ������ ������������ EXMH ���������� ��� ����, ��� �� ����� � �������, �� ����� �� ������� �����. ���, ���� ���� ����� �������� ��������� ����� - EXMH ���� �� �������. ����� ����� ���������� ���� ��� ������������ EXMH � �� � ���� ������� - ��� ����� EXMH ���� ��������� ���� �����������.
    !!! MIME 
    *mimeCharsets: us-ascii iso-8859-1 iso-2022-jp
    *mimeUCharsets: koi8-u koi8-r windows-1251
    !
    *mime_us-ascii_registry:    iso8859
    *mime_us-ascii_encoding:    *
    *mime_iso-8859-1_registry:  iso8859
    *mime_iso-8859-1_encoding:  1
    *mime_i���so-8859-8_registry:  iso8859
    *mime_iso-8859-8_encoding:  8
    *mime_iso-2022-jp_registry:   jisx0208.1983
    *mime_iso-2022-jp_encoding:   *
    !!! KOI8
    *mime_koi8-u_registry:   koi8
    *mime_koi8-u_encoding:   u
    *mime_koi8-u_fixed_families:   courier 
    *mime_koi8-u_plain_families:   bookinist
    *mime_koi8-u_proportional_families:   universe 
    !!! KOI8-R
    *mime_koi8-r_fixed_families:   courier
    *mime_koi8-r_registry:   koi8
    *mime_koi8-r_encoding:   u
    *mime_koi8-r_plain_families:   bookinist
    *mime_koi8-r_proportional_families:   universe
    !!! WiNDOZE
    *mime_windows-1251_registry:   cp1251
    *mime_windows-1251_encoding:   u
    *mime_windows-1251_fixed_families:   courier
    *mime_windows-1251_plain_families:   bookinist
    *mime_windows-1251_proportional_families:   universe
    

���� .exmh-defaults ��������� � ������ �������� �� ������� ����� .Xdefaults. ���� �� �� ������ � �������� ����� �����, ��������� man X �� �� ��������. � ����� �������: �� �����, �� ����������� �� ����� ������ - ��������, ����� ��� ����� �������� �� ���� MIME ��������� ������� ������� EXMH. ������ ����� ����� ���������� ����� �������, �� ���������������� ��� ���������, ���� �������-������������ �� �������� ���� ��������. ������ ����� (*mimeUCharsets) ����� ���������� ����� ������� �����������. � ������ ������� ������� ��� �������� �������: koi8-u koi8-r windows-1251.

ϳ��� ����� ������ ��� ������ ���� ����� � �������� ������� �������. � ����: ��� ����� � ��� ��������� �����, ���� ������������� ��� ����� ������.

��� ����� ������ ������� ���������� ��� ���������: family, registry �� encoding. ����� ��� ����� ������� ����� ��������� ��� ����� �������� ������. ����� �������� (plain) ��������������� ��� ��������� ��������� ����� ��� ������������ ������������ ������������ (�� text/enriched ��� text/html). ����� �� ���� �������� (fixed �� proportional) ���������������� ��� text/enriched �� text/html ��� ������� ���� ������ ����� ��������� �� ����� ����� ������. � ����� ������� EXMH �� ���� ������������ ������� ������ � ������ ���, ���� � � ������. ���������:

*mime_koi8-u_fixed_families:   courier fixed
*mime_koi8-u_plain_families:   bookinist
*mime_koi8-u_proportional_families:   universe gemini

� ������� � ��������� ���� ������� "gemini" �� ��������� ������ "times", "koi8" �� "u" ��������. ��� ������� � ��� ������ ����� "gemini" ���� ����� � ����� ������ ������� koi8-u, � ���� �� �������� ��� MIME �����, � ���������� ��� ����� ��������, ���������� � TrueType ������ ����� �����. ������ ���������� � ������ PostScript � ����������� � X Window. ������ ������������� �� ������������ ������ � ˳���� �������� � ������ �������� �� ��� �� �������.

������, �������� � TrueType ������ ����� �����, ������� � ������ ������� ��������. ����� ��� - koi8 �� cp1251. ���� �� ������ ����� ����� �� �����, �� ������������ ���������� ��� DOS, �� ������ ��������� ���������� ������ ��� Macintosh Standard Cyrillic �� ��� ������������� ������ ������� CP-866.

���� Subject: ���������� �����

���������� � �� ���������� ���������

��������� �������� � ���� ����������� ��������� �����������, ���� �� ��������� �������� ���������. �� ������� ����� �� ������ ��������, �� ��������� "Subject" ����������� ������� ����� ��������� � �������� ����� (������ �����������) � �� ���� ����� �� ����� � ����� �� ������� ��������.

� ����� ������� ���������� ���� ������ �����, � ����, ���� ���� Subject ���������� ������ ������� (�� �� ������ ����, ���� ������� ������ ���� "�������" � ��� �� �������� �������� ����� ������ Subject'�). �������� ���������� MIME-������������ Subject ������� �� ����, �� �� �������� �� �������� ������� �����. ��� ����������� ����������� ����� �� �������� ���� �����������.

� �� ����, �� ������� MH (�� EXMH) ������������ ���� Subject, ��� ����� � ������� ����� �� �������� � ������ ���� (� ���� ³������) � ���� Subject ������� �� MIME. ������� ����� ����� ������������ ����� ����� ��������, ��� ����� � ����� �� ����.

��� ��, ���������, ������� Subject-���������, � ����� ��������� � koi8-r �������� "�����:" :

Subject: =?koi8-r?B?79TXxdQ6IA==?=

� ���� ��� ��� ��������� ���� ��������� � ����� ��������, ���� �� ������� �� ���� ���������.

�� ���� � ����, �� ������� ���, ��� MH ���� ������������ ��������� ����� � ����� ������ �������. �� ������, ��, ���� �� �������� ����� �� ��������, �� ������������ ������ �������� ���������, �� �� ������� ������ �� ����� ��� �������, ��� ��������� ����� ������ ��������� ��-������� ����� � ����� ������ �������. ���, �������� ³������ � ��� ������������ koi8-r, � ���� � ������� ��� EXMH ���� �� �� ������ �������. ���, ���� ������ � ������� �� ������ ����� �� MIME-����������� Subject'��, �� � ���� �� ����� ��������. ��� �� ��� ������� - �� ��������� ���� ����� ��������, ������� ������ ����� ������ Subject ��� �� �����.

���������� ��������

������ ����� �� ������� �������� � EXMH ����������� ������������� �� ������ EXMH, � ��������� �������� � ������ MH. ���, �������� � ����� �������� EXMH � ����������� ������ �������� scan. ��� ����, ��� scan ���� ���������� MIME-���������, ����� ���������� �� ����� ���������� �����������.

��-�����

������ ����������� ������� ���� ����������� ����, ��� �� ������ ������� ���� 8-�������;

��-�����

������� � ������ ���������� MM_CHARSET ���������� ������� ������ �������.

������

��� ���� ���������� ������, ��� ������� ���� ���������, �� ����� ����������� � ����� ������ � �������� �������� ��� ����������. ���, ���������, � ���� Sparc RedHat 5.2 ����������� ����� �������� ������, � � Mandrake 6.0 ��� PC ��� � ����������� ��������� ������ ��� koi8-u. � �����, �� RedHat 6.0 ����� �� ��������� ������.

��������� ����������� ����� ����� ����������� � ��������� /usr/share/locale (�� ��������� ����� ˳�����, ���� ������ ������� ����� ���� ��������, ������� ����� ���� ���� ������������ ˳����� ����� ����� � ����� �����).

���� �� �������� � ��� �������� ���������� � ������� uk, uk_UA, �� � ����� ������ ������ ��������� ������. ���� � �� ������ ����� ���������� � ������� ru* - �� �������� ����� ��������� �������.

��� ���������� ���� ������, ��� ���� � ��������� �������� (~/.profile, ~/.cshrc, ~/.bashrc �����) ������� ���� ����� ������� �� ������ � ���������:

LANG=uk_UA
export LANG

��� �������� �������� ������ (/bin/sh) �� ���� ��������, ���

setenv LANG uk_UA

��� csh �� ��������.

������ �������

������ ������� �������������� ������. � /bin/sh (/bin/bash) �� ����:

MM_CHARSET=koi8-r
export MM_CHARSET

, � /bin/csh (/bin/tcsh) -

setenv MM_CHARSET=koi8-r

���� ��� �� ���� �������� �������� � ���� ���� ������� ������������ (��� ���� ���� ����� ���� - �� ������ ����� ���������� �����), �� ���� ������ ������ ������� ��� �����. ��� ������� ���� ��������� EXMH ����� ������:

bash -c "(export LANG=uk_UA; export MM_CHARSET=koi8-r; exmh)&"

�������

Exsmples of Code page ���, ����� ��� ���������, ����� ������ ����� �������� ������ �������� ���������. ��� ��� ����� EXMH �� ��������� ������ �����, � ���� ����������� ���� ����� ������� � ������ � ���� � ����.

�� ������� ��������� ������ ������ EXMH, � ����� �������� ���� �� ����� ��������� (attachments). ���� � ������ �������� ������� �������� koi8-u, � ��� ��� �� ���� - �� ��������� Windows-1251. �� �����, ��������� ����� ������� �������� ��������, ��������� �������. ����� ������� ����������� �������� � ������ ������� koi8-u � �� �� MIME-���������, ����� �� �������� ����� ������� - "gemini".


��� �������� ������������: ��� �� ������� ��� ���� �����������, ��������� �� ����� (��������� �������). �� ����� 2 ���������� �������� �� attachement, ����������� �� ����� ������������. EXMH ��������� �� ����� ���, �� �������� �� ������.

To: [email protected]
Subject: ������ ������������ ����� ������� ������� � EXMH
Mime-Version: 1.0
Content-Type: multipart/mixed ;
	boundary="==_Exmh_4133381880"
Date: Mon, 26 Apr 1999 19:04:03 +0900
From: Dmytro Kovalev 

This is a multipart MIME message.

--==_Exmh_4133381880


�� - ������ ������ EXMH, � ����� �������� ���� �� ����� ���������
(attachments). ����� ������� ������ (��� �����) ��������� � ������
������� koi8-u � ��������� �� �� attachment, ��� �� ������� �������
��������� �����������.  �� ���� ������� - �������� ����� � �����
�������� ���� � �������� �� attachment. ����� ������� ��������
������� �������� koi8-u, ����� - � ������ ������� Windows-1251. ��
�����, ��������� �� ������� �������� ��������, ����������
��������.




--==_Exmh_4133381880
Content-Type: text/plain ; charset = koi8-u ; name="example_koi8.txt"
Content-Description: example_koi8.txt
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="example_koi8.txt"

48Ug2tLB2s/LINTFy9PU1SwgzsHQydPBzsnKINcgy8/Ez9emyiDUwcLMycOmIGtvaTgtdQoK
wcLXx63ExaTW2smmysvMzc7P0NLT1NXGyMPe293YwNEK4eL3573k5bT2+um26uvs7e7v8PLz
9PXm6OP++/344PE=

--==_Exmh_4133381880
Content-Type: text/plain ; charset = windows-1251 ; name="example_cp1251.txt"
Content-Description: example_cp1251.txt
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="example_cp1251.txt"

1uUg5/Dg5+7qIPLl6vHy8ywg7eDv6PHg7ejpIOIg6u7k7uKz6SDy4OHr6PazIFdpbmRvd3Mt
MTI1MQoK4OHi47Tk5brm5+iz6err7O3u7/Dx8vP09fb3+Pn8/v8KwMHCw6XExarGx8iyycrL
zM3Oz9DR0tPU1dbX2Nnc3t8K

--==_Exmh_4133381880--



���� �� ����������

��������-������ 1999

����� �������� ���������

28 ������ 1999

���� ���������� ����. ����� ����� ��� "Subject:"


Natalya and Dmytro Kovalev
������ ��� �� �������: [email protected]
������� �������: http://www.asahi-net.or.jp/~as9d-kvlv
�����
 
[an error occurred while processing this directive] TopList
© 2000-2003, ���, ������� �������� -- ���� �� ����������, �������� ����������� -- ����� ������, ��i���� -- 08.06.2003 14:29:54