From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28727 Path: main.gmane.org!not-for-mail From: Vladimir Volovich Newsgroups: gmane.emacs.gnus.general Subject: Re: treating "broken" base64 parts Date: 11 Jan 2000 23:56:49 +0300 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035165523 31339 80.91.224.250 (21 Oct 2002 01:58:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:58:43 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id F07F5D051E for ; Tue, 11 Jan 2000 16:43:31 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id PAB02252; Tue, 11 Jan 2000 15:39:46 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 11 Jan 2000 15:39:45 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA15915 for ; Tue, 11 Jan 2000 15:39:34 -0600 (CST) Original-Received: from relay2.vsu.ru (mail.vsu.ru [62.76.169.17]) by mailhost.sclp.com (Postfix) with ESMTP id B380FD051E for ; Tue, 11 Jan 2000 16:06:54 -0500 (EST) Original-Received: by relay2.vsu.ru (Postfix, from userid 5) id 07D5619F0; Wed, 12 Jan 2000 00:06:36 +0300 (MSK) Original-Received: (from vvv@localhost) by vvv.vsu.ru (8.9.3/8.9.3) id XAA02646; Tue, 11 Jan 2000 23:56:50 +0300 X-Authentication-Warning: vvv.vsu.ru: vvv set sender to vvv@vvv.vsu.ru using -f Original-To: ding@gnus.org In-Reply-To: Vladimir Volovich's message of "10 Jan 2000 14:00:46 +0300" Original-Lines: 31 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28727 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28727 --=-=-= "VV" == Vladimir Volovich writes: VV> i often receive messages from mailing lists which have the VV> following form: [...] VV> From: someone Subject: test To: someone Content-Type: text/plain; VV> charset=koi8-r Content-Transfer-Encoding: base64 OtherHeaders: VV> ... VV> 5MzRINrB1NLB18vJINDSxcTMwcfBwCDPwtPVxMnU2CDgzsnLz8QgySDFx88gy8nSyczMyd7F VV> 08vVwCDewdPU2CDOwSDQ0sXEzcXUDQrQ0snHz8TOz9PUySDLIM7B28XN1SDExczVLiDuwSDN VV> ... VV> yc/OLCDF08zJIM7FIMnNxcXUxQ0K1MHLz9fPx88uDQpodHRwOi8vY2hzbGF2Lmh5cGVybWFy VV> dC5uZXQNCg0K4czFy9PFyg0KDQoNCg== VV> ------------------------------------------------------------------------------- VV> -=COOL-LIST=- Project // Mail Lists service on something.com VV> I.e., the text is a 1-part messages with CTE=base64, but mailing VV> list software adds a trailer lines. Gnus does not display these VV> messages correctly, i.e. what i see is the undecoded base64 VV> text. I wonder, could gnus automagically treat such messages? well, here is a patch which solves this problem for me: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=mm-bodies.el.diff --- mm-bodies.el.orig Tue Jan 11 23:51:31 2000 +++ mm-bodies.el Tue Jan 11 23:52:28 2000 @@ -154,8 +154,12 @@ ;; Some mailers insert whitespace ;; junk at the end which ;; base64-decode-region dislikes. + ;; Also remove possible junk which could + ;; have been added by mailing list software. (save-excursion - (goto-char (point-max)) + (goto-char (point-min)) + (re-search-forward "^[\t ]*$") + (delete-region (point) (point-max)) (skip-chars-backward "\n\t ") (delete-region (point) (point-max)) (point)))) --=-=-= could someone with CVS rw access apply this if you find it correct? BTW, i just noticed that the Lines: header generated by gnus is incorrect. So the old bug with Lines: header is still there. :-( Could someone please fix it? (calculate Lines: NOT for MML message, but for a MIME message) Best regards, -- Vladimir. --=-=-=--