Colorizing Header Fields

[previous] [next] [table of contents] [index]

A set of resources specifies colors and other font attributes of a message header.

m_tagnames
This is a list of mail header fields which have special looks when displayed in the message area. For each tagname, you should define another resource named m_tagname (for example, m_subject). This m_tagname resource has the text tag configuration options for its header field. You'll find the tag configuration options in the manual page for the Tk text widget. Two special tagnames are used for defaults if there isn't a more specific matching tag name: "default" applies to displayed fields and "hidden" applies to hidden fields (fields that have been scrolled off the top).
For example, here's what I have in my ~/.exmh-defaults file:
*m_tagnames:            hidden subject from x-filters-matched
*m_hidden:              -font 6x10
*m_default:             -foreground black
*m_subject:             -foreground blue
*m_x-filters-matched:   -foreground blue
*m_from:                -foreground "medium sea green"

[Table of Contents] [Index] [Previous: Color Resources] [Next: Geometry and Position Resources]


(This section was written by Brent Welch.)
Last change $Date: 1996/06/06 15:09:16 $

This file is from the third edition of the book MH & xmh: Email for Users & Programmers, ISBN 1-56592-093-7, by Jerry Peek. Copyright © 1991, 1992, 1995 by O'Reilly & Associates, Inc. This file is freely-available; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. For more information, see the file copying.htm.

Suggestions are welcome: <Brent.Welch@eng.sun.com>