refresh on i, y commands
This commit is contained in:
parent
e4ad2971d7
commit
de7b2cd774
1 changed files with 8 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue