]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
+get: add TODO
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 13 Apr 2023 07:38:21 +0000 (09:38 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 13 Apr 2023 07:38:21 +0000 (09:38 +0200)
add an information about the necessity to code the requeue of the fail
to send emails, previous code using -6 was not working either, it was
just polluting the archives and mlmmj-maintd would never have catched
up the mail to requeue

src/listcontrol.c

index 405093c3d6b184291d0a23e6a71c23d98d5376ee..aac45ae29b8f1a10a6e57a23c56b8b24baa3f276 100644 (file)
@@ -644,8 +644,10 @@ permit:
                mail.fp = fdopen(fd, "r");
                log_oper(ml->fd, OPLOGFNAME, "%s got archive/%s",
                                tll_front(*fromemails), param);
-               if (!send_single_mail(&mail, ml, false))
+               if (!send_single_mail(&mail, ml, true)) {
+                       /* TODO: save to queue */
                        return (-1);
+               }
                break;
 
        /* listname+list@domain.tld */