Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
738f9104
Commit
738f9104
authored
Jul 03, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(gnus-inews-news): Allow newsgroups to be separated
by spaces or commas and spaces.
parent
2c5adf7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
17 deletions
+36
-17
lisp/gnuspost.el
lisp/gnuspost.el
+36
-17
No files found.
lisp/gnuspost.el
View file @
738f9104
...
...
@@ -353,24 +353,43 @@ original message into it."
(
widen
)
(
goto-char
(
point-min
))
(
run-hooks
'news-inews-hook
)
;; Mail the message too if To: or Cc: exists.
(
if
(
save-restriction
(
narrow-to-region
(
point-min
)
(
progn
(
save-restriction
(
narrow-to-region
(
point-min
)
(
progn
(
goto-char
(
point-min
))
(
search-forward
(
concat
"\n"
mail-header-separator
"\n"
))
(
point
)))
;; Correct newsgroups field: change sequence of spaces to comma and
;; eliminate spaces around commas. Eliminate imbedded line breaks.
(
goto-char
(
point-min
))
(
if
(
search-forward-regexp
"^Newsgroups: +"
nil
t
)
(
save-restriction
(
narrow-to-region
(
point
)
(
if
(
re-search-forward
"^[^ \t]"
nil
'end
)
(
match-beginning
0
)
(
point-max
)))
(
goto-char
(
point-min
))
(
search-forward
(
concat
"\n"
mail-header-separator
"\n"
))
(
point
)))
(
or
(
mail-fetch-field
"to"
nil
t
)
(
mail-fetch-field
"cc"
nil
t
)))
(
if
gnus-mail-send-method
(
progn
(
message
"Sending via mail..."
)
(
funcall
gnus-mail-send-method
)
(
message
"Sending via mail... done"
))
(
ding
)
(
message
"No mailer defined. To: and/or Cc: fields ignored."
)
(
sit-for
1
)))
(
replace-regexp
"\n[ \t]+"
" "
)
;No line breaks (too confusing)
(
goto-char
(
point-min
))
(
replace-regexp
"[ \t\n]*,[ \t\n]*\\|[ \t]+"
","
)
))
;; Mail the message too if To: or Cc: exists.
(
if
(
or
(
mail-fetch-field
"to"
nil
t
)
(
mail-fetch-field
"cc"
nil
t
))
(
if
gnus-mail-send-method
(
progn
(
message
"Sending via mail..."
)
(
widen
)
(
funcall
gnus-mail-send-method
)
(
message
"Sending via mail... done"
))
(
ding
)
(
message
"No mailer defined. To: and/or Cc: fields ignored."
)
(
sit-for
1
))))
;; Send to NNTP server.
(
message
"Posting to USENET..."
)
(
if
(
gnus-inews-article
)
...
...
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