+2004-06-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * message.el (message-cite-original): Respect X-No-Archive.
+
2004-06-04 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (article-hide-headers): Refer to the values for
(run-hooks 'mail-citation-hook)
(let* ((start (point))
(end (mark t))
+ (x-no-archive nil)
(functions
(when message-indent-citation-function
(if (listp message-indent-citation-function)
(save-restriction
(narrow-to-region start end)
(message-narrow-to-head-1)
+ (setq x-no-archive (message-fetch-field "x-no-archive"))
(vector 0
(or (message-fetch-field "subject") "none")
(message-fetch-field "from")
(when message-citation-line-function
(unless (bolp)
(insert "\n"))
- (funcall message-citation-line-function)))))
+ (funcall message-citation-line-function))
+ (when (and x-no-archive
+ (string-match "yes" x-no-archive))
+ (undo-boundary)
+ (delete-region (point) (mark t))
+ (insert "> [Quoted text removed due to X-No-Archive]\n")
+ (forward-line -1)))))
(defun message-insert-citation-line ()
"Insert a simple citation line."