Function: feedmail-fiddle-x-mailer
feedmail-fiddle-x-mailer is a byte-compiled function defined in
feedmail.el.gz.
Signature
(feedmail-fiddle-x-mailer)
Documentation
Fiddle X-Mailer:. See documentation of feedmail-x-mailer-line.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/feedmail.el.gz
(defun feedmail-fiddle-x-mailer ()
"Fiddle X-Mailer:. See documentation of `feedmail-x-mailer-line'."
(feedmail-say-debug ">in-> feedmail-fiddle-x-mailer")
;; default is to fall off the end of the list and do nothing
(cond
;; nil means do nothing
((eq nil feedmail-x-mailer-line) nil)
;; t is the same as using the function feedmail-default-x-mailer-generator, so let it and recurse
((eq t feedmail-x-mailer-line)
(let ((feedmail-x-mailer-line (feedmail-default-x-mailer-generator)))
(feedmail-fiddle-x-mailer)))
;; if it's a string, simply make a fiddle-plex out of it and recurse
((stringp feedmail-x-mailer-line)
(let ((feedmail-x-mailer-line (list "ignored" (list feedmail-x-mailer-line ";\n\t%s") 'combine)))
(feedmail-fiddle-x-mailer)))
;; if it's a function, call it and recurse with the resulting value
((and (symbolp feedmail-x-mailer-line) (fboundp feedmail-x-mailer-line))
(let ((feedmail-x-mailer-line (funcall feedmail-x-mailer-line)))
(feedmail-fiddle-x-mailer)))
;; if it's a list, it must be a fiddle-plex -- so fiddle, man, fiddle
((listp feedmail-x-mailer-line)
(feedmail-fiddle-header
(if feedmail-is-a-resend "X-Resent-Mailer" "X-Mailer")
(nth 1 feedmail-x-mailer-line) ; value
(nth 2 feedmail-x-mailer-line) ; action
(nth 3 feedmail-x-mailer-line))))) ; folding