all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Marius Hofert <marius.hofert@math.ethz.ch>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Gnus: How to get/force specific header entries in a new message?
Date: Thu, 24 Nov 2011 10:43:16 +0100	[thread overview]
Message-ID: <87aa7lua8b.fsf@tsdh.uni-koblenz.de> (raw)
In-Reply-To: <FD5949CA-4856-4EB2-8179-61C7A896565E@math.ethz.ch> (Marius Hofert's message of "Thu, 24 Nov 2011 10:11:51 +0100")

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	other threads:[~2011-11-24  9:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 16:38 Gnus: How to get/force specific header entries in a new message? Marius Hofert
2011-11-23 18:30 ` Tassilo Horn
2011-11-24  9:11   ` Marius Hofert
2011-11-24  9:43     ` Tassilo Horn [this message]
2011-11-23 18:40 ` Sivaram Neelakantan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aa7lua8b.fsf@tsdh.uni-koblenz.de \
    --to=tassilo@member.fsf.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=marius.hofert@math.ethz.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.