home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6228 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.8 KB  |  80 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!dubhe.anu.edu.au!csis!regulus!gjw
  3. From: gjw@csis.dit.csiro.au (Graham Williams)
  4. Subject: Re: Mailtool header summary format
  5. Message-ID: <1993Jan12.050117.1343@csis.dit.csiro.au>
  6. Sender: news@csis.dit.csiro.au
  7. Nntp-Posting-Host: regulus
  8. Reply-To: gjw@csis.dit.csiro.au
  9. Organization: Spatial Information Systems, CSIRO, Canberra, Australia
  10. References: <1993Jan11.221219.13412@icd.teradyne.com>
  11. Date: Tue, 12 Jan 1993 05:01:17 GMT
  12. Lines: 66
  13.  
  14. In article 13412@icd.teradyne.com, molloy@emerald (Phil Molloy) writes:
  15.  
  16. >If someone knows of a way to do the same thing in mailtool, I would greatly
  17. >appreciate hearing about it.
  18.  
  19.  
  20. This was posted to the net some time ago:
  21.  
  22. # Sun have an undocumented feature (undocumented because they couldn't
  23. # figure out a good GUI for manipulating it).  They used the mush format
  24. # for the header.
  25. #
  26. # Here is the technical poop.  Do a strings on mailtool to convince
  27. # yourself of the following facts!
  28. #
  29. # The mailrc variable is "header_format".  If "header_format" isn't set,
  30. # one of two defaults, depending on whether "showto" is set or not, is used.
  31. #
  32. #                if (mt_value("showto")) {
  33. #                        format = "%3m %-18.40r %16.16d %4l/%-5c %-.100s";
  34. #                } else {
  35. #                        format = "%3m %-18.40f %16.16d %4l/%-5c %-.100s";
  36. #                }
  37. #
  38. # Here is the description of the various fields:
  39. #
  40. #/*
  41. # * format and print a header string.  We use the Mush format:
  42. # *
  43. # * %% -- a single %
  44. # * %c -- number of bytes in the message
  45. # * %C -- number of bytes in the message contents
  46. # * %f -- entire from field
  47. # * %l -- number of lines in the message
  48. # * %L -- number of lines in the message contents
  49. # * %i -- message id
  50. # * %s -- subject of message
  51. # * %t -- To: field (recipients)
  52. # * %r -- recipient (sender, or to line if you sent)
  53. # * %d -- date and time of the message
  54. # * %n -- sender's real name (if any; otherwise use %r )
  55. # * %?header? -- insert contents of header (if any)
  56. # *
  57. # * You can also specify a field width in printf format: either
  58. # * %25s (25 chars of subject), %.25s (no more than 25 chars),
  59. # * or %10.25s (at least 10 and no more than 25 chars)
  60. # *
  61. # * leading '-' means to left justify the string.
  62. # *
  63. # */
  64. #
  65. # So for a sender field of fixed width and truncated, set the
  66. # default to be something like "%40.40r" instead of "%18.40r".
  67. #
  68.  
  69. # My preference is the following (put it in your ~/.mailrc or $MAILRC file:
  70.  
  71. set header_format="%3m %15.15r %24.24d %3l %-.100s"
  72.  
  73.  
  74. ---
  75. Graham.Williams@csis.dit.csiro.au           ,--_|\   Tel:  +61 6 275 0963
  76. Centre for Spatial Information Systems     /      \  Fax:  +61 6 257 1052
  77. CSIRO Division of Information Technology   \_.--_*/  GPO Box 664 Canberra
  78. Australian National University Anutech Crt       v   ACT 2601   Australia
  79.  
  80.