* Problem with MIME in From:/Reply-To: fields
@ 2000-08-07 11:37 Roman Belenov
2000-08-08 4:10 ` ShengHuo ZHU
0 siblings, 1 reply; 6+ messages in thread
From: Roman Belenov @ 2000-08-07 11:37 UTC (permalink / raw)
I've received a letter with the following headers (I omitted the body
since there were no problems with it). From: and Reply-To: fields are
in koi8-r and encoded, but Gnus showed them as is without
decoding. What's the problem ?
I'm using Gnus 5.8.7/GNU Emacs 20.7.1
-----------------------------------------------------------------------
X-From-Line: boan@sandy.ru Mon Aug 7 14:52:47 2000
Return-Path: boan@sandy.ru
Received: from host.nstl.nnov.ru (host.nstl.nnov.ru [195.98.59.131])
by bsd.nstl.nnov.ru (8.10.2/8.10.2) with ESMTP id e77BVmd75483
for <roman@bsd>; Mon, 7 Aug 2000 15:31:49 +0400 (MSD)
Received: from mx2.mailru.com (mx2.mailru.com [193.124.133.9])
by host.nstl.nnov.ru (8.9.3/8.9.3) with ESMTP id PAA30976
for <roman@nstl.nnov.ru>; Mon, 7 Aug 2000 15:24:56 +0400 (MSD)
(envelope-from boan@sandy.ru)
Received: from as1-dynip123.mts-nn.ru (as1-dynip123.mts-nn.ru [213.24.90.123])
(authenticated)
by mx2.mailru.com (8.10.0/8.10.0) with ESMTP id e77BGgh98206
for <roman@nstl.nnov.ru>; Mon, 7 Aug 2000 15:16:47 +0400 (MSD)
Date: Mon, 7 Aug 2000 14:52:47 +0400
From: =?koi8-r?B?4c7E0sXKIOLPwtLP1w?= <boan@sandy.ru>
X-Mailer: The Bat! (v1.45)
Reply-To: =?koi8-r?B?4c7E0sXKIOLPwtLP1w?= <boan@sandy.ru>
X-Priority: 3 (Normal)
X-Gnus-Mail-Source: pop:roman@bsd
Message-ID: <252697040.20000807145247@sandy.ru>
To: Roman Belenov <roman@nstl.nnov.ru>
Subject: =?koi8-r?B?UmU6IMvOycfJ?=
In-reply-To: <uwvht74la.fsf@nstl.nnov.ru>
References: <uwvht74la.fsf@nstl.nnov.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 8bit
X-UIDL: 35b6ddc440861337169894b56016f64d
X-Content-Length: 697
Lines: 22
Xref: LIGHTHOUSE unsorted:1248
-----------------------------------------------------------------------
--
With regards, Roman.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with MIME in From:/Reply-To: fields
2000-08-07 11:37 Problem with MIME in From:/Reply-To: fields Roman Belenov
@ 2000-08-08 4:10 ` ShengHuo ZHU
2000-08-08 11:07 ` Roman Belenov
0 siblings, 1 reply; 6+ messages in thread
From: ShengHuo ZHU @ 2000-08-08 4:10 UTC (permalink / raw)
Roman Belenov <roman@nstl.nnov.ru> writes:
> I've received a letter with the following headers (I omitted the body
> since there were no problems with it). From: and Reply-To: fields are
> in koi8-r and encoded, but Gnus showed them as is without
> decoding. What's the problem ?
>
> I'm using Gnus 5.8.7/GNU Emacs 20.7.1
[...]
> From: =?koi8-r?B?4c7E0sXKIOLPwtLP1w?= <boan@sandy.ru>
It is a bug of Emacs builtin base64, which does not pad the encoding
string.
The base64.el coming with Gnus works. Try `M-x load-library base64'.
ShengHuo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with MIME in From:/Reply-To: fields
2000-08-08 4:10 ` ShengHuo ZHU
@ 2000-08-08 11:07 ` Roman Belenov
2000-08-08 14:03 ` ShengHuo ZHU
0 siblings, 1 reply; 6+ messages in thread
From: Roman Belenov @ 2000-08-08 11:07 UTC (permalink / raw)
Cc: ding
ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> > From: =?koi8-r?B?4c7E0sXKIOLPwtLP1w?= <boan@sandy.ru>
>
> It is a bug of Emacs builtin base64, which does not pad the encoding
> string.
>
> The base64.el coming with Gnus works. Try `M-x load-library base64'.
No, it didn't help. I tried as you said and also load-file'd
base64.elc from gnus-5.8.7 directory before starting Gnus but the
message was still not decoded.
PS And there is no base64.el in emacs\lisp tree. May be you meant
some other file ?
--
With regards, Roman.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with MIME in From:/Reply-To: fields
2000-08-08 11:07 ` Roman Belenov
@ 2000-08-08 14:03 ` ShengHuo ZHU
2000-08-08 14:55 ` Roman Belenov
0 siblings, 1 reply; 6+ messages in thread
From: ShengHuo ZHU @ 2000-08-08 14:03 UTC (permalink / raw)
Roman Belenov <roman@nstl.nnov.ru> writes:
> ShengHuo ZHU <zsh@cs.rochester.edu> writes:
>
> > > From: =?koi8-r?B?4c7E0sXKIOLPwtLP1w?= <boan@sandy.ru>
> >
> > It is a bug of Emacs builtin base64, which does not pad the encoding
> > string.
> >
> > The base64.el coming with Gnus works. Try `M-x load-library base64'.
>
> No, it didn't help. I tried as you said and also load-file'd
> base64.elc from gnus-5.8.7 directory before starting Gnus but the
> message was still not decoded.
Oops. I was using the external decoder of base64.el.
(setq base64-decoder-program "mmencode"
base64-decoder-switches '("-u"))
So, there is also a bug in the base64 lisp decorder.
ShengHuo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with MIME in From:/Reply-To: fields
2000-08-08 14:03 ` ShengHuo ZHU
@ 2000-08-08 14:55 ` Roman Belenov
2000-08-09 13:33 ` François Pinard
0 siblings, 1 reply; 6+ messages in thread
From: Roman Belenov @ 2000-08-08 14:55 UTC (permalink / raw)
Cc: ding
ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> Oops. I was using the external decoder of base64.el.
>
> (setq base64-decoder-program "mmencode"
> base64-decoder-switches '("-u"))
>
> So, there is also a bug in the base64 lisp decorder.
Ok, it worked (although version of mmencode I've found didn't do
padding and lost last character in my example - I had to add it
myself). But it takes much more time to enter mailbox with external
base64 decoder; I'll try to fix base64.el (although I don't sure I can
- my elisp is still not good).
--
With regards, Roman.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with MIME in From:/Reply-To: fields
2000-08-08 14:55 ` Roman Belenov
@ 2000-08-09 13:33 ` François Pinard
0 siblings, 0 replies; 6+ messages in thread
From: François Pinard @ 2000-08-09 13:33 UTC (permalink / raw)
Cc: ShengHuo ZHU, ding
[Roman Belenov]
> ShengHuo ZHU <zsh@cs.rochester.edu> writes:
> > Oops. I was using the external decoder of base64.el.
> >
> > (setq base64-decoder-program "mmencode"
> > base64-decoder-switches '("-u"))
> >
> > So, there is also a bug in the base64 lisp decorder.
> Ok, it worked (although version of mmencode I've found didn't do padding
> and lost last character in my example - I had to add it myself). But
> it takes much more time to enter mailbox with external base64 decoder;
> I'll try to fix base64.el (although I don't sure I can - my elisp is
> still not good).
That depends on the size of the attachment. Emacs LISP does not have much
start overhead, but is much slower. For one, I use:
(setq base64-decoder-program "recode"
base64-decoder-switches '("-f" "/64")
base64-encoder-program "recode"
base64-encoder-switches '("-f" "../64"))
but I'm biased :-).
--
François Pinard http://www.iro.umontreal.ca/~pinard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-08-09 13:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-07 11:37 Problem with MIME in From:/Reply-To: fields Roman Belenov
2000-08-08 4:10 ` ShengHuo ZHU
2000-08-08 11:07 ` Roman Belenov
2000-08-08 14:03 ` ShengHuo ZHU
2000-08-08 14:55 ` Roman Belenov
2000-08-09 13:33 ` François Pinard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).