On Tue, May 04, 1999 at 11:49:09AM -0500, Andy Walden wrote:
> > Andy Walden writes:
> >
> > >
> > > What marks a message as read or new? I'm trying to reinstate the "You have
> > > new Mail" when people login and figured I would write a program to do it
> > > since I couldn't find one. I also need a program to just list new mail
> > > headers. Does anyone know the flag that gets set to make a message New or
> > > Read? Thanks. andy
> >
> > That depends on whether or not you use mailbox files or Maildirs. mailbox
> > files use the Status: header in each individual message. For Maildirs, see
> > the man page for maildir(5), and http://pobox.com/~djb/proto/maildir.html
>
> I use maildirs, but I don't see what you are refering to on the man page.
You might also want to look at the source code for maildirwatch. I haven't
looked at it, so I don't know how helpful it will be, but here's what its man
page says:
NAME
maildirwatch - look for new mail in a maildir
SYNOPSIS
maildirwatch
DESCRIPTION
maildirwatch watches your maildir for new mail. You must
supply a MAILDIR environment variable with the name of
your maildir directory.
maildirwatch prints a new mail summary twice per minute.
It is designed to run inside a (VT100-compatible) window;
it clears the window before each summary.
Chris