Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2021 14:54:39 -0400
From:      Kurt Hackenberg <kh@panix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: monitoring incoming mailbox in console mode
Message-ID:  <9ba099f4-ce0d-9611-d2c1-08967d8ddbaa@panix.com>
In-Reply-To: <20210908124536.GA17@sh4-5.1blu.de>
References:  <20210908124536.GA17@sh4-5.1blu.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2021/09/08 08:45, Matthias Apitz wrote:

> I want to monitor my mailbox below /var/mail/... when the system is only
> running in console mode, i.e. w/o X11 and KDE desktop. On new mail, i.e.
> when the last modified date of the mbox file is changing, it should
> produce the normal BEL signal. Do we have something in ports before I
> write my own script?

Shells can check for new mail, though they don't ring the bell. Csh uses 
the shell variable "mail"; bash uses MAIL, MAILCHECK, and MAILPATH. See 
the man pages.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ba099f4-ce0d-9611-d2c1-08967d8ddbaa>