🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.pine
Article #41

Re: Getting Mail headers without mail prog???

#41
From: Patrick.Seemann
Date: Tue, 31 Oct 1995 00:00
21 lines
1851 bytes
Anders Waller <yfcon@nikson.dataphone.se> wrote:
>
>alias from	'more $MAILPATH | egrep "^From: | ^From "

Aehem, isn't this an useless use of more? egrep "..." $MAILPATH should give the same result.

On many systems, MAILPATH is a colon separated list of files, not just one file. Something
like

OIFS=$IFS
IFS=:
set -- $MAILPATH
IFS=$OIFS
egrep "^From: |^From " $@

is probably better in these cases.

gruss, pat

-- 
I don't speak for UBS, I just work here.
Technical Details
Message-ID: <4752pe-ik8@svstch.ubs.ch>
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> <46g81r$c2k@news.dataphone.se> <guckes.814473392@leibniz.math.fu-berlin.de> <Pine.LNX.3.91.951031093026.20400B-100000@nikson.dataphone.se>

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: f8c9b,9f449d24d544d0eb,start
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: 10183f,1da94461f21b3512
X-Google-Attributes: gid10183f,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: 1012a6,9f449d24d544d0eb,start
X-Google-Attributes: gid1012a6,public
X-Google-Thread: 106cc5,1da94461f21b3512
X-Google-Attributes: gid106cc5,public
From: Patrick.Seemann@ubs.ch
Subject: Re: Getting Mail headers without mail prog???
Date: 1995/10/31
Message-ID: <4752pe-ik8@svstch.ubs.ch>
X-Deja-AN: 118372041
references: <45bj41$71u@nic-nac.CSU.net> <DG91sJ.4np6@austin.ibm.com> <ssb4155.1.3082F8DD@ecom.ecn.bgu.edu> <46g81r$c2k@news.dataphone.se> <guckes.814473392@leibniz.math.fu-berlin.de> <Pine.LNX.3.91.951031093026.20400B-100000@nikson.dataphone.se>
content-type: text/plain; charset=us-ascii
organization: UBS
mime-version: 1.0
newsgroups: comp.mail.pine,comp.mail.elm,comp.mail.headers,comp.mail.misc,comp.mail.mime,ca.unix,comp.unix.questions,comp.unix.shell
x-mailer: Mozilla 1.1N (Windows; I; 16bit)