Function: gnus-summary-mail-crosspost-complaint
gnus-summary-mail-crosspost-complaint is an interactive and
byte-compiled function defined in gnus-msg.el.gz.
Signature
(gnus-summary-mail-crosspost-complaint N)
Documentation
Send a complaint about crossposting to the current article(s).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-msg.el.gz
(defun gnus-summary-mail-crosspost-complaint (n)
"Send a complaint about crossposting to the current article(s)."
(interactive "P" gnus-summary-mode)
(dolist (article (gnus-summary-work-articles n))
(set-buffer gnus-summary-buffer)
(gnus-summary-goto-subject article)
(let ((group (gnus-group-real-name gnus-newsgroup-name))
newsgroups followup-to)
(gnus-summary-select-article)
(set-buffer gnus-original-article-buffer)
(if (and (<= (length (message-tokenize-header
(setq newsgroups
(mail-fetch-field "newsgroups"))
", "))
1)
(or (not (setq followup-to (mail-fetch-field "followup-to")))
(not (member group (message-tokenize-header
followup-to ", ")))))
(if followup-to
(gnus-message 1 "Followup-To restricted")
(gnus-message 1 "Not a crossposted article"))
(set-buffer gnus-summary-buffer)
(gnus-summary-reply-with-original 1)
(set-buffer gnus-message-buffer)
(message-goto-body)
(insert (format gnus-crosspost-complaint newsgroups group))
(message-goto-subject)
(re-search-forward " *$")
(replace-match " (crosspost notification)" t t)
(deactivate-mark)
(when (gnus-y-or-n-p "Send this complaint? ")
(message-send-and-exit))))))