ok thanks for that script it works just fine:)

two more questions though

first if i'll put it in /etc/profile will it work for all users?

i'm using FreeBSD 4.3-RELEASE

and another question how do i notify user when e-mail arriving while he's on
shell?

----- Original Message -----
From: "Charles Cazabon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 12, 2001 1:04 AM
Subject: Re: notification of new email whenever user logs in on the shell


> alexus <[EMAIL PROTECTED]> wrote:
> > > Yes, many Maildir-checkers exist.  There are half a dozen or more
listed
> > > in the "User-contributed Maildir support" section of qmail.org.
>
> > can you suggest one that widely used and most popular or 'cause i didn't
> > find any there (i guess i'm blind or something)
>
> There's several.  The first one one the page is a link in the line which
reads
> "Matthew C. Mead has a ``from'' program that prints a summary of mail in a
> maildir waiting to be read. ".  The line below that has a link to another
one.
> I have no idea how popular these are; I use a quickie Python script I
wrote.
> Here's a freebie, in bash shell scripting:
>
> #!/bin/bash
>
> INBOX=$HOME/Maildir
> new=`ls "$INBOX"/new/ | wc -l`
> if [ "$new" -gt 0 ] ; then
>     echo "You have $new new messages waiting."
> fi
>
> Charles
> --
> -----------------------------------------------------------------------
> Charles Cazabon                            <[EMAIL PROTECTED]>
> GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
> Any opinions expressed are just that -- my opinions.
> -----------------------------------------------------------------------
>

Reply via email to