Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sdk:scripts:remote-mail [2015/05/05 15:04]
127.0.0.1 external edit
sdk:scripts:remote-mail [2022/09/05 12:19] (current)
schmitt
Line 57: Line 57:
         }         }
     }     }
 +}
  
-    ​if (!KEEP) {+if (!KEEP) { 
 +    for (i = (cnt-1); i >= 0; i--) {
         if (nb_mail_delete(USR,​ PWD, IMAPURL, i) != 0) {         if (nb_mail_delete(USR,​ PWD, IMAPURL, i) != 0) {
             printf("​ERROR:​ unable to delete mail #​%d\n",​ i);             printf("​ERROR:​ unable to delete mail #​%d\n",​ i);
         } else {         } else {
-            printf("​deleted mail #​%d\n"​);​+            printf("​deleted mail #%d\n", i);
         }         }
     }     }