Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!apple!rutgers!att!cbnewsc!gregg From: gregg@cbnewsc.ATT.COM (gregg.g.wonderly) Newsgroups: comp.mail.mh Subject: Re: mh-format questions Message-ID: <5186@cbnewsc.ATT.COM> Date: 1 Dec 89 21:31:33 GMT References: <7131@portia.Stanford.EDU> Organization: AT&T Bell Laboratories Lines: 46 From article <7131@portia.Stanford.EDU>, by hodges@jessica.Stanford.EDU (Jeff Hodges): > I'm trying to customize my replcomps file and am wontering what the > following mh-format escapes are supposed to do (they don't seem to be > documented in the man page)... > lit > void > width %(lit some-text) is one use for %(lit). It appears to be in several format files to cure a used to be NULL pointer bug that left the internal string register, str, pointing at garbage. %(void) is used to evaluate an expression. The value of the expression is then used for tests. The difference between %(void(width)) and %(width) is that the first lets you test the value while the second generates the string representing the value in the output stream. Look at the use in the "scan.*" files in the MHETC directory for examples of this usage. %(width) tells you how wide the output device really is. This is only useful for making use of a 132 column terminal vs a 80 column terminal (or something along those lines). > Additionally, does anyone successfully use the "mymbox" escape; if so, how? %<(mymbox{from})%{to}%|%(friendly{from})%> is a pretty classic use of %(mymbox). This is again something like what is in the MHETC/scan* format files. > Finally, is there any way to determine if one's address appears in the > "to" or "cc" field of a msg being replied to (note that there could be > several addresses in these fields)? %(mymbox{to}) tells you if you are the sole receipient of a message. %(mymbox{cc}) tells you if you are one of several receipients of a message. -- ----- gregg.g.wonderly@att.com (AT&T bell laboratories)