From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60443 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (David S. Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: magic numbers in mm-view.el Date: Mon, 13 Jun 2005 10:48:30 -0400 Organization: I Yam What I Yam Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118674132 29318 80.91.229.2 (13 Jun 2005 14:48:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 14:48:52 +0000 (UTC) Original-X-From: ding-owner+M8970@lists.math.uh.edu Mon Jun 13 16:48:51 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DhqEq-0000Xi-07 for ding-account@gmane.org; Mon, 13 Jun 2005 16:48:32 +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 1DhqF9-0003di-00; Mon, 13 Jun 2005 09:48:51 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DhqF2-0003dc-00 for ding@lists.math.uh.edu; Mon, 13 Jun 2005 09:48:44 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DhqF0-0006MV-KE for ding@lists.math.uh.edu; Mon, 13 Jun 2005 09:48:42 -0500 Original-Received: from smtp-bedford-x.mitre.org ([192.160.51.76] helo=smtp-bedford.mitre.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DhqEz-0006QM-00 for ; Mon, 13 Jun 2005 16:48:41 +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 j5DEmc227865 for ; Mon, 13 Jun 2005 10:48:38 -0400 Original-Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (Postfix) with ESMTP id E49E5BF00 for ; Mon, 13 Jun 2005 10:48:37 -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 j5DEmba27832 for ; Mon, 13 Jun 2005 10:48:37 -0400 Original-Received: from blackbird.mitre.org (129.83.50.102) by mailhub2.mitre.org with SMTP id 13032121; Mon, 13 Jun 2005 10:48:31 -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 In-Reply-To: (Simon Josefsson's message of "Fri, 10 Jun 2005 22:31:19 +0200") 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:60443 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60443 >>>>> On Fri, 10 Jun 2005 22:31:19 +0200, Simon Josefsson said: > Either you could simply replace those '.' with \(.\|\n\), but I think > maintainability suggest getting rid of the entire char-list and > replace it with something simpler. Perhaps you can use `format' and > have the argument contain the printable characters, and regexp > keywords, and use %c or something for the escaped characters. I'm not sure this is what you have in mind, but I now have the follwing in my .gnus and am able to read all the smime encrypted mails I've got: (setq mm-pkcs7-enveloped-magic (format "0\\(%c\\|%c\\(.\\|%c\\)\\|%c\\(.\\|%c\\)\\(.\\|%c\\)\\|%c\\(.\\|%c\\)\\(.\\|%c\\)\\(.\\|%c\\)\\)%c%c\\*%cH%c%c%c%c%c%c" ?\x80 ?\x81 ?\n ?\x82 ?\n ?\n ?\x83 ?\n ?\n ?\n ?\x06 ?\x09 ?\x86 ?\x86 ?\xf7 ?\x0d ?\x01 ?\x07 ?\x03)) I don't know enough about coding systems to know how to properly apply the current call to mm-string-as-unibyte. According to my (now using MULE) XEmacs it does nothing but that may not be a universal thing. Thanks, -- Dave Goldberg david.goldberg6@verizon.net