mail/mlmmj: add a patch to disable bounce probe

This commit is contained in:
Baptiste Daroussin 2021-05-24 11:19:21 +02:00
parent 5b8888a876
commit d7f10130e0
2 changed files with 16 additions and 1 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= mlmmj
PORTVERSION= 1.3.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://mlmmj.org/releases/

View file

@ -0,0 +1,15 @@
diff --git src/mlmmj-maintd.c src/mlmmj-maintd.c
index 02cfd16..5ac35da 100644
--- src/mlmmj-maintd.c
+++ src/mlmmj-maintd.c
@@ -601,6 +601,10 @@ int probe_bouncers(const char *listdir, const char *mlmmjbounce)
pid_t pid, childpid;
int status;
+ if (statctrl(listdir, "nobounceprobe")) {
+ return 0;
+ }
+
if(chdir(dirname) < 0) {
log_error(LOG_ARGS, "Could not chdir(%s)", dirname);
myfree(dirname);