Path: utzoo!mnetor!uunet!husc6!mailrus!ames!pasteur!ucbvax!cad.luth.se!sow From: sow@cad.luth.se (Sven-Ove Westberg) Newsgroups: comp.mail.mh Subject: Re: Printing right-most N characters of a field for scan lines? Message-ID: <8803020803.AA20875@cad.luth.se> Date: 2 Mar 88 08:03:52 GMT References: <7296@agate.BERKELEY.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38 If you want to print out the username instead of the left most characters in the from field. If MH is compiled without the BERK option, (you didn't have a real MH with this option :-), MH can separate the address field into different parts. My formatfile to scan printout the address in the following format. From: Donald Duck (Guess who) 1) Donald Duck 2) (Guess who) if Donald Duck didn't exist. 3) donald@fo.foo.com if 1) or 2) didn't exist. ================================================================= %4(msg)%<(cur)+%| %>%<{replied}-%| %>\ %02(mday{date})/%02(mon{date})%<{date} %|*%>\ %<(mymbox{from})%<{to}To:\ %<(nonnull(pers{to}))%17(pers{to})%|\ %<(nonnull(note{to}))%17(note{to})%|\ %17(friendly{to})%>%>%|\ %<{cc}Cc:\ %<(nonnull(pers{cc}))%17(pers{cc})%|\ %<(nonnull(note{cc}))%17(note{cc})%|\ %17(friendly{cc})%>%>%|\ %<{newsgroups}News:%15{newsgroups}%|\ %20(lit Missing to and cc)%>%>%>%|\ %<(nonnull(pers{from}))%20(pers{from})%|\ %<(nonnull(note{from}))%20(note{from})%|\ %20(friendly{from})%>%>%> \ %{subject} %<{body}<<%{body}%> ================================================================= Sven-Ove Westberg, CAD, University of Lulea, S-951 87 Lulea, Sweden. UUCP: {uunet,mcvax}!enea!cad.luth.se!sow Internet: sow@cad.luth.se