Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Automatically insert X-No-Archive in headers
@ 2007-12-30  2:08 Andreas Davour
  2007-12-30  3:10 ` Allan
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Davour @ 2007-12-30  2:08 UTC (permalink / raw)
  To: info-gnus-english


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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Automatically insert X-No-Archive in headers
  2007-12-30  2:08 Automatically insert X-No-Archive in headers Andreas Davour
@ 2007-12-30  3:10 ` Allan
  2007-12-30 18:01   ` Andreas Davour
  0 siblings, 1 reply; 3+ messages in thread
From: Allan @ 2007-12-30  3:10 UTC (permalink / raw)
  To: info-gnus-english

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")

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Automatically insert X-No-Archive in headers
  2007-12-30  3:10 ` Allan
@ 2007-12-30 18:01   ` Andreas Davour
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Davour @ 2007-12-30 18:01 UTC (permalink / raw)
  To: info-gnus-english

Allan <mu8ja0i@earthlink.net> writes:

> 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.
>>
>
> 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)`.

Thanks! I'll look into that option.

/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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-30 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-30  2:08 Automatically insert X-No-Archive in headers Andreas Davour
2007-12-30  3:10 ` Allan
2007-12-30 18:01   ` Andreas Davour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).