mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 10:52:26 +01:00 
			
		
		
		
	src: pilerimport counter display fix
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		@@ -51,7 +51,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
 | 
			
		||||
            }
 | 
			
		||||
            else unlink(fname);
 | 
			
		||||
 | 
			
		||||
            if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout);
 | 
			
		||||
            if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
 | 
			
		||||
         }
 | 
			
		||||
 | 
			
		||||
         snprintf(fname, sizeof(fname)-1, "%ld-%d", t, tot_msgs);
 | 
			
		||||
@@ -71,7 +71,7 @@ int import_from_mailbox(char *mailbox, struct session_data *sdata, struct __data
 | 
			
		||||
      }
 | 
			
		||||
      else unlink(fname);
 | 
			
		||||
 | 
			
		||||
      if(data->quiet == 0) printf("processed: %7d\r", tot_msgs); fflush(stdout);
 | 
			
		||||
      if(data->quiet == 0){ printf("processed: %7d\r", tot_msgs); fflush(stdout); }
 | 
			
		||||
   }
 | 
			
		||||
 | 
			
		||||
   fclose(F);
 | 
			
		||||
 
 | 
			
		||||
@@ -87,7 +87,7 @@ int import_from_maildir(char *directory, struct session_data *sdata, struct __da
 | 
			
		||||
 | 
			
		||||
               i++;
 | 
			
		||||
 | 
			
		||||
               if(data->quiet == 0) printf("processed: %7d\r", *tot_msgs); fflush(stdout);
 | 
			
		||||
               if(data->quiet == 0){ printf("processed: %7d\r", *tot_msgs); fflush(stdout); }
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
               printf("%s is not a file\n", fname);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user