Article View: comp.mail.mh
Article #1962Re: Scan format for From: line question -- getting most significant part
From: gregg.g.wonderly
Date: Thu, 04 Jan 1990 01:19
Date: Thu, 04 Jan 1990 01:19
27 lines
1146 bytes
1146 bytes
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)
Technical Details
Message-ID:
<12566@cbnewsc.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsc!greggReferences:
<2859@decuac.DEC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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