unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Emacs/bug? additional email headers not shown
@ 2011-10-23 14:46 Gregor Zattler
  2011-10-26  9:53 ` Daniel Schoepe
  0 siblings, 1 reply; 3+ messages in thread
From: Gregor Zattler @ 2011-10-23 14:46 UTC (permalink / raw)
  To: notmuch

Hi notmuch users and developers,

i'd like to see the Message-Id in thread view.  Therefore I
customised notmuch-message-headers via the customisation
interface like so:

(notmuch-message-headers (quote ("Received" "Message-Id" "Subject" "To" "Cc" "Date")))

but I still see the standard headers (Subject To Date) in this
order and hitting "h" shows only Subject or Subject To Date.

Could you please give me a hint how to customise which headers
are visible in a notmuch thread view?

Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-

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

* Re: Emacs/bug? additional email headers not shown
  2011-10-23 14:46 Emacs/bug? additional email headers not shown Gregor Zattler
@ 2011-10-26  9:53 ` Daniel Schoepe
  2011-10-26 19:08   ` Gregor Zattler
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Schoepe @ 2011-10-26  9:53 UTC (permalink / raw)
  To: Gregor Zattler, notmuch

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

On Sun, 23 Oct 2011 16:46:14 +0200, Gregor Zattler <telegraph@gmx.net> wrote:
> Hi notmuch users and developers,
> 
> i'd like to see the Message-Id in thread view.  Therefore I
> customised notmuch-message-headers via the customisation
> interface like so:
> 
> (notmuch-message-headers (quote ("Received" "Message-Id" "Subject" "To" "Cc" "Date")))
> 
> but I still see the standard headers (Subject To Date) in this
> order and hitting "h" shows only Subject or Subject To Date.
> 
> Could you please give me a hint how to customise which headers
> are visible in a notmuch thread view?

Unfortunately the headers you can use there seem to be hardcoded at the
moment in notmuch-show.c:

> static void
> format_headers_json (const void *ctx, notmuch_message_t *message)
> {
>     const char *headers[] = {
> 	"Subject", "From", "To", "Cc", "Bcc", "Date"
>     };

In order to adress this, I guess one would have to either output all
headers in notmuch show, which leaves it to the client to choose which
headers are wanted (which sounds like a good choice to me, since this is
essentially a UI preference) or add a field to the config file that
specifies additional headers to be included here.

Cheers,
Daniel

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Emacs/bug? additional email headers not shown
  2011-10-26  9:53 ` Daniel Schoepe
@ 2011-10-26 19:08   ` Gregor Zattler
  0 siblings, 0 replies; 3+ messages in thread
From: Gregor Zattler @ 2011-10-26 19:08 UTC (permalink / raw)
  To: notmuch

Hi Daniel,
* Daniel Schoepe <daniel@schoepe.org> [26. Oct. 2011]:
> On Sun, 23 Oct 2011 16:46:14 +0200, Gregor Zattler <telegraph@gmx.net> wrote:
>> Could you please give me a hint how to customise which headers
>> are visible in a notmuch thread view?
> 
> Unfortunately the headers you can use there seem to be hardcoded at the
> moment in notmuch-show.c:
> 
>> static void
>> format_headers_json (const void *ctx, notmuch_message_t *message)
>> {
>>     const char *headers[] = {
>> 	"Subject", "From", "To", "Cc", "Bcc", "Date"
>>     };

Thanx for this explanation.

> In order to adress this, I guess one would have to either output all
> headers in notmuch show, which leaves it to the client to choose which
> headers are wanted (which sounds like a good choice to me, since this is
> essentially a UI preference) 

me too :-)

Ciao; gregor

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

end of thread, other threads:[~2011-10-26 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-23 14:46 Emacs/bug? additional email headers not shown Gregor Zattler
2011-10-26  9:53 ` Daniel Schoepe
2011-10-26 19:08   ` Gregor Zattler

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).