]> git.lizzy.rs Git - plan9front.git/commitdiff
upas/fs: remove imap lastread debounding
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 9 Apr 2017 02:36:47 +0000 (04:36 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 9 Apr 2017 02:36:47 +0000 (04:36 +0200)
its unclear why this was here, waketime logic should handle
this already.

sys/src/cmd/upas/fs/imap.c

index 460994949ce283e4146293506f84c1ef1fc5ffb9..5deffab6f09ca99d364d5151bb6dfdd1e797eaf8 100644 (file)
@@ -39,8 +39,6 @@ typedef struct {
 
 typedef struct Imap Imap;
 struct Imap {
-       ulong   lastread;
-
        char    *mbox;
        /* free this to free the strings below */
        char    *freep;
@@ -913,9 +911,6 @@ imap4read(Imap *imap, Mailbox *mb, int doplumb, int *new)
        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;