Gnus development mailing list
 help / color / mirror / Atom feed
* Re: Attached pgp and mailcrypt
       [not found]     ` <vaf66o834w3.fsf@lucy.cs.uni-dortmund.de>
@ 2000-09-07 12:20       ` Harry Putnam
  2000-09-08  9:54         ` Kai Großjohann
       [not found]       ` <m2d7ig4dle.fsf@gnus-5.8.8-cvs.now.playing>
  1 sibling, 1 reply; 13+ messages in thread
From: Harry Putnam @ 2000-09-07 12:20 UTC (permalink / raw)


The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> On 06 Sep 2000, Harry Putnam wrote:
> 
> > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> > 
> >> On the CVS server, there is rfc2015.el; does that do anything
> >> useful?  kai
> > 
> > No..
> > 
> > I did cvs update in ~/pgnus found and loaded the rfc2015.el
> 
> Did you do (rfc2015-setup)?  The comment near the top of the file says
> that's required.

(NOTE: Since this topic is better directed to ding list I've sent a copy of
this post there as well.)

As reported, in a post not yet on the server.  I had neglected (rfc2015-setup)
and find the decoding works after M-: (rfc2015-setup)<RET>. 


But since the comment is absolutely devoid of direction, its not at
all clear what a user is supposed to do with it.

I tried ... in ~/.gnus:
(load "rfc2015.elc)   ...(after bytecompiling and placing in
~/pgnus/lisp)

Followed by:
(rfc2015-setup)

This gives the message  " symbols function definition is void...."
When loading gnus.

Is one expected to `eval' (rfc2015-setup) for each usage?

I've also tried:
(require 'rfc2015)
(rfc2015-setup)

In .gnus with same error message.




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

* Re: Attached pgp and mailcrypt
       [not found]         ` <vaf7l8oxmg5.fsf@lucy.cs.uni-dortmund.de>
@ 2000-09-07 23:34           ` Harry Putnam
  0 siblings, 0 replies; 13+ messages in thread
From: Harry Putnam @ 2000-09-07 23:34 UTC (permalink / raw)
  Cc: ding

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> On 07 Sep 2000, Harry Putnam wrote:
> 
> > Ahaa.... now we're talking.  It wasn't clear to me  what that tiny
> > comment called for exactly.  But after M-: (rc2015-setup)<RET>
> 
> Ah, yes.  Maybe it could have been slightly longer.  Something like
> this:
> 
> /----
> | Installation:  Put the following line in ~/.emacs or ~/.gnus:
> | (rfc2015-setup)
> | Also don't forget to put this file into a directory on the load-path.
> | 
> | Usage:  Insert an attribute, postprocess=pgp-sign (or pgp-encrypt),
> | into the mml tag to be signed (or encrypted).
> \----
> 
> What do you think?

Nice thought but it doesn't actually work for me.  If I put
`(rfc2015-setup)' in .gnus it will not load and gives the message:
`Symbols function definition is void....'  Even with the file in the
load path.   And even with an explicit:  (load "rfc2015.elc").

Only thing I found that works is to eval (rfc2015-setup) after loading .gnus.



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

* Re: Attached pgp and mailcrypt
  2000-09-07 12:20       ` Attached pgp and mailcrypt Harry Putnam
@ 2000-09-08  9:54         ` Kai Großjohann
  2000-09-09  1:15           ` Harry Putnam
  0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2000-09-08  9:54 UTC (permalink / raw)
  Cc: ding

On 07 Sep 2000, Harry Putnam wrote:

> I tried ... in ~/.gnus:
> (load "rfc2015.elc)   ...(after bytecompiling and placing in
> ~/pgnus/lisp)
> 
> Followed by:
> (rfc2015-setup)
> 
> This gives the message  " symbols function definition is void...."
> When loading gnus.

Strange.  That's just what I did (except that I added ~/lisp/gnus/contrib
to load-path, in addition to ~/lisp/gnus/lisp where all the other Lisp
files are):

(require 'rfc2015)
(add-hook 'gnus-startup-hook 'rfc2015-setup)

Oh.  I now see that this isn't at all what I was doing.  Hm.
Strange.  I thought I had done what you did.

Anyway.  Does the above work?  If it doesn't, get a backtrace (M-x
toggle-debug-on-error RET, you know all that) and report a bug.

kai
-- 
I like BOTH kinds of music.



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

* Re: Attached pgp and mailcrypt
  2000-09-08  9:54         ` Kai Großjohann
@ 2000-09-09  1:15           ` Harry Putnam
  2000-09-09  9:51             ` Kai Großjohann
  0 siblings, 1 reply; 13+ messages in thread
From: Harry Putnam @ 2000-09-09  1:15 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> (require 'rfc2015)
> (add-hook 'gnus-startup-hook 'rfc2015-setup)
> 
> Oh.  I now see that this isn't at all what I was doing.  Hm.
> Strange.  I thought I had done what you did.

Thanks Kai.... That works.  I guess this is what should be in the
comments:

 /----
 | Installation:  Put the following line in ~/.emacs or ~/.gnus:
 | (rfc2015-setup)
 | (add-hook 'gnus-startup-hook 'rfc2015-setup)
 | Also don't forget to put this file into a directory on the load-path.
 | 
 | Usage:  Insert an attribute, postprocess=pgp-sign (or pgp-encrypt),
 | into the mml tag to be signed (or encrypted).
 \----


Do you think so ....  Shenghuo Zhu?   Its a very nice package but
could stand a little more explanation.

ps - Kai, is that `unusual' insert thingy produced by a special lisp
package? Or a personal hack?



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

* Re: Attached pgp and mailcrypt
  2000-09-09  1:15           ` Harry Putnam
@ 2000-09-09  9:51             ` Kai Großjohann
  2000-09-09 18:51               ` Harry Putnam
  2000-09-13  4:12               ` ShengHuo ZHU
  0 siblings, 2 replies; 13+ messages in thread
From: Kai Großjohann @ 2000-09-09  9:51 UTC (permalink / raw)
  Cc: ding

On 08 Sep 2000, Harry Putnam wrote:

> Thanks Kai.... That works.  I guess this is what should be in the
> comments:

I have now frobbed the comments a little.  What do you think?

> Do you think so ....  Shenghuo Zhu?   Its a very nice package but
> could stand a little more explanation.

Oops.  I hope you don't mind me fiddling with it, Shenghuo.

> ps - Kai, is that `unusual' insert thingy produced by a special lisp
> package? Or a personal hack?

I used to use a personal hack, but now there is boxquote.el by Dave
Pearson.  Very nifty.

kai
-- 
I like BOTH kinds of music.



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

* Re: Attached pgp and mailcrypt
  2000-09-09  9:51             ` Kai Großjohann
@ 2000-09-09 18:51               ` Harry Putnam
  2000-09-11 21:31                 ` Kai Großjohann
  2000-09-13  4:12               ` ShengHuo ZHU
  1 sibling, 1 reply; 13+ messages in thread
From: Harry Putnam @ 2000-09-09 18:51 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> On 08 Sep 2000, Harry Putnam wrote:
> 
> > Thanks Kai.... That works.  I guess this is what should be in the
> > comments:
> 
> I have now frobbed the comments a little.  What do you think?

That proceedure doesn't do it here.
  ;; Installation: put the following statement in ~/.gnus:
  ;;    (rfc2015-setup)

Still mailcrypt is blind to pgp encoded messages that are
attached'.  Seems to need to be added to a hook as in your setup
there: (rfc2015-setup) 
       (add-hook 'gnus-startup-hook 'rfc2015-setup)

Is that likely to be required or is something wrong in my proceedure here?
Proceedure:
Insert into .gnus:
 (rfc2015-setup)

Which already contains this code regarding pgp:

       (add-hook 'gnus-summary-mode-hook 'mc-install-read-mode)
       (add-hook 'message-mode-hook 'mc-install-write-mode)
       (add-hook 'news-reply-mode-hook 'mc-install-write-mode)

Start gnus and go to an attached  pgp encoded message:
Mailcrypt is unable to find encrpted messages in an attached pgp message.

___________

Edit .gnus by adding:
(rfc2015-setup) 
(add-hook 'gnus-startup-hook 'rfc2015-setup)

Restart gnus, go to the same pgp encoded message and gnus opens it
with the query for my pgp passphrase.






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

* Re: Attached pgp and mailcrypt
  2000-09-09 18:51               ` Harry Putnam
@ 2000-09-11 21:31                 ` Kai Großjohann
  2000-09-12  1:22                   ` Harry Putnam
  0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2000-09-11 21:31 UTC (permalink / raw)
  Cc: ding

On 09 Sep 2000, Harry Putnam wrote:

> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> 
>> I have now frobbed the comments a little.  What do you think?
> 
> That proceedure doesn't do it here.

Okay.  Changed.

kai
-- 
I like BOTH kinds of music.



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

* Re: Attached pgp and mailcrypt
  2000-09-11 21:31                 ` Kai Großjohann
@ 2000-09-12  1:22                   ` Harry Putnam
  2000-09-12  8:39                     ` Marco Lonsing
  0 siblings, 1 reply; 13+ messages in thread
From: Harry Putnam @ 2000-09-12  1:22 UTC (permalink / raw)
  Cc: ding

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> On 09 Sep 2000, Harry Putnam wrote:
> 
> > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> > 
> >> I have now frobbed the comments a little.  What do you think?
> > 
> > That proceedure doesn't do it here.
> 
> Okay.  Changed.

Err ... sorry but that doesn't work either.  I hope its not something
in my setup causing problems but here is what I see at this end.

Placing either:
(rfc2015-setup)

*OR* 

(add-hook 'gnus-startup-hook 'rfc2015-setup)

*By itself*  in  either .gnus or .emacs causes a  function void error.

So it seems to require something else  to work.
I find it needs a `require' statement to work.

Putting these at the end of gnus does the job:

(require 'rfc2015)
(add-hook 'gnus-startup-hook 'rfc2015-setup)

Proposed comment section for rfc2015.el to be included in CVS tree:

  ;; Installation:  Put the following statements in ~/.gnus or ~/.emacs:
  ;;    (require 'rfc2015)
  ;;    (add-hook 'gnus-startup-hook 'rfc2015-setup)
  ;; You will  have to make sure that the directory where this file lives
  ;; is mentioned in `load-path'.

I've included a backtrace after first removing the rfc2015.elc and
putting rfc2015.el in its place.  Setting `(setq debug-on-error t)'
and putting (add-hook 'gnus-startup-hook 'rfc2015-setup) at the end of
.gnus (with no [(require 'rfc2015)].  Then calling gnus like this:

emacs -f gnus &

Signaling: (void-function rfc2015-setup)
  rfc2015-setup()
  run-hooks(gnus-startup-hook)
  apply(run-hooks gnus-startup-hook)
  gnus-run-hooks(gnus-startup-hook)
  byte-code("\b„\x0e\0	„\x0e\0Æ ˆ‚O\0ÇÈ!ˆÉ\n!\x13\f„\x1e\0\rƒ!\0Ê ˆ\x0e\x19ƒ.\0Ë ˆÌÍÎ\"ˆÏÐ\x0e\x1a\b#ˆÇÑ!ˆÒ ˆÓ\x0e\x1a!ˆÔ ˆÕÖ!ˆ× ˆÇØ!ˆÐ‡" [dont-connect did-connect gnus-startup-file gnus-current-startup-file gnus-slave gnus-use-dribble-file gnus-group-quit gnus-run-hooks gnus-startup-hook gnus-make-newsrc-file gnus-dribble-read-file bbb-login add-hook gnus-summary-mode-hook gnus-grouplens-mode gnus-setup-news nil gnus-setup-news-hook gnus-start-draft-setup gnus-group-list-groups gnus-group-first-unread-group gnus-configure-windows group gnus-group-set-mode-line gnus-started-hook gnus-use-grouplens level] 4)
  gnus-1(nil nil nil)
  gnus()
  command-line-1(("-f" "gnus"))
  command-line()
  normal-top-level()







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

* Re: Attached pgp and mailcrypt
  2000-09-12  1:22                   ` Harry Putnam
@ 2000-09-12  8:39                     ` Marco Lonsing
  2000-09-12 11:59                       ` Kai Großjohann
  0 siblings, 1 reply; 13+ messages in thread
From: Marco Lonsing @ 2000-09-12  8:39 UTC (permalink / raw)


Harry Putnam <reader@newsguy.com> writes:

> Err ... sorry but that doesn't work either.  I hope its not something
> in my setup causing problems but here is what I see at this end.
> 
> Placing either:
> (rfc2015-setup)
> 
> *OR* 
> 
> (add-hook 'gnus-startup-hook 'rfc2015-setup)
> 
> *By itself*  in  either .gnus or .emacs causes a  function void error.
> 
> So it seems to require something else  to work.
> I find it needs a `require' statement to work.
> 
> Putting these at the end of gnus does the job:
> 
> (require 'rfc2015)
> (add-hook 'gnus-startup-hook 'rfc2015-setup)
> 

Sorry, 
that still does not do the job for me. I have to require
gnus-art.el additional to make it work. 
This is what I put in my .gnus:

(require 'rfc2015)
(require 'gnus-art)
(add-hook 'gnus-startup-hook 'rfc2015-setup)
;(rfc2015-setup)

It's arbitrary if you put rfc2015-setup into gnus-startup-hook
or if you call it directly.
Maybe this is not very elegant, but it works. :-)

Marco

-- 
Marco Lonsing
Mathematik XI - Numerik	       email: Marco.Lonsing@ruhr-uni-bochum.de
Ruhr-Universitaet Bochum       phone: +49-234-32-23244
Universitaetsstr. 150	       fax  : +49-234-32-03244
D-44721 Bochum, GERMANY	       www  : http://www.ruhr-uni-bochum.de/num1/marco/



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

* Re: Attached pgp and mailcrypt
  2000-09-12  8:39                     ` Marco Lonsing
@ 2000-09-12 11:59                       ` Kai Großjohann
  2000-09-12 12:25                         ` Harry Putnam
  0 siblings, 1 reply; 13+ messages in thread
From: Kai Großjohann @ 2000-09-12 11:59 UTC (permalink / raw)
  Cc: ding

On 12 Sep 2000, Marco Lonsing wrote:

> It's arbitrary if you put rfc2015-setup into gnus-startup-hook
> or if you call it directly.

Harry, can you test this in ~/.gnus?

(require 'rfc2015)
(require 'gnus-art)
(rfc2015-setup)

Thanks, Marco.
kai
-- 
I like BOTH kinds of music.



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

* Re: Attached pgp and mailcrypt
  2000-09-12 11:59                       ` Kai Großjohann
@ 2000-09-12 12:25                         ` Harry Putnam
  2000-09-12 13:29                           ` Kai Großjohann
  0 siblings, 1 reply; 13+ messages in thread
From: Harry Putnam @ 2000-09-12 12:25 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> On 12 Sep 2000, Marco Lonsing wrote:
> 
> > It's arbitrary if you put rfc2015-setup into gnus-startup-hook
> > or if you call it directly.
> 
> Harry, can you test this in ~/.gnus?
> 
> (require 'rfc2015)
> (require 'gnus-art)
> (rfc2015-setup)

Yup, that works here... scrap my suggestion for the comments..



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

* Re: Attached pgp and mailcrypt
  2000-09-12 12:25                         ` Harry Putnam
@ 2000-09-12 13:29                           ` Kai Großjohann
  0 siblings, 0 replies; 13+ messages in thread
From: Kai Großjohann @ 2000-09-12 13:29 UTC (permalink / raw)
  Cc: ding

On 12 Sep 2000, Harry Putnam wrote:

> Yup, that works here... scrap my suggestion for the comments..

Your suggestion was good; it also works in ~/.emacs.  But I think I'll
go for the new one, now.

Thanks to both of you for helping with this.

kai
-- 
I like BOTH kinds of music.



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

* Re: Attached pgp and mailcrypt
  2000-09-09  9:51             ` Kai Großjohann
  2000-09-09 18:51               ` Harry Putnam
@ 2000-09-13  4:12               ` ShengHuo ZHU
  1 sibling, 0 replies; 13+ messages in thread
From: ShengHuo ZHU @ 2000-09-13  4:12 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> > Do you think so ....  Shenghuo Zhu?   Its a very nice package but
> > could stand a little more explanation.
> 
> Oops.  I hope you don't mind me fiddling with it, Shenghuo.

Not at all. 

I was planning to add it as a part of Gnus, so there was little
explanation about installation.

ShengHuo 




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

end of thread, other threads:[~2000-09-13  4:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m2wvgqytxx.fsf@gnus-5.8.8-cvs.now.playing>
     [not found] ` <vafaedl4mae.fsf@lucy.cs.uni-dortmund.de>
     [not found]   ` <m2em2wook7.fsf@gnus-5.8.8-cvs.now.playing>
     [not found]     ` <vaf66o834w3.fsf@lucy.cs.uni-dortmund.de>
2000-09-07 12:20       ` Attached pgp and mailcrypt Harry Putnam
2000-09-08  9:54         ` Kai Großjohann
2000-09-09  1:15           ` Harry Putnam
2000-09-09  9:51             ` Kai Großjohann
2000-09-09 18:51               ` Harry Putnam
2000-09-11 21:31                 ` Kai Großjohann
2000-09-12  1:22                   ` Harry Putnam
2000-09-12  8:39                     ` Marco Lonsing
2000-09-12 11:59                       ` Kai Großjohann
2000-09-12 12:25                         ` Harry Putnam
2000-09-12 13:29                           ` Kai Großjohann
2000-09-13  4:12               ` ShengHuo ZHU
     [not found]       ` <m2d7ig4dle.fsf@gnus-5.8.8-cvs.now.playing>
     [not found]         ` <vaf7l8oxmg5.fsf@lucy.cs.uni-dortmund.de>
2000-09-07 23:34           ` Harry Putnam

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