[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-workers] Updated scan.more format file

From: Jerry Peek
Subject: [Nmh-workers] Updated scan.more format file
Date: Wed, 04 Jun 2008 12:24:40 -0600

Hi, everyone.  The MH book -- and the online version, too, at


-- show an mh-format file for "scan" named scan.more.  I use it with
an alias named "cur" to show more detail about the current message
(scan -form scan.more -width 235 cur).

Today I noticed that it didn't seem to be showing the cc: header
field of a message.  It's been maybe 15 years since I wrote that
file, and the mh-format code makes my head hurt even more now than
it did back then. ;-)  Still, I decided that I'd better dig in and
try to fix it before another ten years go by.

I'm still not sure why the original file wasn't showing the cc: field.
Maybe I broke it at some point?  (Maybe there's been some change in
nmh?  I wrote the file while I was using plain old MH, I think.)
Since I'm not sure what's going on, I don't want to update the online
book yet.  But I thought I'd send a copy of the file to this group,
mention the problem, and let you all poke around if you want to.
(If you haven't seen mh-format code before and you'd like your head
to hurt, too, then check it out! :)

Here's a diff between my revision 1.10 dated 1997/09/19 and the new
revision 1.11 I created today.  Next I'll send the complete new file.

If you have any comments, corrections, etc., I'd be glad to hear!


--- scan.more   1997/09/19 12:55:55     1.10
+++ scan.more   2008/06/04 18:02:47
@@ -1,4 +1,4 @@
-%; $Header: /u/jpeek/.Mail/RCS/scan.more,v 1.10 1997/09/19 12:55:55 jpeek Exp $
+%; $Header: /u/jpeek/.Mail/RCS/scan.more,v 1.11 2008/06/04 18:01:36 jpeek Exp $
 %4(msg)%<(cur)+%| %>\
 %<{date} SENT%|FILED%>: \
@@ -18,8 +18,8 @@
 %<{apparently-from}  APP-FROM: %{apparently-from}\n%|\
 %<(mymbox{from})%|      FROM: %{from}\n%>%>\
-%<{to}        TO: %{to}%|\
-%<{apparently-to}    APP-TO: %{apparently-to}%|\
-        CC: %{cc}%>%>\
-%<{subject}\n      SUBJ: %60{subject}%|\
+%<{to}        TO: %{to}\n%|\
+%<{apparently-to}    APP-TO: %{apparently-to}\n%>%>\
+%<{cc}        CC: %{cc}\n%>\
+%<{subject}      SUBJ: %60{subject}\n%|\
 %<{body}\n    <<BODY: %60{body}%>%>

%; $Header: /u/jpeek/.Mail/RCS/scan.more,v 1.11 2008/06/04 18:01:36 jpeek Exp $
%4(msg)%<(cur)+%| %>\
%<{date} SENT%|FILED%>: \
%<(gt 15768000)%03(month{date})%(void(year{date}))%02(modulo 100)\
%?(gt 604800)%02(mday{date}) %03(month{date})\
%?(gt 86400)%(weekday{date}) \
%|%02(hour{date}):%02(min{date})%>  \
CHARS: %(size) \
%<{forwarded} (FORWARDED)%>\
%<{resent} (RESENT)%>\
%<{mime-version} (MIME)%>\
%<{replied} REPLIED: \
%<(gt 15768000)%03(month{replied})%(void(year{replied}))%02(modulo 100)\
%?(gt 604800)%02(mday{replied}) %03(month{replied})\
%?(gt 86400)%(weekday{replied}) \
%<{apparently-from}  APP-FROM: %{apparently-from}\n%|\
%<(mymbox{from})%|      FROM: %{from}\n%>%>\
%<{to}        TO: %{to}\n%|\
%<{apparently-to}    APP-TO: %{apparently-to}\n%>%>\
%<{cc}        CC: %{cc}\n%>\
%<{subject}      SUBJ: %60{subject}\n%|\
%<{body}\n    <<BODY: %60{body}%>%>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]