diff options
author | rsc <devnull@localhost> | 2007-06-23 06:27:38 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-06-23 06:27:38 +0000 |
commit | 313c365a29a9a21c47f5f9d842e8aaec8c050742 (patch) | |
tree | ce1f05bc0a9ea6923855a9c7c47304e0cc72b173 | |
parent | 7cc0e47fa896d9261d8f6e9787ffd6a36a746dd1 (diff) | |
download | plan9port-313c365a29a9a21c47f5f9d842e8aaec8c050742.tar.gz plan9port-313c365a29a9a21c47f5f9d842e8aaec8c050742.tar.bz2 plan9port-313c365a29a9a21c47f5f9d842e8aaec8c050742.zip |
remove elsewhere-deleted messages from window; Refresh -> Get
-rw-r--r-- | src/cmd/acme/mail/mail.c | 16 | ||||
-rw-r--r-- | src/cmd/acme/mail/mesg.c | 2 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/cmd/acme/mail/mail.c b/src/cmd/acme/mail/mail.c index c61f0c12..07d011c2 100644 --- a/src/cmd/acme/mail/mail.c +++ b/src/cmd/acme/mail/mail.c @@ -327,6 +327,7 @@ delmesg(char *name, char *digest, int dodel, char *save) if(dodel) mesgmenumarkdel(wbox, &mbox, m, 1); else{ +fprint(2, "message is gone...\n"); /* notification came from plumber - message is gone */ mesgmenudel(wbox, &mbox, m); if(!m->opened) @@ -443,21 +444,6 @@ mboxcommand(Window *w, char *s) return 1; } if(strcmp(s, "Get") == 0){ - if(mbox.dirty){ - mbox.dirty = 0; - fprint(2, "mail: mailbox not written\n"); - return 1; - } - winsetaddr(w, ",", 1); - if(w->data == nil) - w->data = winopenfile(w, "data"); - fswrite(w->data, "", 0); - mesgmenu(wbox, &mbox); - winclean(wbox); - fswrite(mbox.ctlfd, "refresh", 7); - return 1; - } - if(strcmp(s, "Refresh") == 0){ fswrite(mbox.ctlfd, "refresh", 7); return 1; } diff --git a/src/cmd/acme/mail/mesg.c b/src/cmd/acme/mail/mesg.c index d21bfed1..9bfe10e1 100644 --- a/src/cmd/acme/mail/mesg.c +++ b/src/cmd/acme/mail/mesg.c @@ -561,7 +561,7 @@ mesgmenudel(Window *w, Message *mbox, Message *m) if(w->data ==nil) w->data = winopenfile(w, "data"); - buf = name2regexp(deletedrx, m->name); + buf = name2regexp(deletedrx01, m->name); if(winsetaddr(w, buf, 1) && winsetaddr(w, ".,./.*\\n(\t.*\\n)*/", 1)) fswrite(w->data, "", 0); free(buf); |