home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!theglove!mario
- From: mario@theglove.Canada.Sun.Com (Mario Dorion # extra topping $1.75)
- Subject: Re: Mail tool header display.
- Message-ID: <1992Sep9.132736.1754@newscan.canada.sun.com>
- Sender: news@newscan.canada.sun.com
- Nntp-Posting-Host: theglove.canada.sun.com
- Reply-To: mario@theglove.Canada.Sun.Com
- Organization: Sun Microsystems du Canada
- References: <523@marjoram.UUCP>
- Date: Wed, 9 Sep 1992 13:27:36 GMT
- Lines: 63
-
- In article 523@marjoram.UUCP, tuan@ukfca1 (Tuan Pham) writes:
- >Hi,
- > A quick question on setting up the OpenWindow's (v2) Mail tool...
- >
- > How can I set up mailtool to display the headers of messages in
- > a different format ?
- >
-
- Hello!
-
- I'm not sure whether you can do it for V2, but you have full control on
- V3 mailtool's display format. Here's some old email on that topic I
- saved:
-
- >We have an undocumented feature (undocumented because we couldn't
- >figure out a good GUI for manipulating it). We used the mush format
- >for this header.
- >
- >Here is the technical poop:
- >
- >The mailrc variable is "header_format". If "header_format" isn't set,
- >we use one of two defaults, depending on whether "showto" is set or not.
- >
- > if (mt_value("showto")) {
- > format = "%3m %-18.40r %16.16d %4l/%-5c %-.100s";
- > } else {
- > format = "%3m %-18.40f %16.16d %4l/%-5c %-.100s";
- > }
- >
- >Here is the description of the various fields:
- >
- >/*
- > * format and print a header string. We use the Mush format:
- > *
- > * %% -- a single %
- > * %c -- number of bytes in the message
- > * %C -- number of bytes in the message contents
- > * %f -- entire from field
- > * %l -- number of lines in the message
- > * %L -- number of lines in the message contents
- > * %i -- message id
- > * %s -- subject of message
- > * %t -- To: field (recipients)
- > * %r -- recipient (sender, or to line if you sent)
- > * %d -- date and time of the message
- > * %n -- sender's real name (if any; otherwise use %r )
- > * %?header? -- insert contents of header (if any)
- > *
- > * You can also specify a field width in printf format: either
- > * %25s (25 chars of subject), %.25s (no more than 25 chars),
- > * or %10.25s (at least 10 and no more than 25 chars)
- > *
- > * leading '-' means to left justify the string.
- > *
- > */
- >
- >So translating into techno-weenie talk, it sounds like your big complaint
- >is that the subject field should be fixed width and truncate; that the
- >default should be something like "%40.40s" instead of "%18.40s".
- >
- >Go ahead and try this in your .mailrc and see if I'm drawing the right
- >conclusion.
-
-