Gnus development mailing list
 help / color / mirror / Atom feed
* Required mail & news headers
@ 2003-06-10 10:03 Hanak David
  2003-10-18  0:58 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Hanak David @ 2003-06-10 10:03 UTC (permalink / raw)


Hi,

I discovered, that the contents of 'message-required-headers' are always
rendered *before* composing the message, as opposed to
'message-required-news-headers' and 'message-required-mail-headers', which
are affected by the value of 'message-generate-headers-first':

/----
| message-generate-headers-first's value is (references)
| 
| Documentation:
| *If non-nil, generate all required headers before composing.
| The variables `message-required-news-headers' and
| `message-required-mail-headers' specify which headers to generate.
| This can also be a list of headers that should be generated before
| composing.
\----

I don't want to see that X-Draft-From line, nor the From header, nor the
very long Face header whilst composing my message.  The latter can be
hidden by adding it both to ...mail-headers and ...news-headers instead of
adding it once to ...required-headers, but that doesn't seem nice.

'message-generate-headers' is readded to the headers-to-be-inserted list
(after being filtered by 'message-headers-to-generate'):

/----
| (defun message-generate-headers (headers)
|   "Prepare article HEADERS.
| Headers already prepared in the buffer are not modified."
|   (setq headers (append headers message-required-headers))  ; <---- !!!!
|   (save-restriction
|     (message-narrow-to-headers)
|     (let* ((Date (message-make-date))
| 	   (Message-ID (message-make-message-id))
\----

If I remove the line marked with !!!!, these headers are lost, because they
are not added later, as opposed to ...news-headers and ...mail-headers.

Unfortunately, these variables are not very well documented. :-(.  So, why
is this difference?  Is it on purpose?

David



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

* Re: Required mail & news headers
  2003-06-10 10:03 Required mail & news headers Hanak David
@ 2003-10-18  0:58 ` Lars Magne Ingebrigtsen
  2003-10-18 10:22   ` Romain FRANCOISE
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2003-10-18  0:58 UTC (permalink / raw)


Hanak David <dhanak@inf.bme.hu> writes:

> I discovered, that the contents of 'message-required-headers' are always
> rendered *before* composing the message, as opposed to
> 'message-required-news-headers' and 'message-required-mail-headers', which
> are affected by the value of 'message-generate-headers-first':

Yes...  the former variable was added a few minutes before Gnus 5.10
was released (to implement some new stuff about hidden headers).
However, there were bugs in that code, so a few seconds before Gnus
5.10 was released, most of that was reverted, but that variable
remains.

We'll have another go at it in No Gnus.  The goal is to be able to
present the user with a message buffer that has no (or almost no)
headers visible.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen



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

* Re: Required mail & news headers
  2003-10-18  0:58 ` Lars Magne Ingebrigtsen
@ 2003-10-18 10:22   ` Romain FRANCOISE
  0 siblings, 0 replies; 3+ messages in thread
From: Romain FRANCOISE @ 2003-10-18 10:22 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> We'll have another go at it in No Gnus.  The goal is to be able to
> present the user with a message buffer that has no (or almost no)
> headers visible.

Yes; I have a working patch for this, using narrowing.

-- 
Romain FRANCOISE <romain@orebokech.com> | There are doors that open by
it's a miracle -- http://orebokech.com/ | themselves.




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

end of thread, other threads:[~2003-10-18 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-10 10:03 Required mail & news headers Hanak David
2003-10-18  0:58 ` Lars Magne Ingebrigtsen
2003-10-18 10:22   ` Romain FRANCOISE

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