]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
Baptiste Daroussin [Fri, 14 Apr 2023 12:31:58 +0000 (14:31 +0200)]
mlmmj-process: add tests about maxmailsize
Baptiste Daroussin [Fri, 14 Apr 2023 12:06:51 +0000 (14:06 +0200)]
mlmmj-send: more conversion to struct ml
Baptiste Daroussin [Fri, 14 Apr 2023 11:52:13 +0000 (13:52 +0200)]
cleanup: remove now dead code
Baptiste Daroussin [Fri, 14 Apr 2023 11:50:22 +0000 (13:50 +0200)]
mlmmj-send: convert send_mail_to* to struct ml
Baptiste Daroussin [Fri, 14 Apr 2023 11:30:16 +0000 (13:30 +0200)]
get_bounce_from_addr: remove useless parameter
Baptiste Daroussin [Fri, 14 Apr 2023 11:18:52 +0000 (13:18 +0200)]
listcontrol: reduce I/O in moderation
Baptiste Daroussin [Fri, 14 Apr 2023 11:13:20 +0000 (13:13 +0200)]
listcontrol: reduce I/O when rejecting a subscription
Baptiste Daroussin [Fri, 14 Apr 2023 10:02:26 +0000 (12:02 +0200)]
listcontrol: simplify code handling omits in +release
Reuse the code used to read a line from a file in control
and only unlink the file if it actually existed
Baptiste Daroussin [Fri, 14 Apr 2023 09:53:22 +0000 (11:53 +0200)]
listcontrol: add test when receiving a wrong reject email
Baptiste Daroussin [Fri, 14 Apr 2023 09:43:59 +0000 (11:43 +0200)]
listcontrol: reduce I/O when rejecting a moderated message
Baptiste Daroussin [Fri, 14 Apr 2023 09:00:15 +0000 (11:00 +0200)]
listcontrol: test moderation with "notmeetoo"
Baptiste Daroussin [Fri, 14 Apr 2023 08:59:27 +0000 (10:59 +0200)]
unistr: kill dead code
Baptiste Daroussin [Fri, 14 Apr 2023 08:57:36 +0000 (10:57 +0200)]
listcontrol: cleanup omit files on reject
When rejecting a mail in moderation on a mailing list with "notmetoo"
activated, there .omit files were leftovers, now we clean them up
Baptiste Daroussin [Fri, 14 Apr 2023 07:42:13 +0000 (09:42 +0200)]
listcontrol: factorize the code check for '@' in mails
Baptiste Daroussin [Fri, 14 Apr 2023 07:21:03 +0000 (09:21 +0200)]
moderation: cover regular moderation with tests
Baptiste Daroussin [Thu, 13 Apr 2023 09:40:53 +0000 (11:40 +0200)]
listcontrol: fix release a moderated file
Baptiste Daroussin [Thu, 13 Apr 2023 09:12:52 +0000 (11:12 +0200)]
moderation: cover with tests the subscribtion moderation
Baptiste Daroussin [Thu, 13 Apr 2023 07:38:21 +0000 (09:38 +0200)]
+get: add TODO
add an information about the necessity to code the requeue of the fail
to send emails, previous code using -6 was not working either, it was
just polluting the archives and mlmmj-maintd would never have catched
up the mail to requeue
Baptiste Daroussin [Thu, 13 Apr 2023 07:26:27 +0000 (09:26 +0200)]
genlistfqdn: avoid useless memory allocation
While here lookup for '@' from the end (reverse)
Baptiste Daroussin [Thu, 13 Apr 2023 07:14:26 +0000 (09:14 +0200)]
changelog: document the removal of -l 6 from mlmmj-send
Baptiste Daroussin [Thu, 13 Apr 2023 07:12:42 +0000 (09:12 +0200)]
mlmmj-send: remove -l 6 option which is not used anymore
Baptiste Daroussin [Wed, 12 Apr 2023 16:45:08 +0000 (18:45 +0200)]
listcontrol: stop calling mlmmj-send for +get-<index>@
This rewrite allow to reduce memory allocation and prevent fork/exec
move some functions from mlmmj-send to a library to allow reuse,
Duplicate bounce_from_adr temporary to allow rewrite using struct ml
Baptiste Daroussin [Wed, 12 Apr 2023 16:21:01 +0000 (18:21 +0200)]
mailing+get: add tests
Baptiste Daroussin [Wed, 12 Apr 2023 16:15:39 +0000 (18:15 +0200)]
listcontrol: remove useless intermediary variables
Baptiste Daroussin [Wed, 12 Apr 2023 16:13:09 +0000 (18:13 +0200)]
listcontrol: simplify verifycation that param is digit only
while here do not kill the program is the requested archive is not
there but gracefully die
Baptiste Daroussin [Wed, 12 Apr 2023 15:54:46 +0000 (17:54 +0200)]
mlmmj-send: xstrdup already abort in case of issue with memory
Baptiste Daroussin [Wed, 12 Apr 2023 15:45:56 +0000 (17:45 +0200)]
mailing+faq: add simple tests
Baptiste Daroussin [Wed, 12 Apr 2023 15:45:30 +0000 (17:45 +0200)]
mlmmj-process: fix typo
Baptiste Daroussin [Wed, 12 Apr 2023 13:25:56 +0000 (15:25 +0200)]
mailing+help: add testcase
Baptiste Daroussin [Wed, 12 Apr 2023 13:19:43 +0000 (15:19 +0200)]
listcontrol: fix indentation
Baptiste Daroussin [Wed, 12 Apr 2023 13:17:19 +0000 (15:17 +0200)]
mailing+list: simplify the code
Baptiste Daroussin [Wed, 12 Apr 2023 13:10:20 +0000 (15:10 +0200)]
ctrlvalues: add a function to only check if an entry is contained
this allows to reduce memory usage and simplify code
Baptiste Daroussin [Wed, 12 Apr 2023 12:46:15 +0000 (14:46 +0200)]
listcontrol: reduce the number of branches by 1
Baptiste Daroussin [Wed, 12 Apr 2023 12:11:23 +0000 (14:11 +0200)]
listcontrol: add test for mailinglist+list@
Baptiste Daroussin [Wed, 12 Apr 2023 10:18:19 +0000 (12:18 +0200)]
listcontrol: remove the requirement to execute mlmmj-unsub
Baptiste Daroussin [Wed, 12 Apr 2023 10:09:19 +0000 (12:09 +0200)]
confunsub: factorize code
Baptiste Daroussin [Wed, 12 Apr 2023 09:59:42 +0000 (11:59 +0200)]
subscribe: cover confunsub-digest and confunsub-nomail
Baptiste Daroussin [Wed, 12 Apr 2023 09:51:32 +0000 (11:51 +0200)]
subscribe: more complete test coverage
Baptiste Daroussin [Wed, 12 Apr 2023 09:41:35 +0000 (11:41 +0200)]
mlmmj-sub: use stdbool
Baptiste Daroussin [Wed, 12 Apr 2023 09:38:55 +0000 (11:38 +0200)]
unsubscription: plug memory leaks
Baptiste Daroussin [Wed, 12 Apr 2023 09:24:03 +0000 (11:24 +0200)]
subscribe: cover subscribtion to both normal and digest mails
Baptiste Daroussin [Wed, 12 Apr 2023 09:15:55 +0000 (11:15 +0200)]
subscribe: cover nomail and digest mail with testcase
Baptiste Daroussin [Wed, 12 Apr 2023 09:06:56 +0000 (11:06 +0200)]
listcontrol: fix subscribtion confirmations
Baptiste Daroussin [Wed, 12 Apr 2023 08:47:51 +0000 (10:47 +0200)]
listcontrol: stop forking when unsubscribing
Baptiste Daroussin [Wed, 12 Apr 2023 08:16:14 +0000 (10:16 +0200)]
mlmmj-unsub: use stdbool everywhere
Baptiste Daroussin [Wed, 12 Apr 2023 08:14:10 +0000 (10:14 +0200)]
mlmmj-unsub: indentation fix
Baptiste Daroussin [Wed, 12 Apr 2023 07:56:05 +0000 (09:56 +0200)]
subscribtion: reduce confusion
Reduce confusion by renaming variables and function to more obvious name
Baptiste Daroussin [Fri, 7 Apr 2023 12:47:30 +0000 (14:47 +0200)]
copy_file_range: deal with EXDEV
in theory it is never supposed to happen, in practice it happened
on some version of the linux kernel.
Baptiste Daroussin [Thu, 9 Mar 2023 08:26:20 +0000 (09:26 +0100)]
subscription: add end to end test
Baptiste Daroussin [Thu, 9 Mar 2023 08:25:28 +0000 (09:25 +0100)]
subscribtion cookie: properly remove the cookie
Baptiste Daroussin [Thu, 9 Mar 2023 08:07:54 +0000 (09:07 +0100)]
subconfirm: fix unsubscribe email
Baptiste Daroussin [Wed, 8 Mar 2023 17:29:44 +0000 (18:29 +0100)]
mlmmj-sub: stop forking to send subscription confirmation
Baptiste Daroussin [Wed, 8 Mar 2023 17:15:03 +0000 (18:15 +0100)]
mlmmj-process: fix typo
Baptiste Daroussin [Wed, 8 Mar 2023 17:14:23 +0000 (18:14 +0100)]
mlmmj-process: avoid useless memory allocation
Baptiste Daroussin [Wed, 8 Mar 2023 17:05:52 +0000 (18:05 +0100)]
mlmmj-process: add tests for simple reception and subscription
While here ensure we exit with failures in case we have a bad envelop
Baptiste Daroussin [Wed, 8 Mar 2023 16:24:24 +0000 (17:24 +0100)]
mlmmj-send: remove non portable header
Baptiste Daroussin [Wed, 8 Mar 2023 14:37:47 +0000 (15:37 +0100)]
mlmmj-maintd: resend_queue: add a missing test
Baptiste Daroussin [Wed, 8 Mar 2023 14:34:19 +0000 (15:34 +0100)]
mlmmj-maintd: resend_queue: fully test
Baptiste Daroussin [Wed, 8 Mar 2023 12:30:48 +0000 (13:30 +0100)]
mlmmj-maintd: resend_queue: fix freeing non malloced memory
Baptiste Daroussin [Wed, 8 Mar 2023 11:07:07 +0000 (12:07 +0100)]
mlmmj-maintd: resend_requeue: cleanup stale directory
Now that we cleanly control the life cycle of our files, cleanup
the stale directory after ourself.
Baptiste Daroussin [Wed, 8 Mar 2023 11:03:34 +0000 (12:03 +0100)]
mlmmj-maintd: extend the test to cover addtohdr
Baptiste Daroussin [Wed, 8 Mar 2023 10:40:34 +0000 (11:40 +0100)]
mlmmj-send: document accepting -m as file descriptor
Baptiste Daroussin [Wed, 8 Mar 2023 10:37:49 +0000 (11:37 +0100)]
mlmmj-maintd: pass the mailfile to resend via file descriptor
This reduces the memory allocation and also plug some memory leak
Baptiste Daroussin [Wed, 8 Mar 2023 10:08:56 +0000 (11:08 +0100)]
mlmmj-maintd: fix and test resend_requeue
Pass the list of target mails to resend to via file descriptor:
This allows to stop creating a "resending" file and controls the life
cycle of the mail to be resent (deleted or not) from the mmlmmj-maintd
code
Baptiste Daroussin [Wed, 8 Mar 2023 10:08:08 +0000 (11:08 +0100)]
mlmmj-send: multiple fixes:
fix possible use heap-after-free
allow passing mailarchive via file descriptor
Baptiste Daroussin [Wed, 8 Mar 2023 10:07:26 +0000 (11:07 +0100)]
mlmmj-process: pass the owner via file descriptor to mlmmj-send
Baptiste Daroussin [Wed, 8 Mar 2023 09:41:51 +0000 (10:41 +0100)]
requemail: fix double-free
Baptiste Daroussin [Wed, 8 Mar 2023 09:39:03 +0000 (10:39 +0100)]
prepstdreply: Fix corruption prefix pointer
Baptiste Daroussin [Tue, 7 Mar 2023 17:11:22 +0000 (18:11 +0100)]
mlmmj-send: Pass file descriptor to mlmmj-send and reduce the number of IO
Baptiste Daroussin [Tue, 7 Mar 2023 17:05:56 +0000 (18:05 +0100)]
mlmmj-send: accept file descriptor number as -s argument
Baptiste Daroussin [Tue, 7 Mar 2023 14:44:47 +0000 (15:44 +0100)]
prepstdreply: use stdio and getline(3) instead of mygetline()
Baptiste Daroussin [Tue, 7 Mar 2023 10:04:25 +0000 (11:04 +0100)]
mlmmj-sub: fix error in error message
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