head 1.2; access; symbols pkgsrc-2025Q4:1.1.0.46 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.44 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.42 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.40 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.38 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.36 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.34 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.32 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.30 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.28 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.26 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.24 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.22 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.20 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.18 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.16 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.14 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.12 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.10 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.8 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.6 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.4 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.2 pkgsrc-2020Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2026.02.12.19.49.31; author schmonz; state dead; branches; next 1.1; commitid xQoUYzC8R0cBL7uG; 1.1 date 2020.03.31.20.37.47; author roy; state Exp; branches; next ; commitid dydN55HQor4QWA2C; desc @@ 1.2 log @mlmmj: update to 1.7.0. Changes: 1.7.0 o New 'autosubscribe' feature: on moderated mailing list autosubscribe as "nomail" when if a moderator approves a mail o New 'selfmoderate' feature: send the moderation email to the "From" address for validation o Fix 'nonomailsub' support o Plenty of memory leaks o Fix lock issue 1.6.0 o Remove blanks in customheaders prefix and skip empty lines o $bouncenumbers$ in probe are now expended to number, messageid when possible o customheaeders allow now substitution of $posteraddr$ (Erwan Mas) o Fix portability issue on Hurd (Erwan Mas) 1.5.2 o Plenty of portability fixes 1.5.1 o Fix tests on system with a running smtp server on port 25 o Fix portability issue on arm64 o Fix tests where some struct were not initialised properly 1.5.0 o Add option to copy From: to Reply-To: (Graham Leggett) o remove contrib/pymime o remove contrib/foot_filter o granular access rejection message o fix duplicated bounce recording o Remove support for all deprecated syntax in templates 1.4.7 o fix duplicate queued moderation notification email o fix build on macOS 1.4.6 o mlmmj-make-ml: fix on OpenBSD o Fix another regression regarding RFC 5321 1.4.5 o Improve error messages in case of smtp failure o Regression: fix mlmmj-send -r o Modernize autotools usage 1.4.4 o fix regression which results in probe not containing the list of bounced emails 1.4.3 o fix regression which results in loosing track of probes 1.4.2 o fix regression in lastdigest parser 1.4.1 o fix regression in incremental updates 1.4.0-rc3 o fix unattended usage of mlmmj-makeml o fix regression regarding RFC 5321 o fix subscription validation 1.4.0-rc2 o fix notifymod regression o fix VERP regression 1.4.0-rc1 o moderation cookie for subscription is now under the sub directory moderation/subscribe o mlmmj-make-ml: now supports non interactive mailing list creation o listtext: reintegrate the tree (not a submodule anymore) o lots of code deduplication 1.4.0-b1 o manpage converted from man(7) to mdoc(7) o Fix a potential crash with mail without separator between headers and body o mlmmj-send: -l 6 has been removed o mlmmj-send: accept file descriptor number as -s argument o mlmmj-send: accept file descriptor number as -m argument o cleanup .omit files leftover if moderated emails are rejected and notmetoo is set. 1.4.0-a2 o Fix a crash with forged probe emails o mlmmj-send does not need anymore absolute path o Use copy_file_range if available o Use arc4random_uniform if available o Logs are not limited anymore to 256 characters per lines 1.4.0-a1 o Add a test suite o Modernize code (dprintf, posix_spawn, asprintf, getline, daemon, ...) o Supporting passing email to a mta over ipv6 o Fix relaying in IPV6-only systems o Fix decode quoted printable subject o Fix parsing RFC1891 o Fix a crash if no owner has been defined o Validate ranges of all integers conversion o New 'send' tunable to allow email passthrough o Add support for 'X-Original-From' o Reduce subscription confirmation address length to fit RFC 5321 o Use arc4random is available o Reduce memory manipulation o When unsubscribing bouncers, keep the bounce file if something went wrong and report in syslog what went wrong o Remove the -b option from mlmmj-unsub, it is not used anymore @ text @$NetBSD: patch-reduce-subscription-confirmation-address-length.diff,v 1.1 2020/03/31 20:37:47 roy Exp $ From cb0788bc35c471a87fc75aca6d4e405fdbaccfd8 Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Thu, 25 May 2017 09:17:55 +0200 Subject: [PATCH] Reduce subscription confirmation address length to fit RFC 5321 The local part of mailing list subscription confirmation addresses formed of: mailing-list-name "+confsub-" 16-random-hex "-" sender-address can get very long, especially if sender-address is long. However, RFC limits it at 64 characters. Closes http://mlmmj.org/bugs/bug.php?id=63 Reported-by: mgorny@@gentoo.org --- src/mlmmj-sub.c | 2 +- src/mlmmj-unsub.c | 2 +- src/strgen.c | 23 +---------------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/src/mlmmj-sub.c b/src/mlmmj-sub.c index 3335817..5c8c1ae 100644 --- src/mlmmj-sub.c +++ src/mlmmj-sub.c @@@@ -413,7 +413,7 @@@@ void generate_subconfirm(const char *listdir, const char *listaddr, do { myfree(confirmfilename); myfree(randomstr); - randomstr = random_plus_addr(subaddr); + randomstr = random_str(); confirmfilename = concatstr(3, listdir, "/subconf/", randomstr); diff --git a/src/mlmmj-unsub.c b/src/mlmmj-unsub.c index 0fa42a1..8e13f3c 100644 --- src/mlmmj-unsub.c +++ src/mlmmj-unsub.c @@@@ -171,7 +171,7 @@@@ void generate_unsubconfirm(const char *listdir, const char *listaddr, do { myfree(confirmfilename); myfree(randomstr); - randomstr = random_plus_addr(subaddr); + randomstr = random_str(); confirmfilename = concatstr(3, listdir, "/unsubconf/", randomstr); diff --git a/src/strgen.c b/src/strgen.c index f13db47..673f44a 100644 --- src/strgen.c +++ src/strgen.c @@@@ -40,31 +40,10 @@@@ char *random_str() { - size_t len = 17; + size_t len = 17; /* sixteen hex digits plus terminating zero */ char *dest = mymalloc(len); snprintf(dest, len, "%08x%08x", random_int(), random_int()); - - return dest; -} - -char *random_plus_addr(const char *addr) -{ - size_t len = strlen(addr) + 128; - char *dest = mymalloc(len); - char *atsign; - char *tmpstr; - - tmpstr = mymalloc(len); - snprintf(tmpstr, len, "%s", addr); - - atsign = strchr(tmpstr, '@@'); - MY_ASSERT(atsign); - *atsign = '='; - - snprintf(dest, len, "%08x%08x-%s", random_int(), random_int(), tmpstr); - - myfree(tmpstr); return dest; } @ 1.1 log @Import mlmmj-1.3.0 from wip @ text @d1 1 a1 1 $NetBSD$ @