procmail
[Top] [All Lists]

Re: How could i get some indication of a new message ?

1997-05-19 14:22:00
"ee" == era eriksson <era(_at_)iki(_dot_)fi> writes:

    ee> (I'd like to have that kludged into Emacs's display-time
    ee> instead; I've been working on that at times but never gotten
    ee> around to finishing it.)

Here's how I convinced Emacs's (19.34) display-time to be useful:

        (setq display-time-mail-file "/home/rjd/incoming/biff")

And then I have a cron job that looks like this:

        0-59 * * * * cd /home/rjd/incoming; newmail.sh

where my little newmail.sh script looks like this:

        #! /bin/sh

        # Run this as a cron job to determine whether there is any unread
        # mail.  It does this by simply cat-ing some selected spool files into
        # one biff file which is then checked periodically by the Emacs
        # display-time stuff.

        files="foo.spool\
            baz.spool\
            iki.spool\
            zog.spool"

        cat -s $files >biff

This works nicely for me because I only list those spool files that
I'm interested in getting notified about.

Rob.