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
> (cases of forwarded mails etc.). Any better ideas ?
>
/tmp$ from -h
from: invalid option -- h
usage: from [-c] [-f file] [-s sender] [user]
/tmp$
-c will merely give you the count.
user will run it on that user mailbox. You do need permissions.
I know nothing about your your 2nd question.
> 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 impossible with pine, is there a client (not for X)
> that can do it ?
>
> Thanks,
> Ishai.
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
--
Shaul Karl, [EMAIL PROTECTED] e t
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]