Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] mml.el: Make sure that <#part> sections are at beginning of line.
@ 2008-05-19 16:08 Michael Olson
  2008-05-19 17:36 ` Reiner Steib
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olson @ 2008-05-19 16:08 UTC (permalink / raw)
  To: ding

* lisp/gnus/mml.el (mml-read-part): Only look for parts at the beginning
  of a line.  This way emailed patches that just happen to have "<#part>"
  in them will not be misinterpreted.
---
This patch is for the version of Gnus that is included with CVS HEAD in
Emacs.  I thought I'd run it by the Gnus mailing list first to see if
I'm doing something mistaken.

 lisp/gnus/mml.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 3aaa9c7..fedd469 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -431,7 +431,7 @@ If MML is non-nil, return the buffer up till the correspondent mml tag."
 		   (point)
 		 (match-beginning 0))))
       (if (re-search-forward
-	   "<#\\(/\\)?\\(multipart\\|part\\|external\\|mml\\)." nil t)
+	   "^<#\\(/\\)?\\(multipart\\|part\\|external\\|mml\\)." nil t)
 	  (prog1
 	      (mml-buffer-substring-no-properties-except-hard-newlines
 	       beg (match-beginning 0))
-- 
1.5.4.3


-- 
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'



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

end of thread, other threads:[~2008-05-19 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 16:08 [PATCH] mml.el: Make sure that <#part> sections are at beginning of line Michael Olson
2008-05-19 17:36 ` Reiner Steib
2008-05-19 17:51   ` Michael Olson
2008-05-19 20:53     ` Reiner Steib
2008-05-19 21:12       ` Michael Olson

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