]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-send: remove -l 6 option which is not used anymore
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 13 Apr 2023 07:12:42 +0000 (09:12 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 13 Apr 2023 07:13:47 +0000 (09:13 +0200)
src/mlmmj-send.c

index 24f397baa3db89307b79d7e97d73ef6a3b8b3579..4099dbbd5f8fdf67a632530f97354a602d114dc1 100644 (file)
@@ -435,10 +435,7 @@ int main(int argc, char **argv)
                }
                break;
        case '6':
-               deletewhensent = 0;
-               archivefilename = xstrdup(mailfilename);
-               bounceaddr = bounce_from_adr(mail.to, ml.addr, ml.delim,
-                                               archivefilename, ml.ctrlfd);
+               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");
@@ -466,17 +463,6 @@ int main(int argc, char **argv)
        case '5': /* bounceprobe - handle relayhost local users bouncing*/
                break;
        case '6':
-               initsmtp(&sockfd, relayhost, smtpport, smtphelo);
-               mail.from = bounceaddr;
-               if(send_mail(sockfd, &mail, ml.fd, ml.ctrlfd, false)) {
-                       close(sockfd);
-                       sockfd = -1;
-                       /* error, so keep it in the queue */
-                       deletewhensent = 0;
-                       save_queue(mailfilename, &mail);
-               } else {
-                       endsmtp(&sockfd);
-               }
                break;
        case '2': /* Moderators */
                initsmtp(&sockfd, relayhost, smtpport, smtphelo);