]> git.ipfire.org Git - thirdparty/mlmmj.git/log
thirdparty/mlmmj.git
4 years agomlmmj-*sub: eliminate most concatstr in favor of standard C function
Baptiste Daroussin [Thu, 28 Oct 2021 12:25:53 +0000 (14:25 +0200)] 
mlmmj-*sub: eliminate most concatstr in favor of standard C function

4 years agomyasprintf: mark as printf like for compilation checks
Baptiste Daroussin [Thu, 28 Oct 2021 12:00:34 +0000 (14:00 +0200)] 
myasprintf: mark as printf like for compilation checks

4 years agomlmmj-unsub: convert to use filedescriptors
Baptiste Daroussin [Thu, 28 Oct 2021 11:53:27 +0000 (13:53 +0200)] 
mlmmj-unsub: convert to use filedescriptors

While here, use O_EXLOCK to obtain the lock

4 years agomlmmj-sub: share code between sub and unsub
Baptiste Daroussin [Thu, 28 Oct 2021 09:57:19 +0000 (11:57 +0200)] 
mlmmj-sub: share code between sub and unsub

4 years agosubscribers: add a function to factorize code between sub and unsub
Baptiste Daroussin [Thu, 28 Oct 2021 09:56:59 +0000 (11:56 +0200)] 
subscribers: add a function to factorize code between sub and unsub

4 years agomlmmj-sub: use modern C
Baptiste Daroussin [Thu, 28 Oct 2021 09:35:43 +0000 (11:35 +0200)] 
mlmmj-sub: use modern C

Use O_APPEND instead of lseek,
Use dprintf instead of writen

4 years agomlmmj-sub: add testcase about appending a new subscriber
Baptiste Daroussin [Thu, 28 Oct 2021 09:25:46 +0000 (11:25 +0200)] 
mlmmj-sub: add testcase about appending a new subscriber

4 years agomlmmj-sub: convert subscription to file descriptor
Baptiste Daroussin [Thu, 28 Oct 2021 09:16:12 +0000 (11:16 +0200)] 
mlmmj-sub: convert subscription to file descriptor

While use O_EXCL for locking directly at open() time

4 years agostrgen: split a mail address in one single function
Baptiste Daroussin [Thu, 28 Oct 2021 08:44:25 +0000 (10:44 +0200)] 
strgen: split a mail address in one single function

Up to now the split of an email address into the fqdn and the local part
was done in 2 functions both allocatign memory, with this change, now
the memory is allocated only once and the fqdn is just a pointer on the
begining of the allocated memory part corresponding to it

4 years agomemory: add strndup and asprintf wrappers
Baptiste Daroussin [Thu, 28 Oct 2021 08:28:24 +0000 (10:28 +0200)] 
memory: add strndup and asprintf wrappers

4 years agostatctrl: use file descriptors instead of manipulating memory
Baptiste Daroussin [Thu, 28 Oct 2021 08:16:54 +0000 (10:16 +0200)] 
statctrl: use file descriptors instead of manipulating memory

4 years agoprepstdreply: finish conversion to mlmmj_list
Baptiste Daroussin [Thu, 28 Oct 2021 08:12:08 +0000 (10:12 +0200)] 
prepstdreply: finish conversion to mlmmj_list

4 years agomlmmj_list: prepare file descriptors
Baptiste Daroussin [Thu, 28 Oct 2021 07:49:24 +0000 (09:49 +0200)] 
mlmmj_list: prepare file descriptors

When opening the mailing list, open the directory and keep the file
descriptor open up to the closing.

While here add a controlfd member to make keep a file descriptor on the
control directory on demand if needed

4 years agomlmmj_list: shorter the members of the struct to be more meaning full
Baptiste Daroussin [Thu, 28 Oct 2021 07:22:28 +0000 (09:22 +0200)] 
mlmmj_list: shorter the members of the struct to be more meaning full

4 years agocleanup: remove unused headers
Baptiste Daroussin [Wed, 27 Oct 2021 16:18:25 +0000 (18:18 +0200)] 
cleanup: remove unused headers

4 years agoprepstdreply: convert to struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 16:02:20 +0000 (18:02 +0200)] 
prepstdreply: convert to struct mlmmj_list

4 years agomlmmj-send: convert to struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 15:53:43 +0000 (17:53 +0200)] 
mlmmj-send: convert to struct mlmmj_list

4 years agosend_digests: convert to struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 15:30:54 +0000 (17:30 +0200)] 
send_digests: convert to struct mlmmj_list

4 years agosend_help: convert to use struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 15:12:14 +0000 (17:12 +0200)] 
send_help: convert to use struct mlmmj_list

4 years agosend_list: convert to use struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 15:09:13 +0000 (17:09 +0200)] 
send_list: convert to use struct mlmmj_list

4 years agomlmmj-process: use a bit more the struct mlmmj_list
Baptiste Daroussin [Wed, 27 Oct 2021 15:03:09 +0000 (17:03 +0200)] 
mlmmj-process: use a bit more the struct mlmmj_list

4 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

4 years agomlmmj-sub: mark as static functions that needs to be marked as such
Baptiste Daroussin [Wed, 27 Oct 2021 12:37:06 +0000 (14:37 +0200)] 
mlmmj-sub: mark as static functions that needs to be marked as such

4 years agogeneral: add a mlmmj_list structure
Baptiste Daroussin [Wed, 27 Oct 2021 12:32:46 +0000 (14:32 +0200)] 
general: add a mlmmj_list structure

this structure will avoid duplication of code in many places and also
prepare the land to the usage of file descriptors where possible

4 years agotest: more tests for mlmmj-sub
Baptiste Daroussin [Wed, 27 Oct 2021 11:38:17 +0000 (13:38 +0200)] 
test: more tests for mlmmj-sub

4 years agotests: add basic tests for mlmmj-sub
Baptiste Daroussin [Wed, 27 Oct 2021 08:36:49 +0000 (10:36 +0200)] 
tests: add basic tests for mlmmj-sub

4 years agomlmmj-send: add basic test
Baptiste Daroussin [Tue, 26 Oct 2021 14:06:46 +0000 (16:06 +0200)] 
mlmmj-send: add basic test

4 years agomlmmj-list: remove unused variables
Baptiste Daroussin [Thu, 21 Oct 2021 14:51:57 +0000 (16:51 +0200)] 
mlmmj-list: remove unused variables

4 years agomlmmj-list: use err(3) when possible
Baptiste Daroussin [Thu, 21 Oct 2021 14:04:29 +0000 (16:04 +0200)] 
mlmmj-list: use err(3) when possible

4 years agomlmmj-list: use filedescriptor instead of string manipulation
Baptiste Daroussin [Thu, 21 Oct 2021 13:57:50 +0000 (15:57 +0200)] 
mlmmj-list: use filedescriptor instead of string manipulation

4 years agomlmmj-list: use printf when it make sense
Baptiste Daroussin [Thu, 21 Oct 2021 13:46:08 +0000 (15:46 +0200)] 
mlmmj-list: use printf when it make sense

4 years agomlmmj-process: factorize code for sending deny email
Baptiste Daroussin [Thu, 21 Oct 2021 12:52:11 +0000 (14:52 +0200)] 
mlmmj-process: factorize code for sending deny email

4 years agoMark some variables as extern
Baptiste Daroussin [Thu, 21 Oct 2021 12:52:56 +0000 (14:52 +0200)] 
Mark some variables as extern

8 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

8 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.

8 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 agoDocument list text search paths.
Ben Schmidt [Sun, 2 Oct 2016 12:56:14 +0000 (23:56 +1100)] 
Document list text search paths.

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

9 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

9 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.

9 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.

9 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).

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

9 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.

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

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

10 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

10 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.

10 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.

10 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

10 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.

10 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

10 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

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

11 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.

11 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

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

--HG--
extra : rebase_source : d0cc2b3a222b465adee36efab8cd008a4258763a

11 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

11 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

11 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

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

11 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

11 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

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

11 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.

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

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

13 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

13 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

13 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

13 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.

13 years agoUpdated list texts.
Ben Schmidt [Thu, 26 Apr 2012 04:56:03 +0000 (14:56 +1000)] 
Updated list texts.

13 years agoFix and improve how tokens are recognised for conditionals etc..
Ben Schmidt [Fri, 20 Apr 2012 00:41:58 +0000 (10:41 +1000)] 
Fix and improve how tokens are recognised for conditionals etc..

13 years agoAdd comment to clarify purpose and interface of handle_conditional().
Ben Schmidt [Fri, 20 Apr 2012 00:35:27 +0000 (10:35 +1000)] 
Add comment to clarify purpose and interface of handle_conditional().

13 years agoUse dynamic allocation instead of static variables.
Ben Schmidt [Fri, 30 Mar 2012 23:45:32 +0000 (10:45 +1100)] 
Use dynamic allocation instead of static variables.

13 years agoMove comment for slightly better coding style.
Ben Schmidt [Fri, 30 Mar 2012 23:42:46 +0000 (10:42 +1100)] 
Move comment for slightly better coding style.

13 years agoSlight improvement to list text documentation.
Ben Schmidt [Tue, 27 Mar 2012 02:12:58 +0000 (13:12 +1100)] 
Slight improvement to list text documentation.

13 years agoFix bug where bounces could be discarded instead of processed.
Ben Schmidt [Tue, 27 Mar 2012 01:49:49 +0000 (12:49 +1100)] 
Fix bug where bounces could be discarded instead of processed.

13 years agoMore readable filename_token() function.
Ben Schmidt [Wed, 21 Mar 2012 13:32:03 +0000 (00:32 +1100)] 
More readable filename_token() function.

13 years agoEnsure we don't wrap prematurely and insert an unwanted blank line.
Ben Schmidt [Mon, 19 Mar 2012 23:43:01 +0000 (10:43 +1100)] 
Ensure we don't wrap prematurely and insert an unwanted blank line.

This could happen when the space was inserted between lines: it could trigger
wrapping before there was actually an overflow.

13 years agoUpdate list texts.
Ben Schmidt [Tue, 13 Mar 2012 01:06:42 +0000 (12:06 +1100)] 
Update list texts.

13 years agoAdded tag RELEASE_1_2_18a1 for changeset a0e7464ec2b3
Ben Schmidt [Mon, 12 Mar 2012 16:27:35 +0000 (03:27 +1100)] 
Added tag RELEASE_1_2_18a1 for changeset a0e7464ec2b3

13 years agoAlpha release 1.2.18a1. RELEASE_1_2_18a1
Ben Schmidt [Mon, 12 Mar 2012 16:24:29 +0000 (03:24 +1100)] 
Alpha release 1.2.18a1.

13 years agoAdd new list texts as subrepository.
Ben Schmidt [Mon, 12 Mar 2012 16:23:31 +0000 (03:23 +1100)] 
Add new list texts as subrepository.

13 years agoRemove old list texts.
Ben Schmidt [Mon, 12 Mar 2012 15:41:18 +0000 (02:41 +1100)] 
Remove old list texts.

13 years agoAdd %nowrap% to facilitate more complex formatting.
Ben Schmidt [Mon, 12 Mar 2012 04:46:20 +0000 (15:46 +1100)] 
Add %nowrap% to facilitate more complex formatting.

13 years agoAdd subscription functionality to php-admin and other minor improvements.
Marc Maurice [Sun, 11 Mar 2012 12:09:58 +0000 (23:09 +1100)] 
Add subscription functionality to php-admin and other minor improvements.

13 years agoDon't stop wrapping when skipping text (in a failed conditional).
Ben Schmidt [Wed, 29 Feb 2012 16:42:50 +0000 (03:42 +1100)] 
Don't stop wrapping when skipping text (in a failed conditional).

13 years agoDon't join lines with spaces when there's only indent without content.
Ben Schmidt [Wed, 29 Feb 2012 16:34:33 +0000 (03:34 +1100)] 
Don't join lines with spaces when there's only indent without content.

13 years agoAllow whitespace-only lines to end wrapping.
Ben Schmidt [Wed, 29 Feb 2012 06:39:28 +0000 (17:39 +1100)] 
Allow whitespace-only lines to end wrapping.

13 years agoAdd %zero ABC% exceptions.
Ben Schmidt [Tue, 28 Feb 2012 14:04:11 +0000 (01:04 +1100)] 
Add %zero ABC% exceptions.

13 years agoFix formatting of the beginning of some functions.
Ben Schmidt [Wed, 29 Feb 2012 04:55:32 +0000 (15:55 +1100)] 
Fix formatting of the beginning of some functions.

13 years agoAdd %thin% and %wide% width-reckoning modes.
Ben Schmidt [Wed, 29 Feb 2012 16:34:29 +0000 (03:34 +1100)] 
Add %thin% and %wide% width-reckoning modes.

Also fixes some problems relating to the indent when wrapping, ensuring the
indent isn't swallowed (even though it's whitespace), and that lines aren't
broken in it (even though it's whitespace; breaking in it causes an infinite
loop, as it's always replenished).

13 years agoMake sure parts of lines aren't processed twice.
Ben Schmidt [Wed, 29 Feb 2012 16:33:53 +0000 (03:33 +1100)] 
Make sure parts of lines aren't processed twice.
This ensures backslash escaping is not done twice, and that the one time it is
done it is effective (for break inhibition).

13 years agoMore sensible variable name and meaning for line-breaking.
Ben Schmidt [Wed, 29 Feb 2012 16:33:50 +0000 (03:33 +1100)] 
More sensible variable name and meaning for line-breaking.

13 years agoAdd wrapping modes to facilitate wrapping non-English texts.
Ben Schmidt [Tue, 28 Feb 2012 13:46:35 +0000 (00:46 +1100)] 
Add wrapping modes to facilitate wrapping non-English texts.

- Add %wordwrap%, %charwrap% and %userwrap% line-breaking modes.
- \<space> now means a non-breakable space, not a break opportunity.
- Introduce \/ to mark a break opportunity.
- Introduce \= to inhibit a break.

13 years agoSimplify how line breaking is done internally.
Ben Schmidt [Tue, 28 Feb 2012 13:26:35 +0000 (00:26 +1100)] 
Simplify how line breaking is done internally.