[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set charset in mutt for big5?



my solution for the headers:
sub hqp {
        local ($qp) = @_;
        $qp =~ s/=([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
        $qp;
}

sub hb64 {
    local($^W) = 0;
    my $str = shift;
    my $res = "";
    $str =~ tr|A-Za-z0-9+=/||cd;
    $str =~ s/=+$//;
    $str =~ tr|A-Za-z0-9+/| -_|;
    while ($str =~ /(.{1,60})/gs) {
        my $len = chr(32 + length($1)*3/4);
        $res .= unpack("u", $len . $1 );
    }
    $res;
}

--
Cagito, ego sum.
----- Original Message -----
From: "Edward Lee" <edward.@kimo.com>
To: "debian-chinese-list" <debian-chinese-big5@lists.debian.org>
Sent: Monday, January 01, 2001 4:22 PM
Subject: Re: How to set charset in mutt for big5?

> On Sun, Dec 31, 2000, ha shao wrote:
> > Did you tried 'g' for group reply?
> > for mailing list, normally, you don't need to CC to the
> > original sender unless he is not on the list or he asks for it.
> >
> > put lines like:
> >
> > lists debian-chinese-gb@lists.debian.org
> > subscribe debian-chinees-gb@lists.debian.org
> >
> > in your .muttrc or source it from .muttrc, then when
> > reply to a mailing list, press 'L'. Mutt will recognize
> > the mailing list and put it in To: field.
>
>   Ya, 这是个好方法,谢谢告知。:)
>
> > Did they say that mutt is powerful?
>
>   yes, 但我目前唯一的困扰就是 Subject 的部份,无法使它不
>   编码。编码的结果,有些 MUA 或 news reader 会无法解码,
>   纵使是和 metamail 配合,有人可以解决这个问题吗?好像要
>   改 source code 才行?
>
>   我是使用 slrn 来读 news 的,和 metamail 配合只能解决一部
>   份的问题,有人使用 slrn 的吗?
>
>
> --
> Warm regards,
> Edward Lee(李果正)
> ----------------
> 学问深时意气平。
> ----------------
>
>
> --
> To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>

-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.



Reply to: