all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Hofert <marius.hofert@math.ethz.ch>
To: Tassilo Horn <tassilo@member.fsf.org>
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:11:51 +0100	[thread overview]
Message-ID: <FD5949CA-4856-4EB2-8179-61C7A896565E@math.ethz.ch> (raw)
In-Reply-To: <8762ia4roq.fsf@thinkpad.tsdh.de>

Hi Tassilo,

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

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

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)? Furthermore, with 1) and 3), I'm not asked anymore, but I obtain:

To: 
Subject: 
Date: Thu, 24 Nov 2011 09:51:43 +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>

The same happens with just 1) [without 3)]. Why is the sorting not correct?


Cheers,

Marius

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.



On 2011-11-23, at 19:30 , Tassilo Horn wrote:

> Marius Hofert writes:
> 
> Hi Marius,
> 
>> I saw on
>> http://www.gnu.org/software/emacs/manual/html_node/gnus/Hiding-Headers.html
>> that I can specify which headers are visible via something like:
>> 
>> (setq gnus-visible-headers
>>      ...)
>> 
>> That's the default of gnus-visible-headers. However, comparing with
>> the above, one sees that not all of these headers/entries are actually
>> displayed… How can I specify that the following headers are always
>> shown in a new message?
> 
> `gnus-visible-headers' controls the visible headers in an article buffer
> (gnus-article-mode).  That's something different than the message-mode
> that you have when writing new messages.
> 
> For the headers you get in message-mode, have a look at this variable
> and the referenced ones.
> 
> ,----[ C-h v message-generate-headers-first RET ]
> | message-generate-headers-first is a variable defined in `message.el'.
> | Its value is nil
> | 
> | Documentation:
> | Which headers should be generated before starting to compose a message.
> | If t, generate all required headers.  This can also be a list of headers to
> | generate.  The variables `message-required-news-headers' and
> | `message-required-mail-headers' specify which headers to generate.
> | 
> | Note that the variable `message-deletable-headers' specifies headers which
> | are to be deleted and then re-generated before sending, so this variable
> | will not have a visible effect for those headers.
> | 
> | You can customize this variable.
> `----
> 
>> PS: Most likely the last Gnus question for today :-)
> 
> I wouldn't bet any money on that. ;-)
> 
> 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:11 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 [this message]
2011-11-24  9:43     ` Tassilo Horn
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=FD5949CA-4856-4EB2-8179-61C7A896565E@math.ethz.ch \
    --to=marius.hofert@math.ethz.ch \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tassilo@member.fsf.org \
    /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.