Gnus development mailing list
 help / color / mirror / Atom feed
* pgg + "german speaking" GnuPG
@ 2002-10-09  6:41 Mark Trettin
  2002-10-09  9:55 ` Florian Weimer
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Trettin @ 2002-10-09  6:41 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

Hi,

when I switched from gpg to pgg I experienced a minor annoyance. The
security button for signed messages always said 

"[[PGP Signed Part:From unknown user]]" 

even if it was signed by myself. The problem seems to be
`mml2015-gpg-extract-signature-details' which only matches 

`"^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$"'. 

This doesn't work with the "German speaking" version of GnuPG since it
says "Korrekte Unterschrift von". I attached a patch that works for
me. I don't lisp so this is probably not an elegant or even correct
way. 

Bye

	 Mark
-- 
Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05'
BOFH excuse #424:

operation failed because: there is no message for this error (#1014)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mml2015.diff --]
[-- Type: text/x-patch, Size: 544 bytes --]

--- mml2015.el	Mon Oct  7 10:43:45 2002
+++ /home/mark/.xemacs/lisp/mml2015.el	Wed Oct  9 07:30:33 2002
@@ -457,7 +457,10 @@
 			  (car signer)))))
 	      (t
 	       "From unknown user")))
-    (if (re-search-forward "^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$" nil t)	
+    (if (or
+	 (re-search-forward "^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$" nil t)
+	 ;; German "speaking" Version of GnuPG
+	 (re-search-forward "^\\(gpg: \\)?Korrekte Unterschrift von \"\\(.*\\)\"$" nil t))
 	(match-string 2)
       "From unknown user")))
 

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

* Re: pgg + "german speaking" GnuPG
  2002-10-09  6:41 pgg + "german speaking" GnuPG Mark Trettin
@ 2002-10-09  9:55 ` Florian Weimer
  2002-10-10  1:23   ` Simon Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2002-10-09  9:55 UTC (permalink / raw)
  Cc: Ding

Mark Trettin <mtr-dev0@gmx.de> writes:

> even if it was signed by myself. The problem seems to be
> `mml2015-gpg-extract-signature-details' which only matches 
>
> `"^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$"'. 

This should obviously match the --status-fd output instead.



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

* Re: pgg + "german speaking" GnuPG
  2002-10-09  9:55 ` Florian Weimer
@ 2002-10-10  1:23   ` Simon Josefsson
  2002-10-10  6:19     ` Mark Trettin
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 2002-10-10  1:23 UTC (permalink / raw)
  Cc: Ding

Florian Weimer <fw@deneb.enyo.de> writes:

> Mark Trettin <mtr-dev0@gmx.de> writes:
>
>> even if it was signed by myself. The problem seems to be
>> `mml2015-gpg-extract-signature-details' which only matches 
>>
>> `"^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$"'. 
>
> This should obviously match the --status-fd output instead.

I think I fixed this in CVS now.  Did I?




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

* Re: pgg + "german speaking" GnuPG
  2002-10-10  1:23   ` Simon Josefsson
@ 2002-10-10  6:19     ` Mark Trettin
  2002-10-10 15:02       ` Simon Josefsson
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Trettin @ 2002-10-10  6:19 UTC (permalink / raw)


* On: Thu, 10 Oct 2002 03:23:21 +0200 Simon Josefsson writes:
> Florian Weimer <fw@deneb.enyo.de> writes:
>> Mark Trettin <mtr-dev0@gmx.de> writes:
>> 
>>> even if it was signed by myself. The problem seems to be
>>> `mml2015-gpg-extract-signature-details' which only matches 
>>> 
>>> `"^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$"'. 
>> 
>> This should obviously match the --status-fd output instead.

> I think I fixed this in CVS now.  Did I?

Well, maybe I'm too stupid. I just checked it out, but it still gives
me `From unknown user'. It does work if I put

,----
| (setq gpg-unabbrev-trust-alist
|       '(("TRUST_UNDEFINED" . trust-undefined)
| 	  ("TRUST_NEVER"     . trust-none)
| 	  ("TRUST_MARGINAL"  . trust-marginal)
| 	  ("TRUST_FULLY"     . trust-full)
| 	  ("TRUST_ULTIMATE"  . trust-ultimate)))
`----

into my ~/.gnus. But I suppose that is not what you intended? I might
have a configuration problem here so I post my settings:

,----
| ;:*-------------------------------------------------------------------
| ;:*                                                     GnuPG Zeug ---
| (require 'mml-sec)
| (setq mm-verify-option 'always)
| ;; Keine extra Signatur erzeugen.
| (mml-signencrypt-style "pgpmime" 'combined)
| ;:*-------------------------------------------------------------------
| ;:*                                                   PGG Settings ---
| ;; (require 'pgg) in ~/.xemacs/personal.el 
| (setq pgg-encrypt-for-me t)
| (setq pgg-default-user-id "Mark.Trettin")
| (setq pgg-cache-passphrase t)
| ;; Testweise hoch gesetzt, default 16
| (setq pgg-passphrase-cache-expiry 600)
| (setq gpg-unabbrev-trust-alist
|       '(("TRUST_UNDEFINED" . trust-undefined)
| 	  ("TRUST_NEVER"     . trust-none)
| 	  ("TRUST_MARGINAL"  . trust-marginal)
| 	  ("TRUST_FULLY"     . trust-full)
| 	  ("TRUST_ULTIMATE"  . trust-ultimate)))
`----

Bye

	 Mark
-- 
Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05'
BOFH excuse #269:

Melting hard drives




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

* Re: pgg + "german speaking" GnuPG
  2002-10-10  6:19     ` Mark Trettin
@ 2002-10-10 15:02       ` Simon Josefsson
  2002-10-10 16:22         ` Mark Trettin
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Josefsson @ 2002-10-10 15:02 UTC (permalink / raw)


Mark Trettin <mtr-dev0@gmx.de> writes:

> * On: Thu, 10 Oct 2002 03:23:21 +0200 Simon Josefsson writes:
>> Florian Weimer <fw@deneb.enyo.de> writes:
>>> Mark Trettin <mtr-dev0@gmx.de> writes:
>>> 
>>>> even if it was signed by myself. The problem seems to be
>>>> `mml2015-gpg-extract-signature-details' which only matches 
>>>> 
>>>> `"^\\(gpg: \\)?Good signature from \"\\(.*\\)\"$"'. 
>>> 
>>> This should obviously match the --status-fd output instead.
>
>> I think I fixed this in CVS now.  Did I?
>
> Well, maybe I'm too stupid. I just checked it out, but it still gives
> me `From unknown user'. It does work if I put
>
> ,----
> | (setq gpg-unabbrev-trust-alist
> |       '(("TRUST_UNDEFINED" . trust-undefined)
> | 	  ("TRUST_NEVER"     . trust-none)
> | 	  ("TRUST_MARGINAL"  . trust-marginal)
> | 	  ("TRUST_FULLY"     . trust-full)
> | 	  ("TRUST_ULTIMATE"  . trust-ultimate)))
> `----
>
> into my ~/.gnus. But I suppose that is not what you intended?

Sort of, I noticed this too -- that code in mml2015.el depends on
gpg.el.  It should be rewritten not to depend on gpg.el... I'm putting
it on my todo list, but for now use the setq or load gpg.el.




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

* Re: pgg + "german speaking" GnuPG
  2002-10-10 15:02       ` Simon Josefsson
@ 2002-10-10 16:22         ` Mark Trettin
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Trettin @ 2002-10-10 16:22 UTC (permalink / raw)


* On: Thu, 10 Oct 2002 17:02:13 +0200 Simon Josefsson writes:
> Mark Trettin <mtr-dev0@gmx.de> writes:

[...]

>> Well, maybe I'm too stupid. I just checked it out, but it still gives
>> me `From unknown user'. It does work if I put
>> 
>> ,----
>> | (setq gpg-unabbrev-trust-alist
>> |       '(("TRUST_UNDEFINED" . trust-undefined)
>> | 	  ("TRUST_NEVER"     . trust-none)
>> | 	  ("TRUST_MARGINAL"  . trust-marginal)
>> | 	  ("TRUST_FULLY"     . trust-full)
>> | 	  ("TRUST_ULTIMATE"  . trust-ultimate)))
>> `----
>> 
>> into my ~/.gnus. But I suppose that is not what you intended?

> Sort of, I noticed this too -- that code in mml2015.el depends on
> gpg.el.  It should be rewritten not to depend on gpg.el... I'm putting
> it on my todo list, 

Ah, OK. Thank you.

> but for now use the setq or load gpg.el.

I guess the above setq should do the trick.

Bye
	 Mark
-- 
Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05'
BOFH excuse #447:

According to Microsoft, it's by design




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

end of thread, other threads:[~2002-10-10 16:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09  6:41 pgg + "german speaking" GnuPG Mark Trettin
2002-10-09  9:55 ` Florian Weimer
2002-10-10  1:23   ` Simon Josefsson
2002-10-10  6:19     ` Mark Trettin
2002-10-10 15:02       ` Simon Josefsson
2002-10-10 16:22         ` Mark Trettin

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