Gnus development mailing list
 help / color / mirror / Atom feed
* mailcrypt
@ 1998-08-23  3:56 Phil Humpherys
  1998-08-23 12:29 ` mailcrypt Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Phil Humpherys @ 1998-08-23  3:56 UTC (permalink / raw)



I use PGP 5.0, and downloaded the latest mailcrypt for PGP 5.0.
I compiled it, placed the .el and .elc files in my ~/emacs
directory where my .emacs loads them.  I have the following in my
.emacs as per the documentation:

(autoload 'mc-setversion "mailcrypt" "Select PGP version" t)
(mc-setversion "5.0") ;; Alternately, "2.6"
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'news-reply-mode-hook 'mc-install-write-mode)

So, when I text in a buffer that I try to encrypt, I do C-c / s,
and it just beeps and does nothing...  I'm close, but need some
help...  anyone?


-- 
Phil Humpherys <phumpherys@utah-inter.net>   DriverSoft
Unix Systems Administrator                   Mobile: +1.801.725.3257 
WWW/PGPkeys: http://www.spire.com/~humphery



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

* Re: mailcrypt
  1998-08-23  3:56 mailcrypt Phil Humpherys
@ 1998-08-23 12:29 ` Lars Magne Ingebrigtsen
  1998-08-23 18:30   ` mailcrypt Dave Love
  0 siblings, 1 reply; 13+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-08-23 12:29 UTC (permalink / raw)


Phil Humpherys <phumpherys@utah-inter.net> writes:

> So, when I text in a buffer that I try to encrypt, I do C-c / s,
> and it just beeps and does nothing...  I'm close, but need some
> help...  anyone?

Uhm...  I sorta changed gnus-article-hide-pgp to actually delete the
PGP stuff instead of hiding it.  (This made it much, much easier to do
other things with the article buffer, like applying PGP-signed
patches, which was difficult before.)  I was afraid it would break
Mailcrypt, but fixing this in Mailcrypt should be trivial -- it just
has to peek into gnus-original-article-buffer instead of
gnus-article-buffer.

But if this is a major hassle, I can go back to the old behavior...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: mailcrypt
  1998-08-23 12:29 ` mailcrypt Lars Magne Ingebrigtsen
@ 1998-08-23 18:30   ` Dave Love
  0 siblings, 0 replies; 13+ messages in thread
From: Dave Love @ 1998-08-23 18:30 UTC (permalink / raw)
  Cc: lbudney

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

 Lars> Uhm...  I sorta changed gnus-article-hide-pgp to actually delete the
 Lars> PGP stuff instead of hiding it.

Actually other washing can cause trouble anyway.

 Lars> I was afraid it would break Mailcrypt, but fixing this in
 Lars> Mailcrypt should be trivial -- it just has to peek into
 Lars> gnus-original-article-buffer instead of gnus-article-buffer.

Indeed.  I thought I'd sent this off, but it doesn't look as though I
did.  The patch is against 3.5b4 but was essentially the same for 3.4.
(IIRC it was at Toby Speight's suggestion, to cope with ^Ls before his
sig.)

1998-07-28  Dave Love  <d.love@dl.ac.uk>

	* mc-toplev.el (mc-gnus-verify-signature, mc-gnus-snarf-keys): Use
	(unmolested) gnus-original-article-buffer.

*** mc-toplev.el	1998/07/28 18:10:03	1.1
--- mc-toplev.el	1998/07/28 18:10:53
***************
*** 528,540 ****
  (defun mc-gnus-verify-signature ()
    (interactive)
    (gnus-summary-select-article)
!   (gnus-eval-in-buffer-window gnus-article-buffer
      (save-restriction (widen) (mc-verify-signature))))
  
  (defun mc-gnus-snarf-keys ()
    (interactive)
    (gnus-summary-select-article)
!   (gnus-eval-in-buffer-window gnus-article-buffer
      (save-restriction (widen) (mc-snarf-keys))))
  
  (defun mc-gnus-decrypt-message ()
--- 528,540 ----
  (defun mc-gnus-verify-signature ()
    (interactive)
    (gnus-summary-select-article)
!   (gnus-eval-in-buffer-window gnus-original-article-buffer
      (save-restriction (widen) (mc-verify-signature))))
  
  (defun mc-gnus-snarf-keys ()
    (interactive)
    (gnus-summary-select-article)
!   (gnus-eval-in-buffer-window gnus-original-article-buffer
      (save-restriction (widen) (mc-snarf-keys))))
  
  (defun mc-gnus-decrypt-message ()



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

* Re: mailcrypt
  1999-04-23 16:14     ` mailcrypt Alexandre Oliva
@ 1999-04-23 16:43       ` François Pinard
  0 siblings, 0 replies; 13+ messages in thread
From: François Pinard @ 1999-04-23 16:43 UTC (permalink / raw)
  Cc: ratinox, ding

Alexandre Oliva <oliva@dcc.unicamp.br> écrit:

> Seems like it had been byte-compiled with GNU Emacs.  In this case,
> it may not run within XEmacs.

wmperry@aventail.com (William M. Perry) écrit:

> I believe the problem with mailcrypt is that it uses some 'internal'
> functions to Gnus that are macros, so the do not play well when switching
> from version to version (of Gnus).  I don't know why you have to recompile
> for Emacs->XEmacs other than the obvious mule stuff.

Lee Willis <lee@gbdirect.co.uk> écrit:

> I think he was implying that if you're running byte-compiled code it
> must be byte-compiled for the correct version of Emacs that you are
> using, ie you can't run a PGP compiled for emacs 19.34 with say emacs
> 20.3, or something to that effect rather than it being a byte-compiled
> versus source issue.

OK, I missed the point that we were comparing two byte-compiled versions.
I thought that our national Rat was saying that it would not have worked
in source form.  My surprise and question came from there... :-)

-- 
François Pinard                            mailto:pinard@iro.umontreal.ca
Join the free Translation Project!    http://www.iro.umontreal.ca/~pinard


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

* Re: mailcrypt
  1999-04-23 16:06   ` mailcrypt François Pinard
  1999-04-23 16:14     ` mailcrypt Alexandre Oliva
  1999-04-23 16:19     ` mailcrypt William M. Perry
@ 1999-04-23 16:27     ` Lee Willis
  2 siblings, 0 replies; 13+ messages in thread
From: Lee Willis @ 1999-04-23 16:27 UTC (permalink / raw)


François Pinard <pinard@iro.umontreal.ca> writes:

> > PH> I have PGP 5.0, and had mailcrypt working fine under emacs, but
> > PH> when I went to xemacs (20.4), I get an error message when I fire
> > PH> up emacs that states that it can't set version 5.0.
> 
> > mailcrypt must be byte-compiled for the Emacs and Gnus you are using,
> > otherwise it will not work.
> 
> How could it make such a difference?  I thought that running byte-compiled or
> not should not make a difference, or else, I would see a bug.  Don't you?

I think he was implying that if you're running byte-compiled code it
must be byte-compiled for the correct version of Emacs that you are
using, ie you can't run a PGP compiled for emacs 19.34 with say emacs
20.3, or something to that effect rather than it being a byte-compiled
versus source issue.

Lee.
-- 
I was doing object-oriented assembly at 1 year old ...  
For some reason my mom insists on calling it "Playing with blocks"


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

* Re: mailcrypt
  1999-04-23 16:06   ` mailcrypt François Pinard
  1999-04-23 16:14     ` mailcrypt Alexandre Oliva
@ 1999-04-23 16:19     ` William M. Perry
  1999-04-23 16:27     ` mailcrypt Lee Willis
  2 siblings, 0 replies; 13+ messages in thread
From: William M. Perry @ 1999-04-23 16:19 UTC (permalink / raw)
  Cc: ratinox, ding

François Pinard <pinard@iro.umontreal.ca> writes:

> Hi, people.  I was re-reading old mail.
> 
> > PH> I have PGP 5.0, and had mailcrypt working fine under emacs, but
> > PH> when I went to xemacs (20.4), I get an error message when I fire
> > PH> up emacs that states that it can't set version 5.0.
> 
> > mailcrypt must be byte-compiled for the Emacs and Gnus you are using,
> > otherwise it will not work.
> 
> How could it make such a difference?  I thought that running byte-compiled or
> not should not make a difference, or else, I would see a bug.  Don't you?

I believe the problem with mailcrypt is that it uses some 'internal'
functions to Gnus that are macros, so the do not play well when switching
from version to version (of Gnus).

I don't know why you have to recompile for Emacs->XEmacs other than the
obvious mule stuff.

-Bill P.


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

* Re: mailcrypt
  1999-04-23 16:06   ` mailcrypt François Pinard
@ 1999-04-23 16:14     ` Alexandre Oliva
  1999-04-23 16:43       ` mailcrypt François Pinard
  1999-04-23 16:19     ` mailcrypt William M. Perry
  1999-04-23 16:27     ` mailcrypt Lee Willis
  2 siblings, 1 reply; 13+ messages in thread
From: Alexandre Oliva @ 1999-04-23 16:14 UTC (permalink / raw)
  Cc: ratinox, ding

On Apr 23, 1999, François Pinard <pinard@iro.umontreal.ca> wrote:

> Hi, people.  I was re-reading old mail.
PH> I have PGP 5.0, and had mailcrypt working fine under emacs, but
PH> when I went to xemacs (20.4), I get an error message when I fire
PH> up emacs that states that it can't set version 5.0.

>> mailcrypt must be byte-compiled for the Emacs and Gnus you are using,
>> otherwise it will not work.

> How could it make such a difference?  I thought that running byte-compiled or
> not should not make a difference, or else, I would see a bug.

Seems like it had been byte-compiled with GNU Emacs.  In this case, it 
may not run within XEmacs.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



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

* Re: mailcrypt
       [not found] ` <x7btorn22v.fsf@peorth.gweep.net>
  1998-09-08  0:33   ` mailcrypt Phil Humpherys
@ 1999-04-23 16:06   ` François Pinard
  1999-04-23 16:14     ` mailcrypt Alexandre Oliva
                       ` (2 more replies)
  1 sibling, 3 replies; 13+ messages in thread
From: François Pinard @ 1999-04-23 16:06 UTC (permalink / raw)
  Cc: ding

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Hi, people.  I was re-reading old mail.

> PH> I have PGP 5.0, and had mailcrypt working fine under emacs, but
> PH> when I went to xemacs (20.4), I get an error message when I fire
> PH> up emacs that states that it can't set version 5.0.

> mailcrypt must be byte-compiled for the Emacs and Gnus you are using,
> otherwise it will not work.

How could it make such a difference?  I thought that running byte-compiled or
not should not make a difference, or else, I would see a bug.  Don't you?

-- 
François Pinard                            mailto:pinard@iro.umontreal.ca
Join the free Translation Project!    http://www.iro.umontreal.ca/~pinard


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

* Re: mailcrypt
       [not found] ` <x7btorn22v.fsf@peorth.gweep.net>
@ 1998-09-08  0:33   ` Phil Humpherys
  1999-04-23 16:06   ` mailcrypt François Pinard
  1 sibling, 0 replies; 13+ messages in thread
From: Phil Humpherys @ 1998-09-08  0:33 UTC (permalink / raw)



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

> mailcrypt must be byte-compiled for the Emacs and Gnus you are
> using, otherwise it will not work.

For mailcrypt-3.5b5, I did:

./configure 
make EMACS=xemacs
make install EMACS=xemacs

On that last one, I get this:

/usr/bin/install: mc-pgp5.elc: No such file or directory
/usr/bin/install: expect.elc: No such file or directory

That looks like a problem....  any ideas?

--
Phil Humpherys <phumpherys@utah-inter.net>   DriverSoft
Unix Systems Administrator                   Mobile: +1.801.725.3257 
WWW/PGPkeys: http://www.spire.com/~humphery



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

* Re: mailcrypt
  1998-09-07  6:02 mailcrypt Phil Humpherys
@ 1998-09-07  6:39 ` Stefan Waldherr
       [not found] ` <x7btorn22v.fsf@peorth.gweep.net>
  1 sibling, 0 replies; 13+ messages in thread
From: Stefan Waldherr @ 1998-09-07  6:39 UTC (permalink / raw)


>>>>> "Phil" == Phil Humpherys <phumpherys@utah-inter.net> writes:

  Phil> I have PGP 5.0, and had mailcrypt working fine under emacs, but when I
  Phil> went to xemacs (20.4), I get an error message when I fire up emacs
  Phil> that states that it can't set version 5.0.

  Phil> When compiling, I did 'make install EMACS=xemacs' as per the
  Phil> instructions...

Here the fragment from .emacs. Note the `pgp50' and not `5.0'.
;;
;; mailcrypt and pgp5 for emacs and xemacs
;;
(load-library "mailcrypt")
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'news-reply-mode-hook 'mc-install-write-mode)
;; Alternately, "2.6"
(mc-setversion "pgp50")
;; If t, decrypt mail messages in place without prompting.
(setq mc-always-replace 'never)

cu
Stefan.
-- 
Stefan Waldherr                   fax +49 431 8058 136
                               e-Mail swa@cs.cmu.edu
                                  www http://www.waldherr.org/


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

* mailcrypt
@ 1998-09-07  6:02 Phil Humpherys
  1998-09-07  6:39 ` mailcrypt Stefan Waldherr
       [not found] ` <x7btorn22v.fsf@peorth.gweep.net>
  0 siblings, 2 replies; 13+ messages in thread
From: Phil Humpherys @ 1998-09-07  6:02 UTC (permalink / raw)




I have PGP 5.0, and had mailcrypt working fine under emacs, but
when I went to xemacs (20.4), I get an error message when I fire
up emacs that states that it can't set version 5.0.

When compiling, I did 'make install EMACS=xemacs' as per the
instructions...

Any thoughts?

--
Phil Humpherys <phumpherys@utah-inter.net>   DriverSoft
Unix Systems Administrator                   Mobile: +1.801.725.3257 
WWW/PGPkeys: http://www.spire.com/~humphery



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

* Re: mailcrypt
  1998-08-24  3:54 mailcrypt Phil Humpherys
@ 1998-08-25  5:54 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 13+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-08-25  5:54 UTC (permalink / raw)


Phil Humpherys <phumpherys@utah-inter.net> writes:

> I've tried all kinds of permutations of commenting and
> uncommenting these lines.  I start a gnus compose buffer, try C-c
> e, and it beeps and nothing happens.  What am I missing??

Have you applied Dave Love's patch to Mailcrypt that was posted here
yesterday? 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* mailcrypt
@ 1998-08-24  3:54 Phil Humpherys
  1998-08-25  5:54 ` mailcrypt Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 13+ messages in thread
From: Phil Humpherys @ 1998-08-24  3:54 UTC (permalink / raw)



I'm still having trouble getting mailcrypt to work...  here's
what I have in .emacs:

[phumpherys@swansong humphery]$ grep mc .emacs
(autoload 'mc-setversion "mailcrypt" "Select PGP version" t)
(mc-setversion "5.0") ;; Alternately, "2.6"
(add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
(add-hook 'news-reply-mode-hook 'mc-install-write-mode)
;(autoload 'mc-encrypt-message "mailcrypt" nil t)
;(autoload 'mc-sign-message "mailcrypt" nil t)
;(autoload 'mc-insert-public-key "mailcrypt" nil t)
;(defun mc-install-write-mode ()
;      (mc-create-write-menu-bar))
;  (local-set-key "\C-ce" 'mc-encrypt-message)
;  (local-set-key "\C-cs" 'mc-sign-message)
;  (local-set-key "\C-ca" 'mc-insert-public-key))

I've tried all kinds of permutations of commenting and
uncommenting these lines.  I start a gnus compose buffer, try C-c
e, and it beeps and nothing happens.  What am I missing??

-- 
Phil Humpherys <phumpherys@utah-inter.net>   DriverSoft
Unix Systems Administrator                   Mobile: +1.801.725.3257 
WWW/PGPkeys: http://www.spire.com/~humphery



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

end of thread, other threads:[~1999-04-23 16:43 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-23  3:56 mailcrypt Phil Humpherys
1998-08-23 12:29 ` mailcrypt Lars Magne Ingebrigtsen
1998-08-23 18:30   ` mailcrypt Dave Love
1998-08-24  3:54 mailcrypt Phil Humpherys
1998-08-25  5:54 ` mailcrypt Lars Magne Ingebrigtsen
1998-09-07  6:02 mailcrypt Phil Humpherys
1998-09-07  6:39 ` mailcrypt Stefan Waldherr
     [not found] ` <x7btorn22v.fsf@peorth.gweep.net>
1998-09-08  0:33   ` mailcrypt Phil Humpherys
1999-04-23 16:06   ` mailcrypt François Pinard
1999-04-23 16:14     ` mailcrypt Alexandre Oliva
1999-04-23 16:43       ` mailcrypt François Pinard
1999-04-23 16:19     ` mailcrypt William M. Perry
1999-04-23 16:27     ` mailcrypt Lee Willis

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