Article View: comp.mail.pine
Article #34Re: Getting Mail headers without mail prog???
From: Daniel W. McRobb
Date: Thu, 19 Oct 1995 00:00
Date: Thu, 19 Oct 1995 00:00
44 lines
2915 bytes
2915 bytes
In article <Pine.SUN.3.91.951018103830.14452D-100000@access2.digex.net> Paul O Bartlett <pobart@access.digex.net> writes:
Return-Receipt-To: pobart@access.digex.net
On 17 Oct 1995, Danny van der Rijn wrote:
| In article <45bj41$71u@nic-nac.CSU.net> dlegate@rsa.csuhayward.edu (Dan LeGate) writes:
|
| >So my question is: does anyone know of any
| >SMALL utilities out there that will list just your mail headers (besides
| >mail and mailx)? Thanks for any help or information you can provide.
|
| /usr/ucb/from
This is fine provided all of your incoming mail is in your INBOX
(i.e., still in the mail spool). However, I, like _many_ people, use a
utility such as procmail (or filter) to pre-sort mail into various
folders before I ever invoke my mail reader (Pine, in my case). I have
been wanting a utility (Perl OK) that would list the headers of mail not
only remaining in the INBOX but also in pre-sorted folders.
Paul
My personal prefernce is to use 'scan -file filename'. scan is part
of the MH package. I believe a crusty version comes w/ AIX, but
you're probably better off building the latest if you don't have it on
your system. 'frm' doesn't have enough flexibility for me, and it
only spits out the From and Subject fields. I prefer to have more
info, so I alias 'frm' to this:
scan -form scan.spool -file $MAIL
My scan.spool:
%<(cur)+%| %>%<{replied}-%| %>\
%02(mon{date})/%02(mday{date}) \
%02(hour{date}):%02(min{date}) %3(tzone{date})\
%<{date} %|*%>\
%<(mymbox{from})--> %5(mbox{to}) %|%8(mbox{from}) %>|\
%{subject}%<{body}<<%{body}%>
Daniel
~~~~~~
Technical Details
Message-ID:
<DWM.95Oct19165429@bugsy.aa.ans.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<45bj41$71u@nic-nac.CSU.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4424,1da94461f21b3512 X-Google-Attributes: gidf4424,public X-Google-Thread: fc89c,91708edc0116165,start X-Google-Attributes: gidfc89c,public X-Google-Thread: f72b0,1da94461f21b3512 X-Google-Attributes: gidf72b0,public X-Google-Thread: 106cc5,1da94461f21b3512 X-Google-Attributes: gid106cc5,public X-Google-Thread: 115614,1da94461f21b3512 X-Google-Attributes: gid115614,public X-Google-Thread: fd322,1da94461f21b3512 X-Google-Attributes: gidfd322,public X-Google-Thread: 10650a,91708edc0116165,start X-Google-Attributes: gid10650a,public X-Google-Thread: 10183f,1da94461f21b3512 X-Google-Attributes: gid10183f,public From: dwm@bugsy.aa.ans.net (Daniel W. McRobb) Subject: Re: Getting Mail headers without mail prog??? Date: 1995/10/19 Message-ID: <DWM.95Oct19165429@bugsy.aa.ans.net> X-Deja-AN: 117786675 sender: news@ans.net (News Administrator) references: <45bj41$71u@nic-nac.CSU.net> organization: ANS CO+RE Systems, Inc. - Elmsford, NY newsgroups: comp.mail.pine,comp.mail.headers,comp.mail.misc,comp.unix.misc,ca.unix,comp.unix.aix,comp.unix.internals,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.unix.user-friendly