]> granicus.if.org Git - uw-imap/commitdiff
add files for 2008-11-18T18:46:59Z
authorUnknown <>
Tue, 18 Nov 2008 18:46:59 +0000 (18:46 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 7 Sep 2018 00:08:20 +0000 (00:08 +0000)
src/imapd/imapd.c

index 9590a4f1986a4e528d4267ebe9873f3831b50ffd..d3d1566070654fb69469e11cb48bad65adaafc22 100644 (file)
@@ -1300,15 +1300,6 @@ int main (int argc,char *argv[])
            unsigned long donefake = 0;
            PSOUT ("+ Waiting for DONE\015\012");
            PFLUSH ();          /* dump output buffer */
-                               /* maybe do a checkpoint if not anonymous */
-           if (!anonymous && stream && (time (0) > lastcheck + CHECKTIMER)) {
-             mail_check (stream);
-                               /* cancel likely altwin from mail_check() */
-             if (lsterr) fs_give ((void **) &lsterr);
-             if (lstwrn) fs_give ((void **) &lstwrn);
-                               /* remember last checkpoint */
-             lastcheck = time (0);
-           }
                                /* inactivity countdown */
            i = ((TIMEOUT) / (IDLETIMER)) + 1;
            do {                /* main idle loop */
@@ -1316,6 +1307,15 @@ int main (int argc,char *argv[])
                mail_parameters (stream,SET_ONETIMEEXPUNGEATPING,
                                 (void *) stream);
                ping_mailbox (uid);
+                               /* maybe do a checkpoint if not anonymous */
+               if (!anonymous && stream && (time (0) > lastcheck + CHECKTIMER)) {
+                 mail_check (stream);
+                               /* cancel likely altwin from mail_check() */
+                 if (lsterr) fs_give ((void **) &lsterr);
+                 if (lstwrn) fs_give ((void **) &lstwrn);
+                               /* remember last checkpoint */
+                 lastcheck = time (0);
+               }
              }
              if (lstwrn) {     /* have a warning? */
                PSOUT ("* NO ");