holtz@zonker.cascade.carleton.ca (Neal Holtz) (07/27/90)
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