- labels: Documentation --> documentation
1. Verify that the mail messages in Mark's messages are handled correctly.
2. Decided what to do next :-).
If this problem has been fixed, then I think that the only thing we should do now is to change our recommendation from gnus 5.10 to 5.10.7. Please comment if you think additional documentation is required.
To: ding at gnus.org
Cc: mh-e-devel at lists.sourceforge.net
From: "Mark D. Baushke" <mdb at gnu.org>
Subject: Gnus 5.10.6 problems with PGP/MIME (test cases)
X-Mailer: MH-E 7.85+cvs; nmh 1.0.4; GNU Emacs 21.3.1
Date: Wed, 11 Jan 2006 17:12:34 -0800
X-Mailer: MH-E 7.85+cvs; nmh 1.0.4; GNU Emacs 21.3.1
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 <mdb at gnu.org>]]
in the short form or
[[PGP Signed Part:Mark D Baushke <mdb at gnu.org>]
Signature made Wed Jan 11 16:44:25 2006 PST using DSA key ID 6B039C51
Good signature from "Mark D Baushke <mdb at gnu.org>"
[GNUPG:] SIG_ID 5DWnGnqCMbs+B1YcmM1o/2+BDiw 2006-01-12 1137026665
[GNUPG:] GOODSIG 0A0EC03C6B039C51 Mark D Baushke <mdb at gnu.org>
[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 <mdb at gnu.org>.
# 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 user@host.org Wed Jan 11 16:45:06 2006
To: user@host.org
XFrom: "Mark D. Baushke" <user@host.org>
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
[[PGP Signed Part:Undecided]]
X
This is a test.
[[End of PGP Signed Part]]
X
XFrom user@host.org Wed Jan 11 16:45:06 2006
To: user@host.org
XFrom: "Mark D. Baushke" <user@host.org>
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
[[PGP Signed Part:Undecided]]
X
This is a test.
[[End of PGP Signed Part]]
X
XFrom user@host.org Wed Jan 11 16:45:06 2006
To: user@host.org
XFrom: "Mark D. Baushke" <user@host.org>
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
[[PGP Signed Part:Undecided]]
X
This is a test.
[[End of PGP Signed Part]]
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
To: mh-e-devel at lists.sourceforge.net
Subject: Re: Gnus 5.10.6 problems with PGP/MIME (test cases)
From: "Mark D. Baushke" <mdb at gnu.org>
X-Mailer: MH-E 7.85+cvs; nmh 1.0.4; GNU Emacs 21.3.1
Date: Wed, 18 Jan 2006 02:11:21 -0800
Message-ID: <53198.1137579081@juniper.net>
[[PGP Signed Part:Undecided]]
Bill Wohler <wohler at newt.com> writes:
> Mark D. Baushke <mdb at gnu.org> wrote:
>
> > How should we note these fixes in our NEWS file when we release MH-E
> > 7.90? Should we point folks at a union of the two patches to
> > GNUS-5.10.6, or will there be an official gnus-5.10.7 sometime in the
> > future for folks to use?
>
> I'm not sure. I'm also not sure of the title or the text for the item
> either :-(. Maybe you can help me out with that, Mark, since you've been
> a little closer to the problem. I guess the best place would be in the
> "Bug Fixes in MH-E 7.90" section, eh?
I am not sure what to put for the gnus revision... and Katsumi didn't know
what to tell us to do either... I guess we could say that we have a patch
against gnus-5.10.6 that we put into contrib or something...
A possible etc/MH-E-NEWS entry might be:
* Changes in MH-E 7.90
...
** Bug Fixes in MH-E 7.90
...
*** mh-mime-display and mh-mm-inline-message
These functions have been enhanced to use mm-uu-dissect-text-parts to
deal with more kinds of encapsulated MIME types. This, in conjunction
with a patch to gnus-5.10.6 or an unpatched gnus-5.10.7 or gnus-5.11
will allow OpenPGP encrypted or signed email in a format=flowed text
Content-type to be properly recognized.
It is late, and I am not sure I like what I wrote, but you get the idea
of what you can say...
\-- Mark
[[End of PGP Signed Part]]