help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gnus: How to get/force specific header entries in a new message?


From: Tassilo Horn
Subject: Re: Gnus: How to get/force specific header entries in a new message?
Date: Thu, 24 Nov 2011 10:43:16 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux)

Marius Hofert <marius.hofert@math.ethz.ch> writes:

Hi Marius,

> I played around with message-generate-headers-first,
> message-required-mail-headers, and message-required-mail-headers as
> follows:
>
> 1) (setq message-generate-headers-first t); generate all required headers
> 2) (setq message-required-mail-headers
>   '(To Cc Bcc Subject From (optional . In-Reply-To) Date Message-ID (optional 
> . User-Agent))
>   message-required-headers '((optional . References)))
> 3) (setq gnus-sorted-header-list '("^To:" "^Cc:" "^Bcc:" "^Subject:" "^From:"
> "^Date:" "^Message-ID")); sort the headers

Again, `gnus-sorted-header-list' is only relevant for article buffers
(reading mail), not message-mode buffers (writing mail).

> With only 2) I get 
> To:
> Subject:
> Gcc:
> From:
> => Where are Cc, Bcc,…?
> With 2) and 3) the same happens (well, no surprise). 

Yeah, you didn't want to generate them beforehand.

> With 1) and 2), I am asked for To, Cc, and Bcc and the header looks like this:
>
> To: foo@bar.com
> Subject: 
> Cc: foo
> Bcc: bar
> Date: Thu, 24 Nov 2011 09:46:51 +0100
> Message-ID: <foo@uni.edu>
> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (darwin)
> Gcc: nnfolder+archive:sent.2011-11
> From: My Name <my.name@uni.edu>
>
> Is there a way of _not_ being asked and just show empty entries (as
> for Subject above)?

Hm, not sure.  I'd expected to be queried only for (optional . Foo)
entries, but I've never customized anything here.

BTW, why do you want Cc and Bcc to show up everytime?  Do you really
need to Cc and Bcc different people in each and every mail?

Most probably, you really want to use posting styles again.  That way,
you could define that when mailing from all of your uni groups, a Cc
header with value your-prof@your-uni.de will be inserted or something
along these lines.

> Furthermore, with 1) and 3), I'm not asked anymore, but I obtain:
> [...]
> The same happens with just 1) [without 3)]. Why is the sorting not correct?

The sorting *is* correct in *article* buffers, cause that's what you've
customized.

> PS: Adjusting gnus-extra-headers [suggested by Sivaram] did not work
> (in the sense that it didn't change anything). As far as I understood
> this variable, it specifies *extra* headers, not the default ones I
> would like to adjust.

Yeah, it specifies what extra variable Gnus should store in its overview
files.  For example, if you'd want to display the contents of the
X-Foobar header in your summary, then you'd need that to be in
`gnus-extra-headers', because else Gnus would have to fetch any article
in order to get that header in order to display it in summary.  Clearly,
that wouldn't scale if a summary contains thousands of messages.

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]