It's a standard trick :-)
Messages in these files are separated by From lines (notice the space).
Why do you use less? You can supply the file name to grep:
egrep -c '^From ' /var/spool/mail/USERNAME
I'm not familiar with pine. Have you checked it's docs? It sounds like
a trivial question.
On Sun, Dec 29, 2002 at 10:25:47AM +0200, Ishai Parasol wrote:
I'm looking for a way to know (using the command line) the number of emails
that a /var/spool/mail/USERNAME file contains. Right now I'm using less
/var/spool/mail/USERNAME | grep -c Subject: , but it's not accurate enough
(cases
On Sun, 29 Dec 2002, Ishai Parasol wrote:
Another question. Is it possible to run pine with another user email file
(/var/spool/mail/USER) ? for example, I'm logged as root and want to read
USER2 emails (ofcourse, USER2 can't login, he's only a mail account and not
a full user). If it's
On Sun, 29 Dec 2002, guy keren wrote:
On Sun, 29 Dec 2002, Ishai Parasol wrote:
Another question. Is it possible to run pine with another user email file
(/var/spool/mail/USER) ?for example, I'm logged as root and want to read
USER2 emails (ofcourse, USER2 can't login, he's only a mail
On Sun, Dec 29, 2002 at 10:25:47AM +0200, Ishai Parasol wrote:
Hi
I'm looking for a way to know (using the command line) the number of emails
that a /var/spool/mail/USERNAME file contains. Right now I'm using less
/var/spool/mail/USERNAME | grep -c Subject: , but it's not accurate enough