From: Baptiste Daroussin Date: Tue, 18 Jul 2023 08:13:46 +0000 (+0200) Subject: mlmmj-send: remove dead code X-Git-Tag: RELEASE_1_4_0rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc633c2db01ff0ccdf9eb142306417a23be5b301;p=thirdparty%2Fmlmmj.git mlmmj-send: remove dead code --- diff --git a/src/mlmmj-send.c b/src/mlmmj-send.c index 077ae6fa..2f81590d 100644 --- a/src/mlmmj-send.c +++ b/src/mlmmj-send.c @@ -359,11 +359,8 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - /* get the list address */ - if(listctrl == '1') - errx(EXIT_FAILURE, "-l 1 is not supported anymore"); - if(listctrl == '5') - errx(EXIT_FAILURE, "-l 1 is not supported anymore"); + if (listctrl == '1' || listctrl == '5' || listctrl == '6') + errx(EXIT_FAILURE, "-l %c is not supported anymore", listctrl); if((listctrl == '2' && (ml.dir == NULL || bounceaddr == NULL))) { errx(EXIT_FAILURE, "With -l 2 you need -L and -F"); @@ -431,9 +428,6 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } break; - case '6': - errx(EXIT_FAILURE, "-l 6 option does not exist anymore"); - break; default: /* normal list mail -- now handled when forking */ mail.addtohdr = statctrl(ml.ctrlfd, "addtohdr"); break; @@ -456,11 +450,6 @@ int main(int argc, char **argv) } switch(listctrl) { - case '1': - case '5': /* bounceprobe - handle relayhost local users bouncing*/ - break; - case '6': - break; case '2': /* Moderators */ initsmtp(&sockfd, relayhost, smtpport, smtphelo); mail.from = bounceaddr;