🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.pine
Article #38

Re: Getting Mail headers without mail prog???

#38
From: yfcon Anders Waller
Date: Mon, 23 Oct 1995 00:00
32 lines
3245 bytes
EIU#114155 in SSB B-12 LAB (ssb4155@ecom.ecn.bgu.edu) wrote:
: In article <DG91sJ.4np6@austin.ibm.com> jfh@austin.ibm.com (John F. Haugh II) writes:
: >From: jfh@austin.ibm.com (John F. Haugh II)
: >Subject: Re: Getting Mail headers without mail prog???
: >Date: Tue, 10 Oct 1995 20:19:31 GMT

: >In article <45bj41$71u@nic-nac.CSU.net> dlegate@rsa.csuhayward.edu (Dan LeGate) writes:
: >>Okay, our sysadmin has cut off rights to /usr/bin/mail and /usr/bin/mailx 
: >>and has allowed us only to use Pine, which I absolutely love, but I also 
: >>like to use mail (or mailx) to list my mail headers (mail -H).  To my 
: >>knowledge, pine doesn't have a simple command-line feature to do this - 
: >>correct me if I'm wrong.  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.

: >Is "awk" out of the question???  This sounds like a trick question ...


Hm, I wrote an alias once, before I found out about the from command.
Here it is:
alias from	'more $MAILPATH | grep From | grep -v "<" | grep -v From: | cut -f2- -d" " ;echo ""; echo "Total Mail and current mailpath:" ; du -k $MAILPATH \!*'


Of course you have to have the environment variable MAILPATH set to whereever 
your mail is. It can easily be improved so it can show how many mails you got.

: >-- 
: >John F. Haugh II                                       PSP Division, IBM/Austin
: >SneakerNet: 905/4E016                                      MaBell: 512-823-8817
: >InterNet: jfh@austin.ibm.com   [Member SECA]                VNET: JFH at AUSTIN

/Anders Waller
Technical Details
Message-ID: <46g81r$c2k@news.dataphone.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <45bj41$71u@nic-nac.CSU.net> <DG91sJ.4np6@austin.ibm.com> <ssb4155.1.3082F8DD@ecom.ecn.bgu.edu>

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: f72b0,1da94461f21b3512
X-Google-Attributes: gidf72b0,public
X-Google-Thread: 115614,1da94461f21b3512
X-Google-Attributes: gid115614,public
X-Google-Thread: fd322,1da94461f21b3512
X-Google-Attributes: gidfd322,public
X-Google-Thread: 10183f,1da94461f21b3512
X-Google-Attributes: gid10183f,public
X-Google-Thread: 10e366,1da94461f21b3512
X-Google-Attributes: gid10e366,public
X-Google-Thread: 106cc5,1da94461f21b3512
X-Google-Attributes: gid106cc5,public
X-Google-Thread: 10381e,1da94461f21b3512
X-Google-Attributes: gid10381e,public
From: yfcon@nic.dataphone.se. (Anders Waller)
Subject: Re: Getting Mail headers without mail prog???
Date: 1995/10/23
Message-ID: <46g81r$c2k@news.dataphone.se>
X-Deja-AN: 117978841
distribution: inet
references: <45bj41$71u@nic-nac.CSU.net> <DG91sJ.4np6@austin.ibm.com> <ssb4155.1.3082F8DD@ecom.ecn.bgu.edu>
followup-to: comp.mail.pine,comp.mail.elm,comp.mail.headers,comp.mail.misc,comp.mail.mime,comp.unix.misc,ca.unix,comp.unix.aix,comp.unix.internals,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.unix.solaris,comp.unix.user-friendly
organization: DataPhone Public Internet, Sweden
newsgroups: comp.mail.pine,comp.mail.elm,comp.mail.headers,comp.mail.misc,comp.mail.mime,comp.unix.misc,ca.unix,comp.unix.aix,comp.unix.internals,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.unix.solaris,comp.unix.user-friendly