aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-06-23 06:30:41 +0000
committerrsc <devnull@localhost>2007-06-23 06:30:41 +0000
commitde7b2cd774aa48a64c36f08c3b9bce4c16027a26 (patch)
treed10dea0b906509854625d82150083d3b9a4044da /src/cmd/upas
parente4ad2971d754468b41edc8be590223b497bc0790 (diff)
downloadplan9port-de7b2cd774aa48a64c36f08c3b9bce4c16027a26.tar.gz
plan9port-de7b2cd774aa48a64c36f08c3b9bce4c16027a26.tar.bz2
plan9port-de7b2cd774aa48a64c36f08c3b9bce4c16027a26.zip
refresh on i, y commands
Diffstat (limited to 'src/cmd/upas')
-rw-r--r--src/cmd/upas/ned/nedmail.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/upas/ned/nedmail.c b/src/cmd/upas/ned/nedmail.c
index a3a251be..231305ea 100644
--- a/src/cmd/upas/ned/nedmail.c
+++ b/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));