commit de7b2cd774aa48a64c36f08c3b9bce4c16027a26 from: rsc date: Sat Jun 23 06:30:41 2007 UTC refresh on i, y commands commit - e4ad2971d754468b41edc8be590223b497bc0790 commit + de7b2cd774aa48a64c36f08c3b9bce4c16027a26 blob - a3a251be39262f5419ea41f175a82f894a9cd874 blob + 231305ea421914f901cd6fe47daf15319f266dae --- src/cmd/upas/ned/nedmail.c +++ src/cmd/upas/ned/nedmail.c @@ -1743,8 +1743,16 @@ Message* icmd(Cmd *x, Message *m) { int n; + char buf[1024]; + CFid *fd; USED(x); + snprint(buf, sizeof buf, "%s/ctl", mbname); + fd = fsopen(mailfs, buf, OWRITE); + if(fd){ + fswrite(fd, "refresh", 7); + fsclose(fd); + } n = dir2message(&top, reverse); if(n > 0) Bprint(&out, "%d new message%s\n", n, plural(n));