🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189190

Checking for mail, is there an elegant way ?

#189190
From: Christian Lynbech
Date: Wed, 10 Apr 1991 14:00
22 lines
1197 bytes
Is there a more elegant way of checking for the presence of mail, than this:

	(if (string= (rmail) "(No new mail has arrived)")
    	    (progn (set-buffer "RMAIL")
	           (rmail-quit)))

The intention is to start rmail up on mail present (code situated in .emacs),
and have it closed again if no mail is present. This is to avoid looking at the
rmail buffer when there is no mail. 



Christian Lynbech

DAIMI
University of Aarhus,DK-Denmark                 email: lynbech@daimi.aau.dk

--
Christian Lynbech

DAIMI
University of Aarhus,DK-Denmark                 email: lynbech@daimi.aau.dk
Technical Details
Message-ID: <1991Apr10.140006.8429@daimi.aau.dk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!dkuug!daimi!lynbech

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,1f86221f48b3bb45,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-04-10 10:59:00 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!dkuug!daimi!lynbech
From: lynbech@daimi.aau.dk (Christian Lynbech)
Newsgroups: gnu.emacs.help
Subject: Checking for mail, is there an elegant way ?
Message-ID: <1991Apr10.140006.8429@daimi.aau.dk>
Date: 10 Apr 91 14:00:06 GMT
Sender: lynbech@daimi.aau.dk (Christian Lynbech)
Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
Lines: 22