Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: pgg-sign(encrypt)-region works but sign tag is ignored
Date: Wed, 06 Dec 2006 10:29:29 +0900	[thread overview]
Message-ID: <b4mac214xs6.fsf@jpl.org> (raw)
In-Reply-To: <871wne8tk0.fsf@mat.ucm.es>

>>>>> In <871wne8tk0.fsf@mat.ucm.es> Uwe Brauer wrote:

> This seems really odd, I can sign/encrypt now a region with
> pgg-sign(encrypt)-region
> but when I use
> C-c C-m s p
> and then want to send the mail, I am asked for the passwd but then
> nothing happens. So this now looks as a mml problem.

Please do some tests.  For every Elisp form, copy it to the
*scratch* buffer and type `C-j' at the rightmost position of the
last line.

1. Check whether the `with-syntax-table' macro, which
   `mml-parse' uses, works.

--8<---------------cut here---------------start------------->8---
(let ((table (copy-syntax-table emacs-lisp-mode-syntax-table)))
  (modify-syntax-entry ?= " " table)
  (with-temp-buffer
    (with-syntax-table table
      (insert "foo=bar")
      (goto-char (point-min))
      (forward-sexp 1)
      (eolp))))
--8<---------------cut here---------------end--------------->8---

   It should return nil.  There is still a known bug in XEmacs
   21.5.  Though you're using XEmacs 21.4.18 (with no mule, no
   file-coding), I cannot test it since I have only the latest
   XEmacs 21.4.19.

2. Check whether the `mml-parse' function parses a MML tag.

--8<---------------cut here---------------start------------->8---
(with-temp-buffer
  (insert "<#secure method=pgpmime mode=sign>\n")
  (goto-char (point-min))
  (require 'mml)
  (mml-parse))
--8<---------------cut here---------------end--------------->8---

   It should return:

   ((part (sign . "pgpmime") (tag-location . 1) (contents . "")))

   If the `with-syntax-table' macro doesn't work, you will not
   get this.

3. Check whether a MML function generates a signed message.

--8<---------------cut here---------------start------------->8---
(with-temp-buffer
  (mml-generate-mime-1 '(part (sign . "pgpmime")
			      (tag-location . 1)
			      (contents . "testing.\n")))
  (buffer-string))
--8<---------------cut here---------------end--------------->8---

   You might have to use the following instead.

--8<---------------cut here---------------start------------->8---
(with-temp-buffer
  (mml-generate-mime-1 '(part (sign . "pgpmime")
			      (tag-location . 1)
			      (contents . "testing.\n")
			      (sender . "oub")))
  (buffer-string))
--8<---------------cut here---------------end--------------->8---

   It should return a signed message.

  reply	other threads:[~2006-12-06  1:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-05 11:34 Uwe Brauer
2006-12-06  1:29 ` Katsumi Yamaoka [this message]
2006-12-12 16:05   ` Uwe Brauer

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=b4mac214xs6.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /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).