Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsc!gregg From: gregg@cbnewsc.ATT.COM (gregg.g.wonderly) Newsgroups: comp.mail.mh Subject: Re: Scan format for From: line question -- getting most significant part Message-ID: <12566@cbnewsc.ATT.COM> Date: 4 Jan 90 01:19:20 GMT References: <2859@decuac.DEC.COM> Organization: AT&T Bell Laboratories Lines: 27 From article <2859@decuac.DEC.COM>, by avolio@decuac.DEC.COM (Frederick M. Avolio): > > When I scan my mail in a folder, I'd like to see the msot significant > part of the address. Is there a way to do this? For example At first thought, I tried the following fragment in the file foo via scan -format "`cat foo`" +inbox %(void(type{from}))\ %<(lt 0)\ %(host{from})!%(mbox{from})\ %|\ %<(gt 0)\ %(mbox{from})@%(host{from})\ %|\ %(mbox{from})\ %>\ %> This almost works except %(host{from}) yields the path and %(path{from}) is empty. This is in MH 6.5 with some local modifications. I remember adding %(lt) or %(gt) which was missing, but don't remember which it was. -- ----- gregg.g.wonderly@att.com (AT&T bell laboratories)