From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61665 Path: news.gmane.org!not-for-mail From: "Mark D. Baushke" Newsgroups: gmane.mail.mh-e.devel,gmane.emacs.gnus.general Subject: Gnus 5.10.6 problems with PGP/MIME (test cases) Date: Wed, 11 Jan 2006 17:12:34 -0800 Message-ID: <19643.1137028354@juniper.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1137028408 8032 80.91.229.2 (12 Jan 2006 01:13:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2006 01:13:28 +0000 (UTC) Cc: mh-e-devel@lists.sourceforge.net Original-X-From: mh-e-devel-admin@lists.sourceforge.net Thu Jan 12 02:13:24 2006 Return-path: Envelope-to: gmmd-mh-e-devel@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ewr1a-0004K6-Pq for gmmd-mh-e-devel@m.gmane.org; Thu, 12 Jan 2006 02:13:11 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id E37F413B57; Wed, 11 Jan 2006 17:13:09 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1Ewr1F-0000Ap-L8 for mh-e-devel@lists.sourceforge.net; Wed, 11 Jan 2006 17:12:49 -0800 Original-Received: from colo-dns-ext1.juniper.net ([207.17.137.57]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1Ewr1F-00065Q-7b for mh-e-devel@lists.sourceforge.net; Wed, 11 Jan 2006 17:12:49 -0800 Original-Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext1.juniper.net (8.11.3/8.9.3) with ESMTP id k0C1Ch559638; Wed, 11 Jan 2006 17:12:44 -0800 (PST) (envelope-from mdb@juniper.net) Original-Received: from juniper.net (sapphire.juniper.net [172.17.28.108]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id k0C1CY559096; Wed, 11 Jan 2006 17:12:34 -0800 (PST) (envelope-from mdb@juniper.net) Original-To: ding@gnus.org X-Mailer: MH-E 7.85+cvs; nmh 1.0.4; GNU Emacs 21.3.1 X-Face: #8D_6URD2G%vC.hzU, List-Id: Forum for the MH-E developers List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Wed, 11 Jan 2006 17:12:34 -0800 Xref: news.gmane.org gmane.mail.mh-e.devel:11248 gmane.emacs.gnus.general:61665 Archived-At: Background: This problem arises using MH-E 7.85+cvs plus Gnus v5.10.6 running under GNU Emacs 21.4 on a Gentoo GNU/Linux box. Problem (first message in attachment): Content-Type: text/plain; charset="us-ascii"; format=flowed does not properly allow the GNUS 5.10.6 mml-* functions to recognize that there is a PGP Signed message body. If the format=flowed clause is removed, then there is no problems with this recognition. I get this '; format=flowed' addition to the Content-Type even for PGP messages that are encrypted by Eudora users all the time. Problem (third message in attachment): Content-Type: application/pgp; x-action=sign; format=text does not properly allow GNUS 5.10.6 mml-* function to display the text or signature information. Note that I do understand that this Content-Type is mentioned in RFC 2015 as being a bad idea. However, I get this kind of Content-Type from some mutt users and a few other Windows users. The second message in the attachment decodes properly and will say [[PGP Signed Part:Undecided]] until the user requests that the signature be verified in which case it displays [[PGP Signed Part:Mark D Baushke ]] in the short form or [[PGP Signed Part:Mark D Baushke ] Signature made Wed Jan 11 16:44:25 2006 PST using DSA key ID 6B039C51 Good signature from "Mark D Baushke " [GNUPG:] SIG_ID 5DWnGnqCMbs+B1YcmM1o/2+BDiw 2006-01-12 1137026665 [GNUPG:] GOODSIG 0A0EC03C6B039C51 Mark D Baushke [GNUPG:] VALIDSIG A83FF00BF7002712D36A9F3A0A0EC03C6B039C51 2006-01-12 1137026665 0 3 0 17 2 01 A83FF00BF7002712D36A9F3A0A0EC03C6B039C51 [GNUPG:] TRUST_FULLY ] in the long form. A similar set of problems arise when the PGP/MIME message is encrypted. For the application/pgp form the encrypted Content-Type generated by mutt looks like this: Content-Type: application/pgp; x-action=encrypt; format=text Please let me know if you have any questions. Thanks, -- Mark The shell archive below contains an mbox-style formatted file with two messages. The messages are identical except that one #!/bin/sh # This is a shell archive (produced by GNU sharutils 4.2.1). # To extract the files from this archive, save it to some FILE, remove # everything before the `!/bin/sh' line above, then type `sh FILE'. # # Made on 2006-01-11 16:58 PST by . # Source directory was `/home/m/mdb'. # # Existing files will *not* be overwritten unless `-c' is specified. # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 1606 -rw-r--r-- /homes/mdb/gnus.msg # save_IFS="${IFS}" IFS="${IFS}:" gettext_dir=FAILED locale_dir=FAILED first_param="$1" for dir in $PATH do if test "$gettext_dir" = FAILED && test -f $dir/gettext \ && ($dir/gettext --version >/dev/null 2>&1) then set `$dir/gettext --version 2>&1` if test "$3" = GNU then gettext_dir=$dir fi fi if test "$locale_dir" = FAILED && test -f $dir/shar \ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1) then locale_dir=`$dir/shar --print-text-domain-dir` fi done IFS="$save_IFS" if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED then echo=echo else TEXTDOMAINDIR=$locale_dir export TEXTDOMAINDIR TEXTDOMAIN=sharutils export TEXTDOMAIN echo="$gettext_dir/gettext -s" fi if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"' elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"' elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then shar_touch='touch -am $3$4$5$6$2 "$8"' else shar_touch=: echo $echo 'WARNING: not restoring timestamps. Consider getting and' $echo "installing GNU \`touch', distributed in GNU File Utilities..." echo fi rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch # if mkdir _sh14108; then $echo 'x -' 'creating lock directory' else $echo 'failed to create lock directory' exit 1 fi # ============= /homes/mdb/gnus.msg ============== if test ! -d '/homes'; then $echo 'x -' 'creating directory' '/homes' mkdir '/homes' fi if test ! -d '/homes/mdb'; then $echo 'x -' 'creating directory' '/homes/mdb' mkdir '/homes/mdb' fi if test -f '/homes/mdb/gnus.msg' && test "$first_param" != -c; then $echo 'x -' SKIPPING '/homes/mdb/gnus.msg' '(file already exists)' else $echo 'x -' extracting '/homes/mdb/gnus.msg' '(text)' sed 's/^X//' << 'SHAR_EOF' > '/homes/mdb/gnus.msg' && XFrom mdb@gnu.org Wed Jan 11 16:45:06 2006 To: mdb@gnu.org XFrom: "Mark D. Baushke" Subject: test pgp message Content-Type: text/plain; charset="us-ascii"; format=flowed Mime-Version: 1.0 Date: Wed, 11 Jan 2006 16:45:06 -0800 Message-ID: <13570.1137026706@fencepost.gnu.org> X -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 X This is a test. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) X iD8DBQFDxaZpCg7APGsDnFERAgolAJ9+VbmaXTgWiMTEl4Y2gSQOGF3zHQCfR7MZ tns6uRALb5LuMSIQMdbm6E4= =SycC -----END PGP SIGNATURE----- X XFrom mdb@gnu.org Wed Jan 11 16:45:06 2006 To: mdb@gnu.org XFrom: "Mark D. Baushke" Subject: test pgp message Content-Type: text/plain; charset="us-ascii" Mime-Version: 1.0 Date: Wed, 11 Jan 2006 16:45:06 -0800 Message-ID: <13570.1137026706@fencepost.gnu.org> X -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 X This is a test. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) X iD8DBQFDxaZpCg7APGsDnFERAgolAJ9+VbmaXTgWiMTEl4Y2gSQOGF3zHQCfR7MZ tns6uRALb5LuMSIQMdbm6E4= =SycC -----END PGP SIGNATURE----- X XFrom mdb@gnu.org Wed Jan 11 16:45:06 2006 To: mdb@gnu.org XFrom: "Mark D. Baushke" Subject: test pgp message Content-Type: application/pgp; x-action=sign; format=text Mime-Version: 1.0 Date: Wed, 11 Jan 2006 16:45:06 -0800 Message-ID: <13570.1137026706@fencepost.gnu.org> X -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 X This is a test. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) X iD8DBQFDxaZpCg7APGsDnFERAgolAJ9+VbmaXTgWiMTEl4Y2gSQOGF3zHQCfR7MZ tns6uRALb5LuMSIQMdbm6E4= =SycC -----END PGP SIGNATURE----- X SHAR_EOF (set 20 06 01 11 16 57 41 '/homes/mdb/gnus.msg'; eval "$shar_touch") && chmod 0644 '/homes/mdb/gnus.msg' || $echo 'restore of' '/homes/mdb/gnus.msg' 'failed' if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \ && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then md5sum -c << SHAR_EOF >/dev/null 2>&1 \ || $echo '/homes/mdb/gnus.msg:' 'MD5 check failed' 7c902d121e94e6df39e643e77ba4fb1c /homes/mdb/gnus.msg SHAR_EOF else shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < '/homes/mdb/gnus.msg'`" test 1606 -eq "$shar_count" || $echo '/homes/mdb/gnus.msg:' 'original size' '1606,' 'current size' "$shar_count!" fi fi rm -fr _sh14108 exit 0 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click