mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-04-07 21:37:06 +00:00
Fix to REBUILD.SYSTEM to handle empty email dirs.
This commit is contained in:
parent
6e9c751f53
commit
305c7bcf34
@ -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
|
||||
|
@ -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
BIN
releases/emailler-2.1.10.po
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user