Article View: comp.mail.pine
Article #39Re: Getting Mail headers without mail prog???
From: Sven Guckes
Date: Mon, 23 Oct 1995 00:00
Date: Mon, 23 Oct 1995 00:00
32 lines
2741 bytes
2741 bytes
yfcon@nic.dataphone.se. (Anders Waller) 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)?
>>>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 \!*'
Well, this looks at *all* lines which contain "From".
It should be "^From: ", though.
And even this does not skip "included non-quoted mails".
So - could somebody give a better script? PERL, anyone?
I'd promise the best script a postcard from Berlin.
How about one of the "wrapped Reichstag"?
I intend to add these scripts the "ELM Pages" (see sig)
so that I can point people to it when the question arises yet again.
Sven
Cc: yfcon@nic.dataphone.se. (Anders Waller) <-- spurious dot at end of address
--
ELM - the "Easy Learn Mail" program. Newsgroup: comp.mail.elm
The "ELM Pages" - all about ELM on the World Wide Web:
http://www.math.fu-berlin.de/~guckes/elm/
ELM versions: Latest release: ELM2.4PL24 [940920]
Latest ME patch: ELM2.4PL24ME8b [951012]
Latest alpha: ELM2.5a08 [950908]
--
http://www.math.fu-berlin.de/~guckes/.signature
Technical Details
Message-ID:
<guckes.814473392@leibniz.math.fu-berlin.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<45bj41$71u@nic-nac.CSU.net> <DG91sJ.4np6@austin.ibm.com> <ssb4155.1.3082F8DD@ecom.ecn.bgu.edu> <46g81r$c2k@news.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: 106cc5,1da94461f21b3512 X-Google-Attributes: gid106cc5,public X-Google-Thread: fd322,1da94461f21b3512 X-Google-Attributes: gidfd322,public X-Google-Thread: 10e366,1da94461f21b3512 X-Google-Attributes: gid10e366,public X-Google-Thread: 115614,1da94461f21b3512 X-Google-Attributes: gid115614,public X-Google-Thread: 10381e,1da94461f21b3512 X-Google-Attributes: gid10381e,public X-Google-Thread: f72b0,1da94461f21b3512 X-Google-Attributes: gidf72b0,public X-Google-Thread: 10183f,1da94461f21b3512 X-Google-Attributes: gid10183f,public From: Sven Guckes <guckes@math.fu-berlin.de> Subject: Re: Getting Mail headers without mail prog??? Date: 1995/10/23 Message-ID: <guckes.814473392@leibniz.math.fu-berlin.de> X-Deja-AN: 117978842 references: <45bj41$71u@nic-nac.CSU.net> <DG91sJ.4np6@austin.ibm.com> <ssb4155.1.3082F8DD@ecom.ecn.bgu.edu> <46g81r$c2k@news.dataphone.se> organization: Freie Universitaet Berlin x-access: 16 17 19 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