Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5458f7f1
Commit
5458f7f1
authored
Mar 17, 1994
by
Karl Heuer
Browse files
(rmail-convert-to-babyl-format): Check Content-Length field for consistency.
parent
b9fdbd74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
lisp/mail/rmail.el
lisp/mail/rmail.el
+20
-3
No files found.
lisp/mail/rmail.el
View file @
5458f7f1
...
...
@@ -928,9 +928,26 @@ argument causes us to read a file name and use that file as the inbox."
header-end t)
(let ((beg (point))
(eol (progn (end-of-line) (point))))
(read (buffer-substring beg eol)))))))
(and size (numberp size) (>= size 0)
(goto-char (+ header-end size))))
(string-to-int (buffer-substring beg eol)))))))
(and size
(if (and (natnump size)
(<= (+ header-end size) (point-max))
;; Make sure this would put us at a position
;; that we could continue from.
(save-excursion
(goto-char (+ header-end size))
(skip-chars-forward "\n")
(or (eobp)
(and (looking-at "BABYL OPTIONS:")
(search-forward "\n\^_" nil t))
(and (looking-at "\^L")
(search-forward "\n\^_" nil t))
(let ((case-fold-search t))
(looking-at mmdf-delim1))
(looking-at "From "))))
(goto-char (+ header-end size))
(message "Ignoring invalid Content-Length field")
(sit-for 1 0 t))))
(if (re-search-forward
(concat "^[\^_]?\\("
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment