Path: utzoo!attcan!uunet!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!ucsd!rutgers!news-server.csri.toronto.edu!utgpu!cunews!news From: holtz@zonker.cascade.carleton.ca (Neal Holtz) Newsgroups: comp.mail.elm Subject: wnewmail: clearing window after reading mail Message-ID: <1990Jul26.184315.3894@ccs.carleton.ca> Date: 26 Jul 90 18:43:15 GMT Sender: news@ccs.carleton.ca (news) Organization: none Lines: 37 I run wnewmail in a small window at the bottom of the screen. When I read my inbox, I like to have that window cleared so that the only message headers displayed are those arriving since I last read mail. In my environment (Apollo) that can be done simply by writing a form feed to the window. A very easy, but far from "correct" solution, is to clear the window whenever the inbox shrinks. This doesn't work at all when: 1. reading messages does not result in their deletion from the in folder. 2. when you are watching multiple in folders. However, it does do pretty much what I want (I'm not yet using filter). For Elm2.3 PL5, the diffs are: *** utils/newmail.c.orig Thu Jul 26 14:05:14 1990 --- utils/newmail.c Thu Jul 26 14:22:37 1990 *************** *** 264,269 **** --- 264,272 ---- } folders[i].filesize = newsize; + + if (in_window && !debug && (total_folders == 1)) + printf( "%s messages read.\n\fIncoming mail:\n", newsize == 0 ? "All" : "Some" ); } } -- Prof. Neal Holtz, Dept. of Civil Eng., Carleton University, Ottawa, Canada Internet: holtz@civeng.carleton.ca Tel: (613)788-5797 Fax: (613)788-3951