Gnus development mailing list
 help / color / mirror / Atom feed
* Broken display of clearsigned PGP message
@ 2006-09-28  5:31 Andreas Seltenreich
  2006-10-13 14:31 ` Andreas Seltenreich
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Seltenreich @ 2006-09-28  5:31 UTC (permalink / raw)
  Cc: Oliver Heins

There is a report in de.comm.software.gnus about a clearsigned PGP
message being displayed incorrectly (<URL:news:874putv834.fsf@sopos.org>).
It turned out mm-uu-pgp-signed-extract-1 stumbled across whitespace
contained in the line following the Hash header of the message:

--8<---------------cut here---------------start------------->8---
\-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
[signed text]
--8<---------------cut here---------------end--------------->8---

I'm not sure if this message is legal according to RFC 2440.  In 6.2
it states that Armor Headers are followed by a blank line, which is
defined as "zero-length, or containing only whitespace", however in
7. it uses the term "empty line" when describing Armor Headers in
cleartext signatures.

IMHO we should follow "be liberal in what you accept" here, especially
since GnuPG considers the message legal.  Should I apply the attached
patch to v5-10 and HEAD?  Can anyone imagine regressions?

diff -u -r6.29.2.24 mm-uu.el
--- mm-uu.el	28 Apr 2006 05:17:32 -0000	6.29.2.24
+++ mm-uu.el	27 Sep 2006 16:28:24 -0000
@@ -373,7 +373,7 @@
 	   mm-security-handle 'gnus-details
 	   (format "Clear verification not supported by `%s'.\n" mml2015-use))))
       (goto-char (point-min))
-      (if (search-forward "\n\n" nil t)
+      (if (re-search-forward "\n[\t ]*\n" nil t)
 	  (delete-region (point-min) (point)))
       (if (re-search-forward mm-uu-pgp-beginning-signature nil t)
 	  (delete-region (match-beginning 0) (point-max)))



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

end of thread, other threads:[~2006-11-18  3:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-28  5:31 Broken display of clearsigned PGP message Andreas Seltenreich
2006-10-13 14:31 ` Andreas Seltenreich
2006-10-13 15:31   ` Reiner Steib
2006-11-18  3:40     ` Andreas Seltenreich

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