Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!killer!texbell!flatline!erict From: erict@flatline.UUCP (Lemmy Caution) Newsgroups: comp.mail.elm Subject: Want to remove mail file when done: How? Message-ID: <390@flatline.UUCP> Date: 8 Mar 89 20:13:43 GMT Reply-To: erict@flatline.UUCP (Lemmy Caution) Organization: Cold Lampin With Flav' Lines: 24 Here's the situation: AT&T 3b1, 3.0 OS. The window manager of a 3b1 puts a mail icon at the top of the screen if mail exists for the user. "Mail" is defined as a non-zero length file existing as /usr/mail/username. To get rid of the icon, the mail file has to dissappear -- not just become zero lenght. (You can also hit keystrokes to get rid of the icon, but the idea is that after you read your mail, the icon goes away...) Is there a way to make elm2.1 delete this file if it is empty upon exit? That's all I want it to do, really. Right before it finishes exiting, it checks to see if /usr/mail/username is zero length, and deletes it if it is. -- J. Eric Townsend | "Texas: It's like another country, uunet!sugar!flatline!erict | but a lot closer." Texas TV travel ad. bellcore!texbell!/ 511 Parker #2 |EastEnders Mailing List: BITNET: cosc5fa@uhnix1.BITNET Houston,Tx,77007 |eastender@flatline.UUCP