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: Marius Hofert
Subject: Re: Gnus: How to get/force specific header entries in a new message?
Date: Thu, 24 Nov 2011 10:11:51 +0100

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: address@hidden
Subject: 
Cc: foo
Bcc: bar
Date: Thu, 24 Nov 2011 09:46:51 +0100
Message-ID: <address@hidden>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (darwin)
Gcc: nnfolder+archive:sent.2011-11
From: My Name <address@hidden>

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: <address@hidden>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (darwin)
Gcc: nnfolder+archive:sent.2011-11
From: My Name <address@hidden>

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 via email to

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