Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (David S. Goldberg)
Subject: Re: magic numbers in mm-view.el
Date: Mon, 13 Jun 2005 10:48:30 -0400	[thread overview]
Message-ID: <mj7oeaanwht.fsf@mm117419-pc.MITRE.ORG> (raw)
In-Reply-To: <ilu7jh2eyy0.fsf@latte.josefsson.org> (Simon Josefsson's message of "Fri, 10 Jun 2005 22:31:19 +0200")

>>>>> On Fri, 10 Jun 2005 22:31:19 +0200, Simon Josefsson <jas@extundo.com> 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






  reply	other threads:[~2005-06-13 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-10 17:59 David S. Goldberg
2005-06-10 20:31 ` Simon Josefsson
2005-06-13 14:48   ` David S. Goldberg [this message]
2005-06-10 21:02 ` Arne Jørgensen
2013-06-09 17:37 ` Roy Hashimoto
2013-06-10  4:57   ` Daiki Ueno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mj7oeaanwht.fsf@mm117419-pc.MITRE.ORG \
    --to=david.goldberg6@verizon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).