From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60439 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: magic numbers in mm-view.el Date: Fri, 10 Jun 2005 13:59:25 -0400 Organization: I Yam What I Yam Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118432533 12594 80.91.229.2 (10 Jun 2005 19:42:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2005 19:42:13 +0000 (UTC) Original-X-From: ding-owner+M8966@lists.math.uh.edu Fri Jun 10 21:42:09 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgpNT-0002CO-V4 for ding-account@gmane.org; Fri, 10 Jun 2005 21:41:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DgpEt-0002i8-00; Fri, 10 Jun 2005 14:32:23 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dgnn8-0002VQ-00 for ding@lists.math.uh.edu; Fri, 10 Jun 2005 12:59:38 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dgnn5-0003SP-58 for ding@lists.math.uh.edu; Fri, 10 Jun 2005 12:59:35 -0500 Original-Received: from smtpproxy1.mitre.org ([192.160.51.76] helo=smtp-bedford.mitre.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dgnn3-0004x6-00 for ; Fri, 10 Jun 2005 19:59:33 +0200 Original-Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with SMTP id j5AHxUB15423 for ; Fri, 10 Jun 2005 13:59:30 -0400 Original-Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (Postfix) with ESMTP id 3F1CEBF7E for ; Fri, 10 Jun 2005 13:59:30 -0400 (EDT) Original-Received: from MAILHUB2 (mailhub2.mitre.org [129.83.28.8]) by smtp-bedford.mitre.org (8.11.6/8.11.6) with ESMTP id j5AHxU415390 for ; Fri, 10 Jun 2005 13:59:30 -0400 Original-Received: from blackbird.mitre.org (129.83.50.102) by mailhub2.mitre.org with SMTP id 13000993; Fri, 10 Jun 2005 13:59:26 -0400 Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (cygwin32) X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60439 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60439 If I use the #secure tag to send an encrypted s/mime email to others and include a copy for myself, I am unable to read my copy in Gnus. I am able to decrypt and verify it (assuming it's signed as well) by manually running Openssl on the message file and am also able to do so in Thunderbird. Oddly enough, if I build a multipart structure for the message using #multipart instead of #secure I don't have this problem. But because the structure of the message is apparently not a problem for OpenSSL or Thunderbird, I believe that the problem is that the mm-pkcs7-enveloped-magic variable is not sufficient to cover all cases. Running (pp mm-pkcs7-enveloped-magic) gives "0\\(=80\\|=81.\\|=82..\\|=83...\\)=06 \\*=86H=86=F7=0D=01=07=03" So it's already a regular expression. Here's what I see: "0=82\n=CD=06 *=86H=86=F7=0D=01=07=03" The problem is that the '\n' after the \202 does not match the . in the regular expression. It seems it shouldn't be too hard to fix. Just put [.\n] instead of just . in those locations. However, in mm-view.el we have (defvar mm-pkcs7-enveloped-magic (mm-string-as-unibyte (mapconcat 'char-to-string (list ?\x30 ?\x5c ?\x28 ?\x80 ?\x5c ?\x7c ?\x81 ?\x2e ?\x5c ?\x7c ?\x82 ?\x2e ?\x2e ?\x5c ?\x7c ?\x83 ?\x2e ?\x2e ?\x2e ?\x5c ?\x29 ?\x06 ?\x09 ?\x5c ?\x2a ?\x86 ?\x48 ?\x86 ?\xf7 ?\x0d ?\x01 ?\x07 ?\x03) ""))) And I am unsure how to work the fix into that construct. I'd be glad to do it but need a bit of guidance on how to translate the characters. On a somewhat related note, at one point I seem to recall someone posting a patch to support the use of the application/x-pkcs7-mime type for signed messages (as opposed to encrypted and signed). I'm starting to see some of those show up more at work now that we're migrating to Exchange. Did that not work? Thanks, --=20 Dave Goldberg david.goldberg6@verizon.net