Gnus development mailing list
 help / color / mirror / Atom feed
* On `pgg-text-mode'.
@ 2007-03-05 15:53 Michaël Cadilhac
  2007-03-06  0:00 ` Daiki Ueno
  0 siblings, 1 reply; 3+ messages in thread
From: Michaël Cadilhac @ 2007-03-05 15:53 UTC (permalink / raw)
  To: ding


[-- Attachment #1.1: Type: text/plain, Size: 429 bytes --]

For the last few weeks, I had problems with gpg signing, and thought
it was due to a temporary bug as everybody will face it.

Well, it still happens, so here is my lament :)

My messages weren't anymore classified as well signed in Gnus, so
after some investigations, it seems that the adding of `\r' at the end
of lines when verifying key broke something, and I had to add the
following to sign the message in the right way :


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: mml.patch --]
[-- Type: text/x-patch, Size: 1319 bytes --]

Index: mml2015.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/mml2015.el,v
retrieving revision 7.1
diff -B -w -c -r7.1 mml2015.el
*** mml2015.el	4 Jan 2004 21:51:02 -0000	7.1
--- mml2015.el	5 Mar 2007 15:51:36 -0000
***************
*** 805,811 ****
    (let ((pgg-errors-buffer mml2015-result-buffer)
  	(boundary (mml-compute-boundary cont))
  	(pgg-default-user-id (or (message-options-get 'mml-sender)
! 				 pgg-default-user-id)))
      (unless (pgg-sign-region (point-min) (point-max))
        (pop-to-buffer mml2015-result-buffer)
        (error "Sign error"))
--- 805,812 ----
    (let ((pgg-errors-buffer mml2015-result-buffer)
  	(boundary (mml-compute-boundary cont))
  	(pgg-default-user-id (or (message-options-get 'mml-sender)
! 				 pgg-default-user-id))
! 	(pgg-text-mode t))
      (unless (pgg-sign-region (point-min) (point-max))
        (pop-to-buffer mml2015-result-buffer)
        (error "Sign error"))
***************
*** 825,830 ****
--- 826,832 ----
  
  (defun mml2015-pgg-encrypt (cont &optional sign)
    (let ((pgg-errors-buffer mml2015-result-buffer)
+ 	(pgg-text-mode t)
  	(boundary (mml-compute-boundary cont)))
      (unless (pgg-encrypt-region (point-min) (point-max)
  				(split-string

[-- Attachment #1.3: Type: text/plain, Size: 409 bytes --]


So, I don't really know if its TRT to do, but it now works for me.

TIA!

-- 
 |      Michaël `Micha' Cadilhac     |   Je veut dire que la loi francaise    |
 |         Epita/LRDE Promo 2007     |           est overwritable par le      |
 |  http://michael.cadilhac.name     |    reglement interieur il me semble.   |
 `--JID: michael.cadilhac@gmail.com--'          -- ElBarto               -  --'

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

end of thread, other threads:[~2007-03-06 23:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 15:53 On `pgg-text-mode' Michaël Cadilhac
2007-03-06  0:00 ` Daiki Ueno
2007-03-06 23:00   ` Michaël Cadilhac

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