From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: кодировки в почте и в Postfix
Date: Tue Dec 4 20:46:01 2001
Message-ID: <20011204175303.GB1882@localhost.localdomain> (raw)
In-Reply-To: <12975202805.20011204152734@e-foto.ru>
Hello Maxim,
On Tue, Dec 04, 2001 at 03:27:34PM +0300, Maxim wrote:
>
> А возможно ли такое, что бы например в определенный почтовый ящик валились
> письма только в определенной кодировке. А если кодировка не подходит, то
> перекодировать.
> Я так понимаю, что Postfix этим заниматься не должен. А как тогда такую вещь
> можно сделать?
> Может кто делал?
>
> Причина проста. Есть факсовый сервер. Он принимает письма для отправки по факсу
> только в кодировке Windows-1251. Вернее ему пофигу какая кодировка, но тогда
> будет абракадабра. Вот и хочу что бы если письмо приходит в koi8 (а такие почти
> все), то его в windows-1251 переделывать. А если оно и так в ней, то ничего не
> делать.
>
> В постфикс есть параметр mailbox_command. Я так понимаю он выполняет локальную
> доставку почты в ящик клиента. Если туда подставить скрипт в котором делать
> обработку данных перед передачей в procmail то такая конвертация вполне
> возможна. Хотя бы для обычного текста. Для этого вполне можно использовать perl
> или Python.
> Как люди думают, реально это?
> Только вот вопрос, а само письмо как передается, через стандартный
> поток?
На вход mailbox_command -- да.
Если будете делать в Python, могу посоветовать пакет email. Он есть в
альфа-версии Mailman 2.1 и будет включен в Python 2.2.
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
There's nothing like a girl with a plunging neckline to keep a man on his toes.
prev parent reply other threads:[~2001-12-04 20:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-04 15:28 [mdk-re] " Maxim
2001-12-04 15:42 ` Artem K. Jouravsky
2001-12-04 19:04 ` Re[2]: [mdk-re] ×ÏÐÒÏÓ-ÐÏ-ÈÏÄÕ-ËÏÄÉÒÏ×ËÉ × ÐÏÞÔÅ É × Postfix Carry Ram
2001-12-04 19:18 ` [mdk-re] Re: [mdk-re] вопрос-по-ходу-кодировки в почте и в Postfix Sergey Degtyaryov
2001-12-04 20:10 ` Maxim
2001-12-04 20:08 ` Maxim
2001-12-04 20:46 ` Mikhail Zabaluev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011204175303.GB1882@localhost.localdomain \
--to=mhz@alt-linux.org \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git