]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
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
Baptiste Daroussin [Fri, 10 Feb 2023 09:04:55 +0000 (10:04 +0100)]
init_truncated_file_lines: remove never used case
init_truncated_file_lines is called only once and never with open_now
set to true
Baptiste Daroussin [Fri, 10 Feb 2023 08:54:27 +0000 (09:54 +0100)]
prepstdreply: convert formatted to tll
Baptiste Daroussin [Fri, 10 Feb 2023 08:44:27 +0000 (09:44 +0100)]
Remove useless typedef
Baptiste Daroussin [Fri, 10 Feb 2023 08:41:15 +0000 (09:41 +0100)]
text: use tlllist for substitutions
Baptiste Daroussin [Fri, 10 Feb 2023 08:33:02 +0000 (09:33 +0100)]
prepstdreply: use normal register_unformatted to register default substitutions
Baptiste Daroussin [Thu, 9 Feb 2023 15:49:54 +0000 (16:49 +0100)]
text: remove usage of concatstr
Baptiste Daroussin [Thu, 9 Feb 2023 15:16:28 +0000 (16:16 +0100)]
open_text: add simple tests
Baptiste Daroussin [Thu, 9 Feb 2023 15:14:57 +0000 (16:14 +0100)]
Fix prototype
Baptiste Daroussin [Thu, 9 Feb 2023 14:40:20 +0000 (15:40 +0100)]
prepstdreply: split the function to make it more testable
Baptiste Daroussin [Thu, 9 Feb 2023 14:24:38 +0000 (15:24 +0100)]
open_text: accept fd for list
while here add a new open_text_fd which will help for testing purpose
Baptiste Daroussin [Thu, 9 Feb 2023 14:13:17 +0000 (15:13 +0100)]
open_text: use calloc to initiize most of the variables
Baptiste Daroussin [Thu, 9 Feb 2023 13:31:11 +0000 (14:31 +0100)]
memory_lines: simplify the code and fully test it
Baptiste Daroussin [Thu, 9 Feb 2023 13:03:58 +0000 (14:03 +0100)]
mlmmj-process: convert to struct ml
Baptiste Daroussin [Thu, 9 Feb 2023 11:50:17 +0000 (12:50 +0100)]
mlmmj-unsub: convert to use struct ml