🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.pine
Article #25

Re: Getting Mail headers without mail prog???

#25
From: Dana French
Date: Mon, 09 Oct 1995 00:00
24 lines
2398 bytes
dlegate@rsa.csuhayward.edu (Dan LeGate) wrote:
>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.

If all you want is a list of the subject lines from your mail file, do 
the following:

grep -i "^subject:" /usr/spool/mail/${LOGNAME}


You may need to replace "/usr/spool/mail" with your systems location of 
the mail files.


-- 
Dana French                                      E-Mail: dfrench@aig.com
Applied Intelligence Group                        Phone: (405) 341-7700
501 East 15th Street, Suite 202                     Fax: (405) 341-8898
Edmond, OK  73013
Technical Details
Message-ID: <45carc$6p6@qns3.qns.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <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: f72b0,1da94461f21b3512
X-Google-Attributes: gidf72b0,public
X-Google-Thread: 115614,1da94461f21b3512
X-Google-Attributes: gid115614,public
X-Google-Thread: 106cc5,1da94461f21b3512
X-Google-Attributes: gid106cc5,public
X-Google-Thread: 10381e,1da94461f21b3512
X-Google-Attributes: gid10381e,public
X-Google-Thread: 10e366,1da94461f21b3512
X-Google-Attributes: gid10e366,public
X-Google-Thread: fd322,1da94461f21b3512
X-Google-Attributes: gidfd322,public
X-Google-Thread: 10183f,1da94461f21b3512
X-Google-Attributes: gid10183f,public
From: Dana French <dfrench@aig.com>
Subject: Re: Getting Mail headers without mail prog???
Date: 1995/10/09
Message-ID: <45carc$6p6@qns3.qns.com>
X-Deja-AN: 117264854
distribution: inet
references: <45bj41$71u@nic-nac.CSU.net>
to: dlegate@rsa.csuhayward.edu
content-type: text/plain; charset=us-ascii
organization: Applied Intelligence Group
mime-version: 1.0
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
x-mailer: Mozilla 1.1N (Windows; I; 32bit)