ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergei Boudnik <sergei@boudnik.kiev.ua>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] mailx
Date: Tue, 19 Jun 2007 09:29:07 +0300
Message-ID: <467777B3.5030609@boudnik.kiev.ua> (raw)
In-Reply-To: <1738.194.85.247.230.1182195476.squirrel@webmail.ieml.ru>

Timur Batyrshin пишет:
> On Пнд, 18 Июнь 2007 20:54, Andrey Rahmatullin wrote:
>   
>> On Mon, Jun 18, 2007 at 08:49:17PM +0400, Timur Batyrshin wrote:
>>     
>>> Каким ключом к команде mail можно явно
>>> указать кодировку письма?
>>>       
>> Он же не знает слова "кодировка", как и
>> слова "MIME".
>>     
>
> А как тогда ему указать дополнительные
> строки для заголовка?
> Я бы тогда дополнил заголовок строкой,
> указывающей кодировку..
>   
Я в скриптах использую mutt, он сам перекодирует текст и проставляет 
заголовки.
А когда надо отправить в base64, использую скрипт:

#!/usr/bin/perl
#
# Usage: $0 -s "Subject" -t /path/to/file.txt user@domain.tld

use MIME::Lite;
use Getopt::Std;
getopts ("s:t:");
$Subj = $opt_s;
$Text = $opt_t;

foreach $Address (@ARGV) {
### Create a new message:
        $msg = MIME::Lite->new(
        #From     => 'your@send.er',
        To       => $Address,
        # Cc     => 'some@other.com, some@more.com',
        Subject  => $Subj,
        Type     => 'text/plain; charset=utf8',
        Encoding => 'base64',
        Path     => $Text,
        );

        $msg->send;
}
#EOF

-- 

WBR, Sergei Boudnik
http://www.boudnik.kiev.ua
--------------------------
SSB-RIPE
SSB1-UANIC
==========================
Trap for spam & virii:
trap@wildlist.org.ua



  reply	other threads:[~2007-06-19  6:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-18 16:49 Timur Batyrshin
2007-06-18 16:54 ` Andrey Rahmatullin
2007-06-18 19:37   ` Timur Batyrshin
2007-06-19  6:29     ` Sergei Boudnik [this message]
2007-06-19  3:28   ` Kostarev Alexey
2007-06-19  5:47     ` Timur Batyrshin
2007-06-26 14:09       ` Sergey

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=467777B3.5030609@boudnik.kiev.ua \
    --to=sergei@boudnik.kiev.ua \
    --cc=community@lists.altlinux.org \
    /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