Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!pasteur!agate!usenet From: usenet@agate.BERKELEY.EDU (USENET Administrator) Newsgroups: comp.mail.mh Subject: Printing right-most N characters of a field for scan lines? Message-ID: <7296@agate.BERKELEY.EDU> Date: 1 Mar 88 19:17:41 GMT Reply-To: chapman@eris.berkeley.edu (Brent Chapman) Organization: UNIXversity of California at Berkeley Lines: 25 Is there a way to tell "scan" that I want the right-most N characters of a given field, rather than the left-most N characters? If not, has anyone hacked the source to provide such a feature? I'm using MH-6.5. I would like this because most of my mail comes in via UUCP, and the left-most N characters (where N is around 20 or 30) of a "From:" field are usually much less useful than the rightmost N; the username of the person who sent the mail is almost never within the first 20 or 30 characters, but is almost always within the last 20 or 30. I tried recompiling MH without the "BERK" and "DUMP" options, but that didn't help much. The programs tended to core dump rather often, and the address parsing features enabled by leaving out "BERK" and "DUMB" weren't really smart enough to do what I wanted anyway (basicly, what I want to see is a user and the host that user is on; I don't care if other stuff is there as well, but I'll ignore it). Thanks! -Brent -- Brent Chapman Capital Market Technology, Inc. Senior Programmer/Analyst 1995 University Ave., Suite 390 {lll-tis,ucbvax!cogsci}!capmkt!brent Berkeley, CA 94704 capmkt!brent@{lll-tis.arpa,cogsci.berkeley.edu} Phone: 415/540-6400