git: 9front

Download patch

ref: e6815283f0ec6715d34d49dfa33d9ba47f164d9f
parent: de0bf95c27e3431cf27cccc6451176bab7cdf70b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 9 00:36:47 EDT 2017

upas/fs: remove imap lastread debounding

its unclear why this was here, waketime logic should handle
this already.

--- a/sys/src/cmd/upas/fs/imap.c
+++ b/sys/src/cmd/upas/fs/imap.c
@@ -39,8 +39,6 @@
 
 typedef struct Imap Imap;
 struct Imap {
-	ulong	lastread;
-
 	char	*mbox;
 	/* free this to free the strings below */
 	char	*freep;
@@ -913,9 +911,6 @@
 	Message *m, **ll;
 
 	*new = 0;
-	if((ulong)time(0) - imap->lastread < 10)
-		return nil;
-	imap->lastread = time(0);
 	imap4cmd(imap, "status %Z (messages uidvalidity)", imap->mbox);
 	if(!isokay(s = imap4resp(imap)))
 		return s;
--