[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically insert X-No-Archive in headers
From: |
Allan |
Subject: |
Re: Automatically insert X-No-Archive in headers |
Date: |
Sat, 29 Dec 2007 21:10:00 -0600 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) |
Andreas Davour <anteRUN@updateLIKE.uu.HELLse> writes:
> Is there a way to insert the no-archive header automatically, so I don't
> have to type C-c C-f a all the time?
>
> I've not found any indication in the manual, but am a bit new at serious
> gnus usage anyway.
>
> /Andreas
>
> --
> A: Because it fouls the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
Message default headers (message-required-news-headers) are covered in the Gnus
manual but I will simply share with you my .gnus init file which you can adapt
to your own purpose easily enough. Just change the string "Reply-to" to
"X-No-Archive" and fill in the desired non-nil value since I don't remember the
syntax of that header. If you set it to `t' the header will be added. You may
also want to check the value of gnus-init-file. Mine is called "_gnus" for
Windows compatibility reasons. After you get it working you can byte-compile it
for efficiency to create ".gnus.elc" . If you want more headers later on simply
add them as additional arguments to the `(list )' construct on line one of the
code in the same form '(optional. x)`.
;; `_gnus.el' : this runs when gnus starts
;;
;; add a "reply-to" header to optional news message headers
(setq-default message-required-news-headers (append
message-required-news-headers (list `(optional . Reply-to))))
;; set the message Reply-to to the message default reply-to
(setq-default Reply-to `"whatever_value_you_want")