Before, rea() deleted the mailbox regardless of errors. Acceptable
only when the user gets a chance to avoid that after the problem is
reported. Not the case for "read y".
Not an issue for announcements, but treat them the same for
simplicity.
time_t now;
time_t then;
time_t delta;
- int may_delete = 1; /* may messages be deleted? */
+ int may_delete = 1;
now = time(NULL);
if (res < 0)
break;
}
- if (res < 0)
+ if (res < 0) {
pr("\n> Mailbox corrupt, tell the deity.\n");
+ may_delete = 0;
+ }
if (*kind == 'a')
np->nat_ann = 0;