Fix to REBUILD.SYSTEM to handle empty email dirs.

This commit is contained in:
Bobbi Webber-Manners 2021-11-12 22:26:45 -05:00
parent 6e9c751f53
commit 305c7bcf34
3 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@
#include <stdint.h>
#define PROGNAME "emai//er v2.1.9"
#define PROGNAME "emai//er v2.1.10"
// Configuration params from EMAIL.CFG
char cfg_server[40]; // IP of POP3 server

View File

@ -183,6 +183,11 @@ void repair_mailbox(void) {
}
closedir(dp);
if (maxemailnum < minemailnum) {
printf("** No messages in this directory\n");
error_exit();
}
printf("** Will process EMAIL.%u to EMAIL.%u\n", minemailnum, maxemailnum);
for (emailnum = minemailnum; emailnum <= maxemailnum; ++emailnum) {
sprintf(filename, "%s/EMAIL.%u", dirname, emailnum);

BIN
releases/emailler-2.1.10.po Normal file

Binary file not shown.