From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50962 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Verifying inline gpg signatures Date: Fri, 21 Mar 2003 22:24:04 +0100 Organization: http://purl.org/harder/ Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048282008 30749 80.91.224.249 (21 Mar 2003 21:26:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 21:26:48 +0000 (UTC) Original-X-From: owner-ding@hpc.uh.edu Fri Mar 21 22:26:46 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18wU2I-0007zR-00 for ; Fri, 21 Mar 2003 22:26:46 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18wU1x-0003Wy-00; Fri, 21 Mar 2003 15:26:25 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Mar 2003 15:27:28 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA18481 for ; Fri, 21 Mar 2003 15:27:15 -0600 (CST) Original-Received: (qmail 55890 invoked by alias); 21 Mar 2003 21:26:08 -0000 Original-Received: (qmail 55885 invoked from network); 21 Mar 2003 21:26:07 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 21 Mar 2003 21:26:07 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18wU3Q-00051r-00 for ; Fri, 21 Mar 2003 22:27:56 +0100 Original-To: ding@gnus.org Original-Path: localhost.localdomain!nobody Original-Newsgroups: gnus.ding Original-Lines: 43 Original-NNTP-Posting-Host: 0xc3f95347.esnxr2.ras.tele.dk Original-X-Trace: quimby.gnus.org 1048282076 19334 195.249.83.71 (21 Mar 2003 21:27:56 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 21 Mar 2003 21:27:56 GMT X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; writes: > Jesper Harder writes: > >> Yes, format=flowed is the problem -- I can reproduce that with f=f >> messages produced by Gnus, too. Like this one. > > The reason is that `gnus-display-mime' says > > ... > (let* ((handles (or ihandles > (mm-dissect-buffer nil gnus-article-loose-mime) > (and gnus-article-emulate-mime > (mm-uu-dissect)))) > ... > > which means that pre-MIME parsing (mm-uu-dissect) is only done when > MIME isn't found. Apparently, a MIME message with only a text/plain > part makes mm-dissect-buffer return nil, so it is treated as a > pre-MIME message. So messages with CT parameters, such as > format=flowed, or generally any non-trivial MIME message, is treated > as a text part and mm-uu-dissect is never run. > > Perhaps mm-uu-dissect should be run on all text/plain parts? Or all > text/.* parts? Opinions? It's a step in the right direction ... but not enough. The problem is that text/plain parts with a format parameter haven't been QP decoded at this stage, so uu-dissect will fail. It happens because of this code in `article-decode-charset': (when (and (or (not ctl) (equal (car ctl) "text/plain")) (not format)) ;; article with format will decode later. (mm-decode-body charset (and cte (intern (downcase (gnus-strip-whitespace cte)))) (car ctl) prompt)) I didn't investigate what happens if the exception for text/plain parts with a format parameter is removed -- but it was obviously put there deliberately.