]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
access: granular access rejection
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 27 Aug 2024 15:13:58 +0000 (17:13 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 27 Aug 2024 15:13:58 +0000 (17:13 +0200)
if a qualifier was passed to the deny action, this qualifier is then
used as an extension when looking for the template of deny message to
send to the user.

deny-post-access-<qualifier>

Fixes: #7
src/mlmmj-process.c

index bf7e5670120b767ecdf27b1e84778367401ec0d2..4d3a3236349ea6d6fa02a97ef86a99dc4caf6e73 100644 (file)
@@ -627,7 +627,7 @@ int main(int argc, char **argv)
                                exit(EXIT_SUCCESS);
                        }
                        txt = open_text(ml.fd, "deny", "post",
-                                       "access", NULL, "access");
+                                       "access", qualifier, "access");
                        MY_ASSERT(txt);
                        register_default_unformatted(txt, &ml);
                        register_unformatted(txt, "subject", subject);