[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems decoding base64 text/plain utf-8
Quite a long time ago, and (for me) a major version of Emacs ago....
At Sat, 22 May 2010 14:03:31 +0200, David Maus <dmaus@ictsoc.de> wrote:
Subject: Re: problems decoding base64 text/plain utf-8
>
> Greg A. Woods wrote:
> >I just tried to read a message with the following MIME headers:
>
> > Content-Type: text/plain; charset="utf-8"
> > Content-Transfer-Encoding: base64
> > MIME-Version: 1.0
>
> >but I was told:
>
> > Can't decode current entity.
>
> >(the BASE-64 blob looks Ok, and the message was on the Git list and many
> >others seem to have been able to decode it as their replies show the
> >original text)
>
> Could you provide a backtrace or, maybe better, the offending message?
I've recently begun using Emacs-23 along with WL and in going back
through old wl-en messages I still had in my local folder I found this
message and decided I should go back and see if the newer version of
Emacs improved the results.
Un(?)fortunately there's no change in behaviour.
No error is thrown -- I just see the message "Can't decode current entity."
Here's a reference to the original message:
List-ID: <git.vger.kernel.org>
Message-ID: <657A681BEF27534399890012B8C8E50E1AD63D2268@lcs-exchange01.Lantekcs.com>
The BASE-64 blob is:
w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24gd3JvdGU6DQoNCj4gPiBJIGxpa2UgdG8ga2VlcCBi
cmFuY2ggbmFtZXMgc2hvcnQgc28gdGhleSdyZSBlYXN5IHRvIHN3aXRjaCB0byBhbmQNCj4gPiBm
cm9tLCBidXQgYmVpbmcgYWJsZSB0byBhdHRhY2ggYSBkZXNjcmlwdGlvbiB0aGF0IHdvdWxkIGRp
c3BsYXkgd2hlbg0KPiA+IGRvaW5nIGEgImdpdCBicmFuY2giIHdvdWxkIGJlIGEgaHVnZSBoZWxw
Lg0KPiANCj4gT3IgeW91IGNvdWxkIGp1c3QgdXNlIGxvbmcgYnJhbmNoIG5hbWVzIGNvdXBsZWQg
d2l0aCBiYXNoIGNvbXBsZXRpb24NCj4gKG9yIHNvbWV0aGluZyBsaWtlIHRoYXQpIHNvIGl0IGlz
bid0IGhhcmQgdG8gc3dpdGNoIGJldHdlZW4gYnJhbmNoZXMNCj4gd2l0aCBsb25nIG5hbWVzLg0K
PiANCj4gSSB1c2UgYnJhbmNoIG5hbWVzIHRoYXQgYXJlIGxvbmcgZW5vdWdoIHNvIHRoYXQgSSBj
YW4gdGVsbCB3aGF0DQo+IHRoZXkncmUgZm9yIGJ5IGxvb2tpbmcgYXQgdGhlIG5hbWUsIHVzaW5n
IHRoZW0gaXNuJ3QgYSBwYWluIGR1ZSB0bw0KPiBiYXNoL21hZ2l0IGNvbXBsZXRpb24uDQoNCkdv
b2QgcG9pbnQsIHBlcmhhcHMgZm9yIG5vdyBJIHNob3VsZCB1c2UgYnJhbmNoLm5hbWVzLmxpa2Uu
dGhpcw0KDQpqcg0K
and if I pipe it through "mmencode -u" the result displays perfectly in
the shell output buffer, UTF-8 encoded characters and all.
The message comes from SEMI's (mime-display-text/plain), and is an
attempt to warn of when FLIM's (mime-insert-text-content) fails for some
reason.
If I revert the change that introduced the (condition-case) wrapper in
(mime-display-text/plain) and then I turn on debug-on-error I get the
following backtrace. Apparently Emacs and mmencode disagree somehow.
Debugger entered--Lisp error: (error "Invalid base64 data")
signal(error ("Invalid base64 data"))
byte-code("Á ?Â@A\"?" [err wl-message-buffer-cache-delete signal] 3)
wl-message-buffer-display([elmo-imap4-folder [0 0 0 0 0 0 0] imap4 "%inbox/Lists-IN/git-list" "%" "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" [modb-standard [0 0 0 0 0 0 0] "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" nil t x-ctext (5 10 11 37 39 40 42 43 44 45 49 50 143 145 147 148 155 158 182 255 262 263 265 273 274 275 278 280 287 288 298 340 410 439 440 443 447 454 456 636 693 694 702 1008 1009 1216 1257 1340 1350 1358 ...) [<20091216232641\.GK25474@genesis\.frugalware\.org> 0 0 0 0 0 0 <20100423215448\.1EF5B479E92@snark\.thyrsus\.com> 0 0 <20091130192212\.GA23181@dpotapov\.dyndns\.org> 0 0 <vpqr5lgggzt\.fsf@bauges\.imag\.fr> 0 0 0 0 0 <AANLkTinLoLr2adyLpVSUHkh0_6heaCNsnHWyzrESDLPu@mail\.gmail\.com> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <201006082352\.38136\.johan@herland\.net> 0 <t2s91b13c311005031403h37c5e066va6870a3ae0a79420@mail\.gmail\.com> 0 0 0 <4BE90ADF\.7020503@drmicha\.warpmail\.net> \#10470 <AANLkTikc6_jZoMzF1VhfJBSk1DRHCNNP3puPT0Z2Usk5@mail\.gmail\.com> <20100129090345\.6117@nanako3\.lavabit\.com> \#147 \#148 <19266\.3277\.221519\.791489@blake\.zopyra\.com> 0 \#12476 0 ...] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \#148 0 0 0 0 ...] (... ... ... ... ... ...) nil] nil nil t nil nil x-ctext "woods" clear "mailbox.weird.com" 993 ("!" ssl ssl open-ssl-stream) "inbox/Lists-IN/git-list"] 12938 mime-partial-header nil)
wl-message-redisplay([elmo-imap4-folder [0 0 0 0 0 0 0] imap4 "%inbox/Lists-IN/git-list" "%" "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" [modb-standard [0 0 0 0 0 0 0] "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" nil t x-ctext (5 10 11 37 39 40 42 43 44 45 49 50 143 145 147 148 155 158 182 255 262 263 265 273 274 275 278 280 287 288 298 340 410 439 440 443 447 454 456 636 693 694 702 1008 1009 1216 1257 1340 1350 1358 ...) [<20091216232641\.GK25474@genesis\.frugalware\.org> 0 0 0 0 0 0 <20100423215448\.1EF5B479E92@snark\.thyrsus\.com> 0 0 <20091130192212\.GA23181@dpotapov\.dyndns\.org> 0 0 <vpqr5lgggzt\.fsf@bauges\.imag\.fr> 0 0 0 0 0 <AANLkTinLoLr2adyLpVSUHkh0_6heaCNsnHWyzrESDLPu@mail\.gmail\.com> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <201006082352\.38136\.johan@herland\.net> 0 <t2s91b13c311005031403h37c5e066va6870a3ae0a79420@mail\.gmail\.com> 0 0 0 <4BE90ADF\.7020503@drmicha\.warpmail\.net> \#10470 <AANLkTikc6_jZoMzF1VhfJBSk1DRHCNNP3puPT0Z2Usk5@mail\.gmail\.com> <20100129090345\.6117@nanako3\.lavabit\.com> \#147 \#148 <19266\.3277\.221519\.791489@blake\.zopyra\.com> 0 \#12476 0 ...] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \#148 0 0 0 0 ...] (... ... ... ... ... ...) nil] nil nil t nil nil x-ctext "woods" clear "mailbox.weird.com" 993 ("!" ssl ssl open-ssl-stream) "inbox/Lists-IN/git-list"] 12938 mime-partial-header nil)
wl-summary-redisplay-internal([elmo-imap4-folder [0 0 0 0 0 0 0] imap4 "%inbox/Lists-IN/git-list" "%" "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" [modb-standard [0 0 0 0 0 0 0] "/home/woods/.elmo/imap/mailbox.weird.com/woods/inbox/Lists-IN/git-list" nil t x-ctext (5 10 11 37 39 40 42 43 44 45 49 50 143 145 147 148 155 158 182 255 262 263 265 273 274 275 278 280 287 288 298 340 410 439 440 443 447 454 456 636 693 694 702 1008 1009 1216 1257 1340 1350 1358 ...) [<20091216232641\.GK25474@genesis\.frugalware\.org> 0 0 0 0 0 0 <20100423215448\.1EF5B479E92@snark\.thyrsus\.com> 0 0 <20091130192212\.GA23181@dpotapov\.dyndns\.org> 0 0 <vpqr5lgggzt\.fsf@bauges\.imag\.fr> 0 0 0 0 0 <AANLkTinLoLr2adyLpVSUHkh0_6heaCNsnHWyzrESDLPu@mail\.gmail\.com> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 <201006082352\.38136\.johan@herland\.net> 0 <t2s91b13c311005031403h37c5e066va6870a3ae0a79420@mail\.gmail\.com> 0 0 0 <4BE90ADF\.7020503@drmicha\.warpmail\.net> \#10470 <AANLkTikc6_jZoMzF1VhfJBSk1DRHCNNP3puPT0Z2Usk5@mail\.gmail\.com> <20100129090345\.6117@nanako3\.lavabit\.com> \#147 \#148 <19266\.3277\.221519\.791489@blake\.zopyra\.com> 0 \#12476 0 ...] [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 \#148 0 0 0 0 ...] (... ... ... ... ... ...) nil] nil nil t nil nil x-ctext "woods" clear "mailbox.weird.com" 993 ("!" ssl ssl open-ssl-stream) "inbox/Lists-IN/git-list"] 12938)
wl-summary-set-message-buffer-or-redisplay(ignore-original)
wl-summary-read()
call-interactively(wl-summary-read nil nil)
--
Greg A. Woods
Planix, Inc.
<woods@planix.com> +1 250 762-7675 http://www.planix.com/