Gnus development mailing list
 help / color / mirror / Atom feed
* sign all top-level parts regardless of MIME...
@ 1999-04-26 17:56 William M. Perry
  1999-04-26 18:44 ` Stainless Steel Rat
  0 siblings, 1 reply; 8+ messages in thread
From: William M. Perry @ 1999-04-26 17:56 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anybody got a better way to do this?  I had to use an indirect buffer
because mc-sign-region tries to search forward for mail-header-separator if 
you are in message-mode.

(defun wmperry-sign-message ()
  (save-excursion
    (set-buffer (make-indirect-buffer (current-buffer) (generate-new-buffer-name " *sign-temp*")))
    (text-mode)
    (goto-char (point-min))
    (if (re-search-forward mail-header-separator nil t)
	(progn
	  (forward-line 1)
	  (narrow-to-region (progn (beginning-of-line) (point)) (point-max))))
    (let ((parts (mml-parse))
	  (current nil)
	  (type nil)
	  (disposition nil)
	  (contents nil))
      (goto-char (point-min))
      (while parts
	(setq current (cdr (pop parts))
	      type (cdr-safe (assq 'type current))
	      disposition (cdr-safe (assq 'disposition current))
	      contents (cdr-safe (assq 'contents current)))
	(if (and (/= 0 (length contents)) (string-match "^text/" type)
		 (search-forward contents nil t))
	    (mc-sign-region 0 (match-beginning 0) (match-end 0)))))
    (kill-buffer (current-buffer))))

- -Bill P.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3JKi/CIe2ehvl/X4RAkwQAKCqCgv9IkytZ5ErU/s8aNserNU+igCdG6IV
QvRnfIy+JkkdonHxr2bPHZU=
=NiUj
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sign all top-level parts regardless of MIME...
  1999-04-26 17:56 sign all top-level parts regardless of MIME William M. Perry
@ 1999-04-26 18:44 ` Stainless Steel Rat
  1999-04-26 19:17   ` William M. Perry
  1999-04-27 22:10   ` variable is void: enable-multibyte-characters Mike Andersen
  0 siblings, 2 replies; 8+ messages in thread
From: Stainless Steel Rat @ 1999-04-26 18:44 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* wmperry@aventail.com (William M. Perry)  on Mon, 26 Apr 1999
| Anybody got a better way to do this?  I had to use an indirect buffer
| because mc-sign-region tries to search forward for mail-header-separator
| if you are in message-mode.

This is true for older versions of mailcrypt.  The current version, 3.5.1,
appears not to do this (so says my skimming of the logic path).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3JLQMgl+vIlSVSNkRAi2wAJ9C8UwXabJyC2MAhJN4ROnA3pxF5ACgqdVB
XwuiQe1Er2vUVk+SVKyKc6c=
=xyzO
-----END PGP SIGNATURE-----

-- 
Rat <ratinox@peorth.gweep.net>    \ Happy Fun Ball contains a liquid core,
Minion of Nathan - Nathan says Hi! \ which, if exposed due to rupture, should
PGP Key: at a key server near you!  \ not be touched, inhaled, or looked at.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sign all top-level parts regardless of MIME...
  1999-04-26 18:44 ` Stainless Steel Rat
@ 1999-04-26 19:17   ` William M. Perry
  1999-04-26 22:01     ` Stainless Steel Rat
  1999-04-27 22:10   ` variable is void: enable-multibyte-characters Mike Andersen
  1 sibling, 1 reply; 8+ messages in thread
From: William M. Perry @ 1999-04-26 19:17 UTC (permalink / raw)
  Cc: (ding)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stainless Steel Rat <ratinox@peorth.gweep.net> writes:

> * wmperry@aventail.com (William M. Perry)  on Mon, 26 Apr 1999
> | Anybody got a better way to do this?  I had to use an indirect buffer
> | because mc-sign-region tries to search forward for mail-header-separator
> | if you are in message-mode.
> 
> This is true for older versions of mailcrypt.  The current version, 3.5.1,
> appears not to do this (so says my skimming of the logic path).

I just downloaded 3.5.3 yesterday, and it still does it. :( This is using
message-mode.

- -bp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3JLvYCIe2ehvl/X4RAqrzAJ0VBIE50aTdTdUa42dISxMT0rq1LgCfVIOL
LWvrZa4w6I5YVt5liZd7rCk=
=kjCb
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: sign all top-level parts regardless of MIME...
  1999-04-26 19:17   ` William M. Perry
@ 1999-04-26 22:01     ` Stainless Steel Rat
  0 siblings, 0 replies; 8+ messages in thread
From: Stainless Steel Rat @ 1999-04-26 22:01 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* wmperry@aventail.com (William M. Perry)  on Mon, 26 Apr 1999
| I just downloaded 3.5.3 yesterday, and it still does it. :( This is using
| message-mode.

Weird.  Well, I am inclined to call it a misfeature on the part of
mailcrypt.  mc-sign-region should just sign the region, nothing more.
Other than fixing the problem in mailcrypt, I cannot think of a good
workaround.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3JOI+gl+vIlSVSNkRAprfAKD8XOADXnKa8xATf0iiZzEEMfGCCgCgkUkP
skRKaGr++hZB+sU1hhWJDaU=
=dRtU
-----END PGP SIGNATURE-----

-- 
Rat <ratinox@peorth.gweep.net>    \ Caution: Happy Fun Ball may suddenly
Minion of Nathan - Nathan says Hi! \ accelerate to dangerous speeds.
PGP Key: at a key server near you!  \ 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* variable is void: enable-multibyte-characters
  1999-04-26 18:44 ` Stainless Steel Rat
  1999-04-26 19:17   ` William M. Perry
@ 1999-04-27 22:10   ` Mike Andersen
  1999-04-28 12:57     ` Jan Vroonhof
  1 sibling, 1 reply; 8+ messages in thread
From: Mike Andersen @ 1999-04-27 22:10 UTC (permalink / raw)


I'm currently using Xemacs 21.0 and P#&@%$!? Gnus v0.83 (Can't pronounce
it, can't spell it :)

When I saves a news message in default format ("o"), and then try to
select a new article, I get:

        Symbol's value as variable is void: enable-multibyte-characters

Setting it to nil solves the problem, but I guess it's suppose to have a 
default value?

-- 
I hate the term "user friendly".  People balk if they have to learn a
different way of doing something.                 --Douglas Engelbart



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: variable is void: enable-multibyte-characters
  1999-04-27 22:10   ` variable is void: enable-multibyte-characters Mike Andersen
@ 1999-04-28 12:57     ` Jan Vroonhof
  1999-04-29 10:12       ` Mike Andersen
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Vroonhof @ 1999-04-28 12:57 UTC (permalink / raw)


Mike Andersen <mike.andersen@canaldigital.com> writes:

>         Symbol's value as variable is void: enable-multibyte-characters
> 
> Setting it to nil solves the problem, but I guess it's suppose to have a 
> default value?

What version of 21.0 are you running? Mine says:

enable-multibyte-characters' is a built-in boolean variable.

Value: t

Documentation:
Emacs Compatible; Unimplemented

Non-nil means the buffer contents are regarded as multi-byte form
of characters, not a binary code.  This affects the display, file I/O,
and behaviors of various editing commands.

Setting this to nil does not do anything.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: variable is void: enable-multibyte-characters
  1999-04-28 12:57     ` Jan Vroonhof
@ 1999-04-29 10:12       ` Mike Andersen
  1999-04-30 12:37         ` Jan Vroonhof
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Andersen @ 1999-04-29 10:12 UTC (permalink / raw)



[Mike Andersen]
| 
|         Symbol's value as variable is void: enable-multibyte-characters
| 
| Setting it to nil solves the problem, but I guess it's suppose to have a 
| default value?

[Jan Vroonhof]
| 
| What version of 21.0 are you running? 

XEmacs/21.0(beta67) (20 minutes to Nikko)

| enable-multibyte-characters' is a built-in boolean variable.
| 
| Value: t
| 
| Documentation:
| Emacs Compatible; Unimplemented

        `enable-multibyte-characters' is a variable declared in Lisp.

        Value: nil

        Documentation:
        not documented as a variable.

But I gave it a nil value in my .gnus file...

| Setting this to nil does not do anything.

Well, if nothing else, it get's a value. :-)

-- 
I hate the term "user friendly".  People balk if they have to learn a
different way of doing something.                 --Douglas Engelbart



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: variable is void: enable-multibyte-characters
  1999-04-29 10:12       ` Mike Andersen
@ 1999-04-30 12:37         ` Jan Vroonhof
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Vroonhof @ 1999-04-30 12:37 UTC (permalink / raw)


Mike Andersen <mike.andersen@canaldigital.com> writes:

> 
> XEmacs/21.0(beta67) (20 minutes to Nikko)

Mule or Non mule? The diffence is may that I am running XEmacs-Mule.

Jan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-04-30 12:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-26 17:56 sign all top-level parts regardless of MIME William M. Perry
1999-04-26 18:44 ` Stainless Steel Rat
1999-04-26 19:17   ` William M. Perry
1999-04-26 22:01     ` Stainless Steel Rat
1999-04-27 22:10   ` variable is void: enable-multibyte-characters Mike Andersen
1999-04-28 12:57     ` Jan Vroonhof
1999-04-29 10:12       ` Mike Andersen
1999-04-30 12:37         ` Jan Vroonhof

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).