Function: nngateway-simple-header-transformation

nngateway-simple-header-transformation is a byte-compiled function defined in nngateway.el.gz.

Signature

(nngateway-simple-header-transformation GATEWAY)

Documentation

Transform the headers to use GATEWAY.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nngateway.el.gz
;;; Internal functions

(defun nngateway-simple-header-transformation (gateway)
  "Transform the headers to use GATEWAY."
  (let ((newsgroups (mail-fetch-field "newsgroups")))
    (message-remove-header "to")
    (message-remove-header "cc")
    (goto-char (point-min))
    (insert "To: " (nnheader-replace-chars-in-string newsgroups ?. ?-)
	    "@" gateway "\n")))