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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
e51adfbd
Commit
e51adfbd
authored
Jun 06, 2019
by
Oleh Krehel
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lisp/gnus/message.el (message--check-continuation-headers): Extract
parent
e188f08f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
lisp/gnus/message.el
lisp/gnus/message.el
+13
-21
No files found.
lisp/gnus/message.el
View file @
e51adfbd
...
...
@@ -4476,6 +4476,17 @@ This function could be useful in `message-setup-hook'."
(
declare-function
hashcash-wait-async
"hashcash"
(
&optional
buffer
))
(
defun
message--check-continuation-headers
()
(
message-check
'continuation-headers
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"^[^ \t\n][^ \t\n:]*[ \t\n]"
nil
t
)
(
goto-char
(
match-beginning
0
))
(
if
(
y-or-n-p
"Fix continuation lines? "
)
(
insert
" "
)
(
forward-line
1
)
(
unless
(
y-or-n-p
"Send anyway? "
)
(
error
"Failed to send the message"
))))))
(
defun
message-send-mail
(
&optional
_
)
(
require
'mail-utils
)
(
let*
((
tembuf
(
message-generate-new-buffer-clone-locals
" message temp"
))
...
...
@@ -4527,15 +4538,7 @@ This function could be useful in `message-setup-hook'."
(
if
news
nil
message-deletable-headers
)))
(
message-generate-headers
headers
))
;; Check continuation headers.
(
message-check
'continuation-headers
(
goto-char
(
point-min
))
(
while
(
re-search-forward
"^[^ \t\n][^ \t\n:]*[ \t\n]"
nil
t
)
(
goto-char
(
match-beginning
0
))
(
if
(
y-or-n-p
"Fix continuation lines? "
)
(
insert
" "
)
(
forward-line
1
)
(
unless
(
y-or-n-p
"Send anyway? "
)
(
error
"Failed to send the message"
)))))
(
message--check-continuation-headers
)
(
message--fold-long-headers
)
;; Let the user do all of the above.
(
run-hooks
'message-header-hook
))
...
...
@@ -5159,18 +5162,7 @@ Otherwise, generate and save a value for `canlock-password' first."
(
if
(
=
(
length
errors
)
1
)
"this"
"these"
)
(
if
(
=
(
length
errors
)
1
)
""
"s"
)
(
mapconcat
'identity
errors
", "
)))))))
;; Check continuation headers.
(
message-check
'continuation-headers
(
goto-char
(
point-min
))
(
let
((
do-posting
t
))
(
while
(
re-search-forward
"^[^ \t\n][^ \t\n:]*[ \t\n]"
nil
t
)
(
goto-char
(
match-beginning
0
))
(
if
(
y-or-n-p
"Fix continuation lines? "
)
(
insert
" "
)
(
forward-line
1
)
(
unless
(
y-or-n-p
"Send anyway? "
)
(
setq
do-posting
nil
))))
do-posting
))
(
message--check-continuation-headers
)
;; Check the Newsgroups & Followup-To headers for syntax errors.
(
message-check
'valid-newsgroups
(
let
((
case-fold-search
t
)
...
...
EMBA bot
@bot
mentioned in commit
622bfdff
·
Jun 14, 2019
mentioned in commit
622bfdff
mentioned in commit 622bfdffa8b0c830bc6a979a2e9c114bad1ac114
Toggle commit list
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