From d7f10130e0f3e48c29d71f14d963076bdd5bf979 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 24 May 2021 11:19:21 +0200 Subject: [PATCH] mail/mlmmj: add a patch to disable bounce probe --- mail/mlmmj/Makefile | 2 +- mail/mlmmj/files/patch-nobounceprobe | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 mail/mlmmj/files/patch-nobounceprobe diff --git a/mail/mlmmj/Makefile b/mail/mlmmj/Makefile index 68246d50377c..56d557d7f4b1 100644 --- a/mail/mlmmj/Makefile +++ b/mail/mlmmj/Makefile @@ -2,7 +2,7 @@ PORTNAME= mlmmj PORTVERSION= 1.3.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://mlmmj.org/releases/ diff --git a/mail/mlmmj/files/patch-nobounceprobe b/mail/mlmmj/files/patch-nobounceprobe new file mode 100644 index 000000000000..d0548d25f8d9 --- /dev/null +++ b/mail/mlmmj/files/patch-nobounceprobe @@ -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);