Hi, everyone. The MH book -- and the online version, too, at http://rand-mh.sourceforge.net/book/mh/mhstr.html#scanmor
-- 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! Jerry
--- 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%>: \ %(void(rclock{date}))\ @@ -18,8 +18,8 @@ %|%02(hour{replied}):%02(min{replied})%>%>\n\ %<{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%>: \ %(void(rclock{date}))\ %<(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: \ %(void(rclock{replied}))\ %<(gt 15768000)%03(month{replied})%(void(year{replied}))%02(modulo 100)\ %?(gt 604800)%02(mday{replied}) %03(month{replied})\ %?(gt 86400)%(weekday{replied}) \ %|%02(hour{replied}):%02(min{replied})%>%>\n\ %<{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}%>%>
_______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers