From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10095 Path: news.gmane.org!not-for-mail From: Allan Newsgroups: gmane.emacs.gnus.user Subject: Re: Automatically insert X-No-Archive in headers Date: Sat, 29 Dec 2007 21:10:00 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: Reply-To: noreply@accessdenied.xxx NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1198986065 19208 80.91.229.12 (30 Dec 2007 03:41:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Dec 2007 03:41:05 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Dec 30 04:41:16 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J8p36-0004b9-0R for gegu-info-gnus-english@m.gmane.org; Sun, 30 Dec 2007 04:41:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8p2k-0006jr-Ot for gegu-info-gnus-english@m.gmane.org; Sat, 29 Dec 2007 22:40:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!news.glorb.com!sn-xt-sjc-04!sn-xt-sjc-07!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:ONCMfezanZ1uzGe4dg0de95FEds= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 23 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80308 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10095 Archived-At: Andreas Davour 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")