home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / openloo / 3766 < prev    next >
Encoding:
Text File  |  1992-09-09  |  2.6 KB  |  77 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!sun-barr!news2me.ebay.sun.com!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!theglove!mario
  3. From: mario@theglove.Canada.Sun.Com (Mario Dorion # extra topping $1.75)
  4. Subject: Re: Mail tool header display.
  5. Message-ID: <1992Sep9.132736.1754@newscan.canada.sun.com>
  6. Sender: news@newscan.canada.sun.com
  7. Nntp-Posting-Host: theglove.canada.sun.com
  8. Reply-To: mario@theglove.Canada.Sun.Com
  9. Organization: Sun Microsystems du Canada
  10. References: <523@marjoram.UUCP>
  11. Date: Wed, 9 Sep 1992 13:27:36 GMT
  12. Lines: 63
  13.  
  14. In article 523@marjoram.UUCP, tuan@ukfca1 (Tuan Pham) writes:
  15. >Hi,
  16. >    A quick question on setting up the OpenWindow's (v2) Mail tool...
  17. >
  18. >    How can I set up mailtool to display the headers of messages in
  19. >    a different format ?
  20. >
  21.  
  22. Hello!
  23.  
  24. I'm not sure whether you can do it for V2, but you have full control on
  25. V3 mailtool's display format. Here's some old email on that topic I
  26. saved:
  27.  
  28. >We have an undocumented feature (undocumented because we couldn't
  29. >figure out a good GUI for manipulating it).  We used the mush format
  30. >for this header.
  31. >
  32. >Here is the technical poop:
  33. >
  34. >The mailrc variable is "header_format".  If "header_format" isn't set,
  35. >we use one of two defaults, depending on whether "showto" is set or not.
  36. >
  37. >                if (mt_value("showto")) {
  38. >                        format = "%3m %-18.40r %16.16d %4l/%-5c %-.100s";
  39. >                } else {
  40. >                        format = "%3m %-18.40f %16.16d %4l/%-5c %-.100s";
  41. >                }
  42. >
  43. >Here is the description of the various fields:
  44. >
  45. >/*
  46. > * format and print a header string.  We use the Mush format:
  47. > *
  48. > * %% -- a single %
  49. > * %c -- number of bytes in the message
  50. > * %C -- number of bytes in the message contents
  51. > * %f -- entire from field
  52. > * %l -- number of lines in the message
  53. > * %L -- number of lines in the message contents
  54. > * %i -- message id
  55. > * %s -- subject of message
  56. > * %t -- To: field (recipients)
  57. > * %r -- recipient (sender, or to line if you sent)
  58. > * %d -- date and time of the message
  59. > * %n -- sender's real name (if any; otherwise use %r )
  60. > * %?header? -- insert contents of header (if any)
  61. > *
  62. > * You can also specify a field width in printf format: either
  63. > * %25s (25 chars of subject), %.25s (no more than 25 chars),
  64. > * or %10.25s (at least 10 and no more than 25 chars)
  65. > *
  66. > * leading '-' means to left justify the string.
  67. > *
  68. > */
  69. >
  70. >So translating into techno-weenie talk, it sounds like your big complaint
  71. >is that the subject field should be fixed width and truncate; that the
  72. >default should be something like "%40.40s" instead of "%18.40s".
  73. >
  74. >Go ahead and try this in your .mailrc and see if I'm drawing the right
  75. >conclusion.
  76.  
  77.