[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d608eb1: Guard against faulty flow-filled emails
From: |
Lars Ingebrigtsen |
Subject: |
master d608eb1: Guard against faulty flow-filled emails |
Date: |
Fri, 11 Sep 2020 10:45:22 -0400 (EDT) |
branch: master
commit d608eb1c941aac65d0a1d02b0ac6279e42d8ca8b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Guard against faulty flow-filled emails
* lisp/mail/flow-fill.el (fill-flowed): Don't bug out if there's a
space at the end of the buffer. This is probably not allowed in
the flow-fill specification, but has been observed in the wild.
---
lisp/mail/flow-fill.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/mail/flow-fill.el b/lisp/mail/flow-fill.el
index f4b5503..b357b3e 100644
--- a/lisp/mail/flow-fill.el
+++ b/lisp/mail/flow-fill.el
@@ -157,7 +157,8 @@ lines."
;; Hack: Don't do the flowing on the signature line.
(when (and (not (looking-at "-- $"))
(eq (char-before (line-end-position)) ?\s))
- (while (eq (char-before (line-end-position)) ?\s)
+ (while (and (not (eobp))
+ (eq (char-before (line-end-position)) ?\s))
(end-of-line)
(when delete-space
(delete-char -1))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d608eb1: Guard against faulty flow-filled emails,
Lars Ingebrigtsen <=