Mercurial > hg > mlmmj
changeset 294:1fef8f37fb4a
In case of malformed bounces, lets just delete them.
author | mmj |
---|---|
date | Tue, 17 Aug 2004 23:51:05 +1000 |
parents | 71ed9a557ce1 |
children | db3bd20566aa |
files | src/listcontrol.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/listcontrol.c Tue Aug 17 19:24:30 2004 +1000 +++ b/src/listcontrol.c Tue Aug 17 23:51:05 2004 +1000 @@ -210,7 +210,10 @@ case CTRL_BOUNCES: bouncenr = strrchr(param, '-'); - if (!bouncenr) exit(EXIT_SUCCESS); /* malformed bounce, ignore */ + if (!bouncenr) { /* malformed bounce, ignore and clean up */ + unlink(mailname); + exit(EXIT_SUCCESS); + } *bouncenr++ = '\0'; execlp(mlmmjbounce, mlmmjbounce, "-L", listdir,