]> git.ipfire.org Git - thirdparty/mlmmj.git/log
thirdparty/mlmmj.git
3 years agomlmmj-maintd: add test with relative path as argument
Baptiste Daroussin [Wed, 26 Oct 2022 09:38:25 +0000 (11:38 +0200)] 
mlmmj-maintd: add test with relative path as argument

3 years agomlmmj-maintd: big refactoring to avoid the chdir() dansing
Baptiste Daroussin [Wed, 26 Oct 2022 09:33:00 +0000 (11:33 +0200)] 
mlmmj-maintd: big refactoring to avoid the chdir() dansing

Always use at function to manipulate files relatively to a file
descriptor, this avoid walking through the trees and also reduces
a lot memory manipulation and allocations

As a result mlmmj-maintd can now safely accept relative path in inputs

3 years agoremove dead code
Baptiste Daroussin [Tue, 25 Oct 2022 15:28:12 +0000 (17:28 +0200)] 
remove dead code

3 years agotests add simple functional tests about discarding invalid mails
Baptiste Daroussin [Tue, 25 Oct 2022 15:22:50 +0000 (17:22 +0200)] 
tests add simple functional tests about discarding invalid mails

3 years agomlmmj-receive-strip: fix build
Baptiste Daroussin [Tue, 25 Oct 2022 14:36:21 +0000 (16:36 +0200)] 
mlmmj-receive-strip: fix build

3 years agoComplete changelog
Baptiste Daroussin [Mon, 24 Oct 2022 16:10:28 +0000 (18:10 +0200)] 
Complete changelog

3 years agoFix decode quoted printable by using a full decoder
Baptiste Daroussin [Mon, 24 Oct 2022 16:03:20 +0000 (18:03 +0200)] 
Fix decode quoted printable by using a full decoder

3 years agomygetcontent: remove now unused function
Baptiste Daroussin [Mon, 24 Oct 2022 15:50:38 +0000 (17:50 +0200)] 
mygetcontent: remove now unused function

3 years agoRemove leftovers from memory.h removal
Baptiste Daroussin [Mon, 24 Oct 2022 15:46:42 +0000 (17:46 +0200)] 
Remove leftovers from memory.h removal

3 years agoctrlval: use getline/getdelim
Baptiste Daroussin [Mon, 24 Oct 2022 15:46:18 +0000 (17:46 +0200)] 
ctrlval: use getline/getdelim

3 years agocontrols: fix fallback value assignation
Baptiste Daroussin [Mon, 24 Oct 2022 15:32:28 +0000 (17:32 +0200)] 
controls: fix fallback value assignation

when failing to convert the string to an expected type, respect
the fallback value

3 years agoutils: add function to convert a control file to time_t
Baptiste Daroussin [Mon, 24 Oct 2022 15:30:23 +0000 (17:30 +0200)] 
utils: add function to convert a control file to time_t

3 years agomail-functions: factorize the code.
Baptiste Daroussin [Mon, 24 Oct 2022 15:16:12 +0000 (17:16 +0200)] 
mail-functions: factorize the code.

Stop returning errcode based en errno which might bring portability
issues

Add a full testsuite

3 years agotest: add test for strtoim functions
Baptiste Daroussin [Mon, 24 Oct 2022 13:35:07 +0000 (15:35 +0200)] 
test: add test for strtoim functions

3 years agotest: add a test for find_email_adr
Baptiste Daroussin [Mon, 24 Oct 2022 13:24:26 +0000 (15:24 +0200)] 
test: add a test for find_email_adr

3 years agosimplify code using isspace()
Baptiste Daroussin [Mon, 24 Oct 2022 12:56:17 +0000 (14:56 +0200)] 
simplify code using isspace()

3 years agoReplace malloc+strcpy with strdup()
Baptiste Daroussin [Mon, 24 Oct 2022 12:53:18 +0000 (14:53 +0200)] 
Replace malloc+strcpy with strdup()

3 years agomlmmjsend: reduce memory allocation when dealing with index
Baptiste Daroussin [Mon, 24 Oct 2022 12:50:53 +0000 (14:50 +0200)] 
mlmmjsend: reduce memory allocation when dealing with index

3 years agocleanup: eliminate write only variable
Baptiste Daroussin [Mon, 24 Oct 2022 12:41:09 +0000 (14:41 +0200)] 
cleanup: eliminate write only variable

3 years agocleanup: generalize usage of exec_or_die/exec_and_wait
Baptiste Daroussin [Mon, 24 Oct 2022 12:35:34 +0000 (14:35 +0200)] 
cleanup: generalize usage of exec_or_die/exec_and_wait

3 years agoutils: add 2 wrappers around posix_spawn
Baptiste Daroussin [Mon, 24 Oct 2022 11:36:14 +0000 (13:36 +0200)] 
utils: add 2 wrappers around posix_spawn

the goal here it to avoid code duplication around fork and execvp

3 years agomlmmj-send: validate values loaded from config files
Baptiste Daroussin [Mon, 24 Oct 2022 10:04:05 +0000 (12:04 +0200)] 
mlmmj-send: validate values loaded from config files

3 years agoctrlushort: add a helper to convert string to unsigned short
Baptiste Daroussin [Mon, 24 Oct 2022 10:03:35 +0000 (12:03 +0200)] 
ctrlushort: add a helper to convert string to unsigned short

3 years agoincindexfile: refactor using modern C code and better validate inputs
Baptiste Daroussin [Mon, 24 Oct 2022 09:15:33 +0000 (11:15 +0200)] 
incindexfile: refactor using modern C code and better validate inputs

3 years agoutils: add functions to convert integers
Baptiste Daroussin [Mon, 24 Oct 2022 09:10:15 +0000 (11:10 +0200)] 
utils: add functions to convert integers

This functions is modeled over BSD's strtonum except it is using
intmax_t or intumax_t types

while here add helpers to simplify usage

3 years agolistcontrol: fix crash when no owner is defined
Baptiste Daroussin [Mon, 24 Oct 2022 08:51:01 +0000 (10:51 +0200)] 
listcontrol: fix crash when no owner is defined

3 years agobouncemail: ensure all inputs are checked entirely
Baptiste Daroussin [Mon, 24 Oct 2022 08:48:42 +0000 (10:48 +0200)] 
bouncemail: ensure all inputs are checked entirely

use strndup instead of malloc + strncpy

3 years agomlmmj-send: convert listctrl to a simple char
Baptiste Daroussin [Mon, 24 Oct 2022 08:39:11 +0000 (10:39 +0200)] 
mlmmj-send: convert listctrl to a simple char

3 years agomlmmj-send: validate argument for -l option
Baptiste Daroussin [Mon, 24 Oct 2022 08:19:03 +0000 (10:19 +0200)] 
mlmmj-send: validate argument for -l option

validate the argument for -l option, while here turn the "archive"
into a boolean

3 years agodsnparse: fix parsing of RFC1891
Baptiste Daroussin [Wed, 17 Aug 2022 16:17:19 +0000 (18:17 +0200)] 
dsnparse: fix parsing of RFC1891

3 years agomodern C: replace malloc + snprintf with asprintf
Baptiste Daroussin [Thu, 20 Oct 2022 14:57:35 +0000 (16:57 +0200)] 
modern C: replace malloc + snprintf with asprintf

3 years agomodern C: use O_EXLOCK instead of homemade locking
Baptiste Daroussin [Thu, 20 Oct 2022 14:41:19 +0000 (16:41 +0200)] 
modern C: use O_EXLOCK instead of homemade locking

3 years agoutils: factorize lowercase code
Baptiste Daroussin [Thu, 28 Apr 2022 09:26:34 +0000 (11:26 +0200)] 
utils: factorize lowercase code

3 years agogenmsgid: add unit test
Baptiste Daroussin [Thu, 20 Oct 2022 13:59:01 +0000 (15:59 +0200)] 
genmsgid: add unit test

3 years agomydirname: rework and reduce the number of memory allocation
Baptiste Daroussin [Thu, 28 Apr 2022 08:37:33 +0000 (10:37 +0200)] 
mydirname: rework and reduce the number of memory allocation

3 years agomybasename: simplify code and avoid allocating memory at all
Baptiste Daroussin [Thu, 28 Apr 2022 08:23:22 +0000 (10:23 +0200)] 
mybasename: simplify code and avoid allocating memory at all

3 years agoAdd a basic test suite
Baptiste Daroussin [Thu, 20 Oct 2022 12:41:08 +0000 (14:41 +0200)] 
Add a basic test suite

3 years agogenmsgid: simplify code by using asprintf
Baptiste Daroussin [Thu, 28 Apr 2022 08:20:05 +0000 (10:20 +0200)] 
genmsgid: simplify code by using asprintf

3 years agorandom: use arc4random where available
Baptiste Daroussin [Wed, 4 May 2022 14:05:28 +0000 (16:05 +0200)] 
random: use arc4random where available

3 years agomodern C: replace malloc+snprintf with asprintf
Baptiste Daroussin [Thu, 20 Oct 2022 11:25:47 +0000 (13:25 +0200)] 
modern C: replace malloc+snprintf with asprintf

3 years agocleanup: remove write only variable
Baptiste Daroussin [Wed, 20 Apr 2022 13:51:25 +0000 (15:51 +0200)] 
cleanup: remove write only variable

3 years agomemory: replace memory management with static inline functions
Baptiste Daroussin [Wed, 20 Apr 2022 13:49:53 +0000 (15:49 +0200)] 
memory: replace memory management with static inline functions

Those functions will abort the program in case if error in memory
allocations

3 years agomodern C: use O_SYNC on open instead of calling fsync after each writes
Baptiste Daroussin [Wed, 20 Apr 2022 10:20:08 +0000 (12:20 +0200)] 
modern C: use O_SYNC on open instead of calling fsync after each writes

3 years agomodern C: replace writen with dprintf
Baptiste Daroussin [Wed, 20 Apr 2022 10:18:32 +0000 (12:18 +0200)] 
modern C: replace writen with dprintf

3 years agomodern C: use err(3)
Baptiste Daroussin [Wed, 20 Apr 2022 09:55:38 +0000 (11:55 +0200)] 
modern C: use err(3)

3 years agomodern C: use strftime enforcing C locale instead of reinventing it
Baptiste Daroussin [Wed, 20 Apr 2022 09:33:38 +0000 (11:33 +0200)] 
modern C: use strftime enforcing C locale instead of reinventing it

3 years agomodern C: use daemon(3) and closefrom(2)
Baptiste Daroussin [Wed, 20 Apr 2022 09:25:31 +0000 (11:25 +0200)] 
modern C: use daemon(3) and closefrom(2)

3 years agocleanup: remove itoa and replace it with a a call to snprintf
Baptiste Daroussin [Wed, 20 Apr 2022 09:17:29 +0000 (11:17 +0200)] 
cleanup: remove itoa and replace it with a a call to snprintf

3 years agostatctrl: simplify the code to use access instead of stat
Baptiste Daroussin [Wed, 27 Oct 2021 14:54:19 +0000 (16:54 +0200)] 
statctrl: simplify the code to use access instead of stat

3 years agomodern C: use dprintf(3) when possible
Baptiste Daroussin [Wed, 20 Apr 2022 08:49:38 +0000 (10:49 +0200)] 
modern C: use dprintf(3) when possible

3 years agomodern C: use O_APPEND instead of open+lseek
Baptiste Daroussin [Thu, 20 Oct 2022 11:14:45 +0000 (13:14 +0200)] 
modern C: use O_APPEND instead of open+lseek

3 years agoReduce subscription confirmation address length to fit RFC 5321
Geert Stappers [Thu, 25 May 2017 07:17:55 +0000 (09:17 +0200)] 
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
3 years agoAdd support from X-Original-From
Baptiste Daroussin [Thu, 20 Oct 2022 11:07:09 +0000 (13:07 +0200)] 
Add support from X-Original-From

3 years agoAdd support for ipv6 and ipv6 only environment.
Baptiste Daroussin [Thu, 20 Oct 2022 11:05:53 +0000 (13:05 +0200)] 
Add support for ipv6 and ipv6 only environment.

3 years agoAdd a "send" tunable
Baptiste Daroussin [Thu, 20 Oct 2022 11:03:18 +0000 (13:03 +0200)] 
Add a "send" tunable

The "send" tunable corresponding to a list for emails from which
mails will sent unconditionally. It will not be moderated, nor subject
to subonlypost, nor modnonsubposts.

3 years agonobounceprove: disable bounce probe for debug purpose
Baptiste Daroussin [Thu, 20 Oct 2022 10:57:36 +0000 (12:57 +0200)] 
nobounceprove: disable bounce probe for debug purpose

3 years agoFix build with modern compilers
Baptiste Daroussin [Thu, 20 Oct 2022 10:53:45 +0000 (12:53 +0200)] 
Fix build with modern compilers

9 years agoAdded tag RELEASE_1_3_0 for changeset 570dd6d4942b
Ben Schmidt [Wed, 24 May 2017 23:08:47 +0000 (09:08 +1000)] 
Added tag RELEASE_1_3_0 for changeset 570dd6d4942b

9 years agoMlmmj 1.3.0. RELEASE_1_3_0
Ben Schmidt [Wed, 24 May 2017 21:32:05 +0000 (07:32 +1000)] 
Mlmmj 1.3.0.

9 years agoImprove compatibility with recent versions of Automake.
Ben Schmidt [Wed, 24 May 2017 22:50:33 +0000 (08:50 +1000)] 
Improve compatibility with recent versions of Automake.

9 years agoUpdate list texts.
Ben Schmidt [Sun, 2 Oct 2016 13:43:52 +0000 (00:43 +1100)] 
Update list texts.

9 years agoAdd Czech translation (Jiří Šolc)
Ben Schmidt [Sun, 2 Oct 2016 13:11:03 +0000 (00:11 +1100)] 
Add Czech translation (Jiří Šolc)

9 years agoDocument list text search paths.
Ben Schmidt [Sun, 2 Oct 2016 12:56:14 +0000 (23:56 +1100)] 
Document list text search paths.

10 years agoFix typo in README.
Ben Schmidt [Wed, 25 May 2016 06:03:09 +0000 (16:03 +1000)] 
Fix typo in README.

10 years agoAdded tag RELEASE_1_3_0a1 for changeset 31c88127180c
Ben Schmidt [Sun, 22 May 2016 23:15:26 +0000 (09:15 +1000)] 
Added tag RELEASE_1_3_0a1 for changeset 31c88127180c

10 years agoMlmmj 1.3.0a1. RELEASE_1_3_0a1
Ben Schmidt [Sun, 22 May 2016 23:13:07 +0000 (09:13 +1000)] 
Mlmmj 1.3.0a1.

10 years agoDon't use address extensions from non-list addresses.
Ben Schmidt [Sun, 22 May 2016 13:45:14 +0000 (23:45 +1000)] 
Don't use address extensions from non-list addresses.

10 years agoAdd modonlypost reason to deny-post in English.
Ben Schmidt [Sun, 22 May 2016 13:10:38 +0000 (23:10 +1000)] 
Add modonlypost reason to deny-post in English.

10 years agoFix some RFC 5321 compliance issues (Martijn Grendelman).
Ben Schmidt [Tue, 10 May 2016 03:58:04 +0000 (13:58 +1000)] 
Fix some RFC 5321 compliance issues (Martijn Grendelman).

10 years agoAdd smtphelo tunable (Andreas Schulze).
Ben Schmidt [Tue, 10 May 2016 03:33:29 +0000 (13:33 +1000)] 
Add smtphelo tunable (Andreas Schulze).

10 years agoImprove commandline help for mlmmj-bounce.
Ben Schmidt [Thu, 5 May 2016 00:20:14 +0000 (10:20 +1000)] 
Improve commandline help for mlmmj-bounce.

10 years agoImplement modonlypost.
Ben Schmidt [Sun, 22 May 2016 13:16:12 +0000 (23:16 +1000)] 
Implement modonlypost.

11 years agoAdd heading to ChangeLog.
Ben Schmidt [Mon, 25 May 2015 22:23:11 +0000 (08:23 +1000)] 
Add heading to ChangeLog.

11 years agoAdded tag RELEASE_1_2_19_0 for changeset b202ed626645 BRANCH_1_2_19
Ben Schmidt [Mon, 25 May 2015 21:34:51 +0000 (07:34 +1000)] 
Added tag RELEASE_1_2_19_0 for changeset b202ed626645

11 years agoMlmmj 1.2.19.0. RELEASE_1_2_19_0
Ben Schmidt [Mon, 25 May 2015 21:33:09 +0000 (07:33 +1000)] 
Mlmmj 1.2.19.0.

11 years agoFix const qualifier to silence a compiler warning.
Ben Schmidt [Fri, 15 May 2015 06:35:20 +0000 (16:35 +1000)] 
Fix const qualifier to silence a compiler warning.

11 years agoAdded tag RELEASE_1_2_19b1 for changeset 3f4aee02898b
Ben Schmidt [Thu, 23 Apr 2015 09:12:25 +0000 (19:12 +1000)] 
Added tag RELEASE_1_2_19b1 for changeset 3f4aee02898b

11 years agoMlmmj 1.2.19b1. RELEASE_1_2_19b1
Ben Schmidt [Wed, 25 Feb 2015 20:58:18 +0000 (07:58 +1100)] 
Mlmmj 1.2.19b1.

11 years agoAdd README.footers and footer-related resources.
Ben Schmidt [Wed, 25 Feb 2015 20:29:01 +0000 (07:29 +1100)] 
Add README.footers and footer-related resources.

--HG--
extra : amend_source : 5176f923c05681ad5b64caea4dd8eb21cdb058af
extra : histedit_source : 563dd72b622372a0628e25692e1f3b9dd39e34af

11 years agoSupport ESMTP so OpenSMTPD uses 8 bits (Paul Fariello).
Ben Schmidt [Wed, 25 Feb 2015 07:22:37 +0000 (18:22 +1100)] 
Support ESMTP so OpenSMTPD uses 8 bits (Paul Fariello).

--HG--
extra : histedit_source : 8cbbdb1e9294b967618df89f7396ef370c3dea87

12 years agoTrim whitespace around subject headers.
Ben Schmidt [Mon, 24 Mar 2014 00:57:08 +0000 (11:57 +1100)] 
Trim whitespace around subject headers.

12 years agoIgnore whitespace between encoded words in headers, and don't collapse included white...
Ben Schmidt [Fri, 7 Mar 2014 22:35:40 +0000 (09:35 +1100)] 
Ignore whitespace between encoded words in headers, and don't collapse included whitespace.

12 years agoUse iconv to convert unknown character sets.
Ben Schmidt [Tue, 11 Feb 2014 22:19:03 +0000 (09:19 +1100)] 
Use iconv to convert unknown character sets.

--HG--
extra : rebase_source : e2be5470dac9823c5d475506c5b9f0c34323e0d8

12 years agoUpdate ChangeLog.
Ben Schmidt [Mon, 10 Feb 2014 03:42:32 +0000 (14:42 +1100)] 
Update ChangeLog.

--HG--
extra : rebase_source : d0cc2b3a222b465adee36efab8cd008a4258763a

12 years agoSilence compiler warnings (Andreas Schulze).
Ben Schmidt [Mon, 10 Feb 2014 03:31:18 +0000 (14:31 +1100)] 
Silence compiler warnings (Andreas Schulze).

--HG--
extra : rebase_source : 70cda8d2c42bbed1e89d347290b4fb9eb13aa2f9

12 years agoInclude header file previously omitted (Andreas Schulze).
Ben Schmidt [Mon, 10 Feb 2014 03:31:06 +0000 (14:31 +1100)] 
Include header file previously omitted (Andreas Schulze).

--HG--
extra : rebase_source : 02ea431b3746fe01abbb0a6599ba454f1ff13bba

12 years agoHandle unfolded header lines better.
Ben Schmidt [Sun, 2 Feb 2014 13:08:55 +0000 (00:08 +1100)] 
Handle unfolded header lines better.

--HG--
extra : rebase_source : dc2fc081a837b35f6058d4bc3665f642595a115d

12 years agoUse more standard C.
Ben Schmidt [Wed, 12 Feb 2014 22:15:28 +0000 (09:15 +1100)] 
Use more standard C.

12 years agoAdd a tunable for moderation request lifetime.
Ben Schmidt [Mon, 3 Feb 2014 22:06:05 +0000 (09:06 +1100)] 
Add a tunable for moderation request lifetime.

--HG--
extra : rebase_source : f31a9d0c0c9875f7fc860fd654c9a4520343c9ee

12 years agoEnsure mlmmj-send always honours tunables (e.g. relayhost) by always giving the
Ben Schmidt [Fri, 10 Jan 2014 11:25:49 +0000 (22:25 +1100)] 
Ensure mlmmj-send always honours tunables (e.g. relayhost) by always giving the
listdir on the commandline.

--HG--
extra : rebase_source : 622b6afc364c4d8d2de42161fb5a9c3c2323e3d1

12 years agoFix reason in denial messages for mails without the list in To: or CC:.
Ben Schmidt [Thu, 3 Oct 2013 21:16:36 +0000 (07:16 +1000)] 
Fix reason in denial messages for mails without the list in To: or CC:.

--HG--
extra : rebase_source : 6eb70c1fa7711e89381ee8dfd2742cd45548a205

12 years agoUpdate ChangeLog.
Ben Schmidt [Wed, 5 Feb 2014 06:09:27 +0000 (17:09 +1100)] 
Update ChangeLog.

12 years agoAvoid deleting mail currently being sent.
Ben Schmidt [Sun, 2 Feb 2014 23:02:12 +0000 (10:02 +1100)] 
Avoid deleting mail currently being sent.

12 years agoFix initialisation problems so +list works.
Ben Schmidt [Thu, 27 Jun 2013 22:04:08 +0000 (08:04 +1000)] 
Fix initialisation problems so +list works.

13 years agoFix double-subscription bug.
Ben Schmidt [Wed, 8 May 2013 09:56:18 +0000 (19:56 +1000)] 
Fix double-subscription bug.

14 years agoTidy documentation a little.
Ben Schmidt [Tue, 29 May 2012 14:19:08 +0000 (00:19 +1000)] 
Tidy documentation a little.

14 years agoAdded tag RELEASE_1_2_18_0 for changeset 0f90ad70a59f
Ben Schmidt [Tue, 29 May 2012 13:46:19 +0000 (23:46 +1000)] 
Added tag RELEASE_1_2_18_0 for changeset 0f90ad70a59f

14 years agomlmmj-1.2.18.0 RELEASE_1_2_18_0
Ben Schmidt [Tue, 29 May 2012 13:45:59 +0000 (23:45 +1000)] 
mlmmj-1.2.18.0

14 years agoAdded tag RELEASE_1_2_18rc1 for changeset 4c3c8b184576
Ben Schmidt [Thu, 3 May 2012 00:14:56 +0000 (10:14 +1000)] 
Added tag RELEASE_1_2_18rc1 for changeset 4c3c8b184576

14 years agoTidy up ChangeLog and AUTHORS. Release candidate 1.2.18rc1. RELEASE_1_2_18rc1
Ben Schmidt [Thu, 3 May 2012 00:12:15 +0000 (10:12 +1000)] 
Tidy up ChangeLog and AUTHORS. Release candidate 1.2.18rc1.