]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
Baptiste Daroussin [Tue, 7 Mar 2023 10:03:16 +0000 (11:03 +0100)]
listcontrol: mark fallthrough to appease gcc12
Baptiste Daroussin [Tue, 7 Mar 2023 09:59:59 +0000 (10:59 +0100)]
mygetline: fix type for return value of read(2)
Baptiste Daroussin [Mon, 6 Mar 2023 21:15:09 +0000 (22:15 +0100)]
concatstr: remove, all use case has been replaced
Baptiste Daroussin [Mon, 6 Mar 2023 21:08:16 +0000 (22:08 +0100)]
prepstdreply: replace concatstr with xasprintf
Baptiste Daroussin [Mon, 6 Mar 2023 13:19:37 +0000 (14:19 +0100)]
requeuemail: isolate test and fix regression
Baptiste Daroussin [Mon, 6 Mar 2023 13:19:19 +0000 (14:19 +0100)]
mlmmj-sub: add a test for notifysub
Baptiste Daroussin [Mon, 6 Mar 2023 10:22:58 +0000 (11:22 +0100)]
mlmmj-unsub: test notifysub
Baptiste Daroussin [Thu, 2 Mar 2023 09:00:48 +0000 (10:00 +0100)]
Replace many memset by initialisation inline at the declaration moment
While here, remove GNU extension only initialisation.
Baptiste Daroussin [Fri, 17 Feb 2023 22:26:34 +0000 (23:26 +0100)]
mlmmj-unsub: test unsubscription mail sent
Baptiste Daroussin [Fri, 17 Feb 2023 21:36:29 +0000 (22:36 +0100)]
mlmmj-sub: rewrite parsing subscription moderation
Rewrite around using getline(3)
Baptiste Daroussin [Fri, 17 Feb 2023 21:27:59 +0000 (22:27 +0100)]
mlmmj-sub: fix detecting the type of subscription when moderating
liedekef [Fri, 17 Feb 2023 16:29:58 +0000 (17:29 +0100)]
remove old comments
liedekef [Fri, 17 Feb 2023 15:56:12 +0000 (16:56 +0100)]
update the php code to work with php 8, add the possibility to edit texts, see the log and limit who can manage per list the settings or subscribers
liedekef [Fri, 17 Feb 2023 15:55:54 +0000 (16:55 +0100)]
update the php code to work with php 8, add the possibility to edit texts, see the log and limit who can manage per list the settings or subscribers
Baptiste Daroussin [Fri, 17 Feb 2023 19:39:05 +0000 (20:39 +0100)]
mlmmj-sub: simplifly code to map types and related strings
Baptiste Daroussin [Fri, 17 Feb 2023 16:25:13 +0000 (17:25 +0100)]
mlmmj-sub: use xasprintf instead concatstr
Baptiste Daroussin [Fri, 17 Feb 2023 16:16:04 +0000 (17:16 +0100)]
mlmmj-sub: prefer open_memstream over concatstr
Baptiste Daroussin [Fri, 17 Feb 2023 16:08:41 +0000 (17:08 +0100)]
mlmmj-sub: reduce memory allocation
Baptiste Daroussin [Fri, 17 Feb 2023 15:35:47 +0000 (16:35 +0100)]
prepstreply: fix regression
Baptiste Daroussin [Fri, 17 Feb 2023 15:35:36 +0000 (16:35 +0100)]
send_mail: the file pointer can be reused
Baptiste Daroussin [Fri, 17 Feb 2023 13:40:22 +0000 (14:40 +0100)]
mlmmj-send: fix regression
Baptiste Daroussin [Fri, 17 Feb 2023 13:13:47 +0000 (14:13 +0100)]
Revert "prepstdreply: use getline(3)"
This reverts commit
83d36de2a284ec62cf66ed7f128ee44fad66c65a.
Baptiste Daroussin [Fri, 17 Feb 2023 13:13:34 +0000 (14:13 +0100)]
mlmmj-sub: improve testing
Baptiste Daroussin [Fri, 17 Feb 2023 13:12:48 +0000 (14:12 +0100)]
fakesmtpd: add a program to fake a smtpd server for testing purpose
Baptiste Daroussin [Fri, 17 Feb 2023 13:12:13 +0000 (14:12 +0100)]
mlmmj-sub: fix regressions
Baptiste Daroussin [Fri, 17 Feb 2023 09:04:58 +0000 (10:04 +0100)]
endsmtp: remove debug
Baptiste Daroussin [Thu, 16 Feb 2023 19:25:11 +0000 (20:25 +0100)]
mailsending: always delete emails on success
Baptiste Daroussin [Thu, 16 Feb 2023 15:07:25 +0000 (16:07 +0100)]
mlmmj-send: -l 1 is not supported anymore
Baptiste Daroussin [Thu, 16 Feb 2023 15:05:12 +0000 (16:05 +0100)]
mlmmj-process: remove any call to mlmmj-send -l 1
Baptiste Daroussin [Thu, 16 Feb 2023 15:01:02 +0000 (16:01 +0100)]
mlmmj-maintd: sendqueue directly instead of calling mlmmj-send
Baptiste Daroussin [Thu, 16 Feb 2023 14:17:53 +0000 (15:17 +0100)]
mlmmj-bounce: mlmmj-send -l 1 always exit success
Baptiste Daroussin [Thu, 16 Feb 2023 14:16:56 +0000 (15:16 +0100)]
send_help: test, use send_mail and generalize its usage
Baptiste Daroussin [Wed, 15 Feb 2023 18:58:13 +0000 (19:58 +0100)]
listcontrol: add basic tests
Baptiste Daroussin [Wed, 15 Feb 2023 14:23:35 +0000 (15:23 +0100)]
mlmmj-unsub: can now be called from relative path
Baptiste Daroussin [Wed, 15 Feb 2023 14:22:36 +0000 (15:22 +0100)]
config_sub: deduplicate and test code
Baptiste Daroussin [Wed, 15 Feb 2023 14:02:23 +0000 (15:02 +0100)]
generate_subconfirm: deduplicate and test code
Baptiste Daroussin [Wed, 15 Feb 2023 13:13:24 +0000 (14:13 +0100)]
generate_scubscription: deduplicate and test code
Baptiste Daroussin [Wed, 15 Feb 2023 12:45:48 +0000 (13:45 +0100)]
notify-sub: do not call mlmmj-send anymore
Baptiste Daroussin [Wed, 15 Feb 2023 09:13:07 +0000 (10:13 +0100)]
test: add a helper function for any kind or email reception
Baptiste Daroussin [Wed, 15 Feb 2023 08:47:24 +0000 (09:47 +0100)]
send_single_mail: add tests and fix logic error
Baptiste Daroussin [Wed, 15 Feb 2023 08:01:27 +0000 (09:01 +0100)]
mlmmj-bounce: do not remove the previous probe
When probing we are going to truncate the file if it already exists
Baptiste Daroussin [Wed, 15 Feb 2023 08:00:39 +0000 (09:00 +0100)]
mlmmj-bounce: fix typo
Baptiste Daroussin [Tue, 14 Feb 2023 16:47:04 +0000 (17:47 +0100)]
mlmmj-send: create function to deduplicate the code to save the queue
Baptiste Daroussin [Tue, 14 Feb 2023 16:46:34 +0000 (17:46 +0100)]
mlmmj-bounce: fix error when converting to send_mail()
We actually needed to cleanup the bounce and not save the queue
Baptiste Daroussin [Tue, 14 Feb 2023 16:34:29 +0000 (17:34 +0100)]
send_single_mail: add a helper to avoid duplicating code
Baptiste Daroussin [Tue, 14 Feb 2023 14:57:35 +0000 (15:57 +0100)]
tests: ignore gnu-zero-variadic-macro-arguments with clang
Baptiste Daroussin [Tue, 14 Feb 2023 14:39:43 +0000 (15:39 +0100)]
gcc: fix gcc12 warnings
Baptiste Daroussin [Tue, 14 Feb 2023 14:33:31 +0000 (15:33 +0100)]
unused: shut up the unused argument warning
Baptiste Daroussin [Tue, 14 Feb 2023 14:26:02 +0000 (15:26 +0100)]
add missing c file
Baptiste Daroussin [Tue, 14 Feb 2023 14:25:04 +0000 (15:25 +0100)]
memorymailsize: remove, it is not a thing anymore
Baptiste Daroussin [Tue, 14 Feb 2023 14:23:26 +0000 (15:23 +0100)]
tests: remove unused variables
Baptiste Daroussin [Tue, 14 Feb 2023 14:20:29 +0000 (15:20 +0100)]
Add forgotten header
Baptiste Daroussin [Tue, 14 Feb 2023 14:16:12 +0000 (15:16 +0100)]
newsmtp: fully test
Baptiste Daroussin [Tue, 14 Feb 2023 14:03:55 +0000 (15:03 +0100)]
send_mail: huge simplification using stdio
Use stdio instead of mmap or inmemory buffers. This is easier to test,
easier to read, and the previous mecanism was not signigicantly faster
Baptiste Daroussin [Tue, 14 Feb 2023 10:52:26 +0000 (11:52 +0100)]
mail-functions: allow to send an email from a FILE *
Baptiste Daroussin [Tue, 14 Feb 2023 09:12:31 +0000 (10:12 +0100)]
tests: use atf_utils_readline and deduplicate code
Baptiste Daroussin [Tue, 14 Feb 2023 08:34:23 +0000 (09:34 +0100)]
tests: factorize some code
Baptiste Daroussin [Tue, 14 Feb 2023 08:19:01 +0000 (09:19 +0100)]
tests: move helpers out of the main c program
Baptiste Daroussin [Tue, 14 Feb 2023 08:00:32 +0000 (09:00 +0100)]
mlmmj-bounce: use send_mail directly and stop executing mlmmj-send
This makes mlmmj-send -l 5 obsolete
Baptiste Daroussin [Mon, 13 Feb 2023 21:26:43 +0000 (22:26 +0100)]
mlmmj-bounce: convert to stdbool
Baptiste Daroussin [Mon, 13 Feb 2023 21:15:57 +0000 (22:15 +0100)]
get_processed_text_line: add simple tests
Baptiste Daroussin [Mon, 13 Feb 2023 08:15:24 +0000 (09:15 +0100)]
substitute: simplify the code
Baptiste Daroussin [Sun, 12 Feb 2023 21:32:02 +0000 (22:32 +0100)]
test: remove unused variable
Baptiste Daroussin [Sun, 12 Feb 2023 21:31:09 +0000 (22:31 +0100)]
get_processed_text_line: use stdbool
Baptiste Daroussin [Sun, 12 Feb 2023 21:26:42 +0000 (22:26 +0100)]
get_processed_text_line: convert to struct ml
Baptiste Daroussin [Sun, 12 Feb 2023 21:06:08 +0000 (22:06 +0100)]
cleanup: remove clangd auto addition
Baptiste Daroussin [Sun, 12 Feb 2023 21:05:44 +0000 (22:05 +0100)]
mlmmj-send: reduce memory allocation by using file descriptors
Baptiste Daroussin [Sun, 12 Feb 2023 20:55:39 +0000 (21:55 +0100)]
mlmmj-send: eliminate intermediary variable
Baptiste Daroussin [Sun, 12 Feb 2023 20:53:30 +0000 (21:53 +0100)]
mlmmj-send: replace some concatstr and deindent
Baptiste Daroussin [Sun, 12 Feb 2023 15:16:25 +0000 (16:16 +0100)]
mlmmj-send: use asprintf instead of reinventing it
Baptiste Daroussin [Sun, 12 Feb 2023 15:04:59 +0000 (16:04 +0100)]
getlistaddr: remove now dead code
Baptiste Daroussin [Sun, 12 Feb 2023 15:03:26 +0000 (16:03 +0100)]
mlmmj-send: convert to struct ml
Baptiste Daroussin [Sun, 12 Feb 2023 08:48:43 +0000 (09:48 +0100)]
strto*: fix crash if the pointer to the error pointer is NULL
Baptiste Daroussin [Sat, 11 Feb 2023 21:44:56 +0000 (22:44 +0100)]
headers: cleanup unused headers
Baptiste Daroussin [Sat, 11 Feb 2023 21:38:43 +0000 (22:38 +0100)]
prepstdreply: convert to struct ml
Baptiste Daroussin [Sat, 11 Feb 2023 18:14:36 +0000 (19:14 +0100)]
mlmmj-maintd: convert to struct ml
Baptiste Daroussin [Sat, 11 Feb 2023 17:38:11 +0000 (18:38 +0100)]
mlmmj-bounce: convert to struct ml
Baptiste Daroussin [Sat, 11 Feb 2023 17:25:40 +0000 (18:25 +0100)]
Revert "tests: use atf_utils_readline"
This reverts commit
f7080bb3a54b8f9cf6f7aa9c01101f249bbe2173.
Baptiste Daroussin [Sat, 11 Feb 2023 07:14:55 +0000 (08:14 +0100)]
tests: use atf_utils_readline
Baptiste Daroussin [Sat, 11 Feb 2023 06:52:03 +0000 (07:52 +0100)]
mlmmj-maintd: deduplicate code by using ctrltimet
Baptiste Daroussin [Sat, 11 Feb 2023 06:48:41 +0000 (07:48 +0100)]
mlmmj-maintd: use ctrlvalue to reduce code duplication
Baptiste Daroussin [Sat, 11 Feb 2023 06:38:36 +0000 (07:38 +0100)]
prepstdreply: use getline(3)
Baptiste Daroussin [Sat, 11 Feb 2023 06:14:09 +0000 (07:14 +0100)]
mlmmj: remove unused headers
Baptiste Daroussin [Sat, 11 Feb 2023 06:08:59 +0000 (07:08 +0100)]
tests: use atf_utils_create_file
Baptiste Daroussin [Fri, 10 Feb 2023 17:03:07 +0000 (18:03 +0100)]
notify-sub: use the same function from subscribtion and unsubscribtion
Baptiste Daroussin [Fri, 10 Feb 2023 16:53:01 +0000 (17:53 +0100)]
notify-sub: remove useless memory allocation
Baptiste Daroussin [Fri, 10 Feb 2023 16:51:12 +0000 (17:51 +0100)]
notify-sub: add a unit test
Baptiste Daroussin [Fri, 10 Feb 2023 13:54:36 +0000 (14:54 +0100)]
notify_sub: move to the library
Baptiste Daroussin [Fri, 10 Feb 2023 13:03:47 +0000 (14:03 +0100)]
mlmmj-process: eliminate concatstr
Baptiste Daroussin [Fri, 10 Feb 2023 12:55:37 +0000 (13:55 +0100)]
is_moderator: rewrite
rewrite using getline(3) and xstring to simplify code
Baptiste Daroussin [Fri, 10 Feb 2023 12:54:40 +0000 (13:54 +0100)]
xstring: add a wrapper around open_memstream
Baptiste Daroussin [Fri, 10 Feb 2023 12:39:30 +0000 (13:39 +0100)]
send_help: convert to struct ml
Baptiste Daroussin [Fri, 10 Feb 2023 12:00:15 +0000 (13:00 +0100)]
list_sub: refactoring
Rework to use getline(3), to work with file descriptors and reduce
memory allocation
Baptiste Daroussin [Fri, 10 Feb 2023 11:33:05 +0000 (12:33 +0100)]
list_subs: add unit test
Baptiste Daroussin [Fri, 10 Feb 2023 11:05:00 +0000 (12:05 +0100)]
list_subs: move prototype to make the functions testable
Baptiste Daroussin [Fri, 10 Feb 2023 10:55:13 +0000 (11:55 +0100)]
send_list: convert to struct ml
Baptiste Daroussin [Fri, 10 Feb 2023 10:49:19 +0000 (11:49 +0100)]
listcontrol: convert to struct ml
Baptiste Daroussin [Fri, 10 Feb 2023 10:23:33 +0000 (11:23 +0100)]
init_file_lines: rework using getline(3)
Baptiste Daroussin [Fri, 10 Feb 2023 10:14:00 +0000 (11:14 +0100)]
init_file_lines: add unit test
Baptiste Daroussin [Fri, 10 Feb 2023 09:06:19 +0000 (10:06 +0100)]
init_file_lines: remove unused function
Actually merge into init_truncated_file_lines and rename it