]>
git.ipfire.org Git - thirdparty/mlmmj.git/log
raph [Tue, 21 Nov 2023 09:57:03 +0000 (09:57 +0000)]
Fix interactive prompt issue with spool directory option
Baptiste Daroussin [Thu, 9 Nov 2023 10:20:41 +0000 (11:20 +0100)]
write mail: fix regression regarding RFC 5321
if a line on the email to write only contains a dot, then the
dot should be doubled otherwise the mail server will consider it
as the end of the DATA and will prematurely terminate the email.
Baptiste Daroussin [Wed, 25 Oct 2023 22:09:34 +0000 (00:09 +0200)]
subscruption: fix, subscription validation
Baptiste Daroussin [Tue, 24 Oct 2023 21:13:13 +0000 (23:13 +0200)]
1.4.0rc2
Baptiste Daroussin [Wed, 18 Oct 2023 21:10:05 +0000 (23:10 +0200)]
reallf: fix typo in prototype
Baptiste Daroussin [Mon, 16 Oct 2023 21:13:27 +0000 (23:13 +0200)]
verp: remove second mail sent not being actually tested
This was a useless test
Baptiste Daroussin [Mon, 16 Oct 2023 21:09:29 +0000 (23:09 +0200)]
notifymod: add unit test
Baptiste Daroussin [Mon, 16 Oct 2023 21:08:06 +0000 (23:08 +0200)]
notifymod: fix regression
Avoid reusing the previous queuefile to notify the mail is being
moderated
Baptiste Daroussin [Sat, 14 Oct 2023 21:38:36 +0000 (23:38 +0200)]
VERP: add a unit test
Baptiste Daroussin [Sat, 14 Oct 2023 21:30:17 +0000 (23:30 +0200)]
VERP: fix sending multiple batches
Always rewind the mail pointer before actually sending the email
to make sure between 2 batches, we always send the entire email
Baptiste Daroussin [Fri, 13 Oct 2023 15:42:50 +0000 (17:42 +0200)]
1.4.0-rc1
Baptiste Daroussin [Fri, 13 Oct 2023 14:11:59 +0000 (16:11 +0200)]
nobounceprobe: the temporary tunable has been removed
Fixes: #6
Konstantin Ryabitsev [Mon, 18 Sep 2023 18:06:35 +0000 (14:06 -0400)]
Fix compilation on older platforms
When attempting to compile on older platforms (e.g. CentOS 7), there is
a failure due to the wrong stat.h being included via dependencies. This
makes sure that it finds sys/stat.h first.
Baptiste Daroussin [Tue, 18 Jul 2023 09:34:46 +0000 (11:34 +0200)]
mlmmj-send: use newsmtp to reduce code duplication
Baptiste Daroussin [Tue, 18 Jul 2023 08:13:46 +0000 (10:13 +0200)]
mlmmj-send: remove dead code
Baptiste Daroussin [Tue, 18 Jul 2023 06:46:51 +0000 (08:46 +0200)]
mlmmj-receive-strip: sync with mlmmj-receive-strip
Baptiste Daroussin [Thu, 6 Jul 2023 13:39:41 +0000 (15:39 +0200)]
mygetline: cleanup debug
Baptiste Daroussin [Thu, 6 Jul 2023 13:38:42 +0000 (15:38 +0200)]
cleanup: remove some mygetline() occurence
Baptiste Daroussin [Thu, 6 Jul 2023 13:27:10 +0000 (15:27 +0200)]
mlmmj-receive: use daemon(3) instead of reinventing it
Baptiste Daroussin [Thu, 6 Jul 2023 13:11:38 +0000 (15:11 +0200)]
mlmmj-receive: deduplicate code
Baptiste Daroussin [Thu, 6 Jul 2023 13:09:13 +0000 (15:09 +0200)]
incindexfile: actually test the normal behaviour :D
Baptiste Daroussin [Thu, 6 Jul 2023 11:52:22 +0000 (13:52 +0200)]
mlmmj-process: remove useless debug
Baptiste Daroussin [Thu, 6 Jul 2023 11:16:05 +0000 (13:16 +0200)]
listcontrol: add my copyright
Baptiste Daroussin [Thu, 6 Jul 2023 11:07:37 +0000 (13:07 +0200)]
mlmmj-sub: move all subcription code into a reusable function
This codes allows to remove a execl code from listcontrol,
allow to deduplicate plenty of code and remove the need for mlmmmj-process
to know about mlmmj-sub command path
Baptiste Daroussin [Wed, 5 Jul 2023 14:17:45 +0000 (16:17 +0200)]
subcription: now moderation goes into a subdirectory "subscribe"
doing this allows us to avoid manipulating memory and use fd instead
as a fallback mlmmj still lookup for subscribe<cookie>
Baptiste Daroussin [Wed, 5 Jul 2023 13:26:37 +0000 (15:26 +0200)]
subscription: avoid useless goto
Baptiste Daroussin [Wed, 5 Jul 2023 13:23:30 +0000 (15:23 +0200)]
sub: remove useless interlediary variable
Baptiste Daroussin [Wed, 5 Jul 2023 12:53:29 +0000 (14:53 +0200)]
subscription: reduce code duplication
Baptiste Daroussin [Wed, 5 Jul 2023 12:49:50 +0000 (14:49 +0200)]
moderation: add regression tests
Baptiste Daroussin [Wed, 5 Jul 2023 12:20:29 +0000 (14:20 +0200)]
utils: add a function to grab a line or the entire file from a fd
Baptiste Daroussin [Wed, 5 Jul 2023 12:00:53 +0000 (14:00 +0200)]
subscription: move moderation handling into the library for testing purpose
Baptiste Daroussin [Wed, 5 Jul 2023 09:27:00 +0000 (11:27 +0200)]
listcontrol: deduplicate code for subscription
Baptiste Daroussin [Wed, 5 Jul 2023 07:32:07 +0000 (09:32 +0200)]
listcontrol: cosmetic
Baptiste Daroussin [Wed, 5 Jul 2023 07:22:33 +0000 (09:22 +0200)]
mlmmj-process: convert noprocess to stdbool
Baptiste Daroussin [Wed, 5 Jul 2023 07:18:38 +0000 (09:18 +0200)]
mlmmj-process: avoid a useless strlen
Baptiste Daroussin [Wed, 5 Jul 2023 07:15:09 +0000 (09:15 +0200)]
mlmmj-process: deduplicate some code
Baptiste Daroussin [Mon, 3 Jul 2023 12:22:05 +0000 (14:22 +0200)]
prototype: fix empty prototypes
Baptiste Daroussin [Mon, 26 Jun 2023 19:09:55 +0000 (21:09 +0200)]
tests: run tests from the root directory
This makes it easier to debug
Baptiste Daroussin [Mon, 26 Jun 2023 18:57:59 +0000 (20:57 +0200)]
listtexts: subtree merge
Merge the listext repository keeping the history
Baptiste Daroussin [Tue, 20 Jun 2023 08:17:47 +0000 (10:17 +0200)]
tests: remove write only variables
Baptiste Daroussin [Tue, 20 Jun 2023 08:06:34 +0000 (10:06 +0200)]
send_digest: fix double
Baptiste Daroussin [Tue, 20 Jun 2023 08:04:44 +0000 (10:04 +0200)]
send_digest: fix double free and remove unused variable
Baptiste Daroussin [Tue, 20 Jun 2023 07:59:12 +0000 (09:59 +0200)]
xstring: prevent null pointer dereference
Baptiste Daroussin [Tue, 20 Jun 2023 07:50:38 +0000 (09:50 +0200)]
remove dead nested assignement
Baptiste Daroussin [Tue, 20 Jun 2023 07:48:39 +0000 (09:48 +0200)]
prepstdreply: fix useless assignation
Siva Mahadevan [Wed, 14 Jun 2023 03:30:32 +0000 (23:30 -0400)]
mlmmj-make-ml: implement non-interactive mailing list creation
Siva Mahadevan [Tue, 13 Jun 2023 19:50:46 +0000 (15:50 -0400)]
mlmmj-make-ml: cleanup with ShellCheck
Baptiste Daroussin [Mon, 15 May 2023 13:24:44 +0000 (15:24 +0200)]
Release 1.4.0.b1
Baptiste Daroussin [Mon, 15 May 2023 13:22:30 +0000 (15:22 +0200)]
update changelog and note the next release will be beta1
Baptiste Daroussin [Mon, 15 May 2023 13:18:32 +0000 (15:18 +0200)]
manpages: convert to mdoc(7)
Baptiste Daroussin [Mon, 15 May 2023 09:54:50 +0000 (11:54 +0200)]
dnsparse: avoid double free
Baptiste Daroussin [Mon, 17 Apr 2023 15:30:55 +0000 (17:30 +0200)]
fix formatting
Baptiste Daroussin [Mon, 17 Apr 2023 15:28:20 +0000 (17:28 +0200)]
doc: convert mlmmj-list(1) from man(7) to mdoc(7)
Baptiste Daroussin [Sat, 15 Apr 2023 19:46:34 +0000 (21:46 +0200)]
mlmmj-process: add tests for customheaders
Baptiste Daroussin [Sat, 15 Apr 2023 19:36:53 +0000 (21:36 +0200)]
mlmmj-process: add tests for delheaders
Baptiste Daroussin [Sat, 15 Apr 2023 19:32:22 +0000 (21:32 +0200)]
getinfo: use strdup instead of malloc + strcpy
Baptiste Daroussin [Sat, 15 Apr 2023 19:27:41 +0000 (21:27 +0200)]
mlmmj-receive-strip: kill duplicated code
Baptiste Daroussin [Sat, 15 Apr 2023 19:26:20 +0000 (21:26 +0200)]
findit: convert to boolean
Baptiste Daroussin [Sat, 15 Apr 2023 19:24:24 +0000 (21:24 +0200)]
do_all_the_voodoo_here: avoid intermediary variable
Baptiste Daroussin [Sat, 15 Apr 2023 19:20:40 +0000 (21:20 +0200)]
do_all_the_voodoo_here: cover with tests
Baptiste Daroussin [Fri, 14 Apr 2023 15:26:08 +0000 (17:26 +0200)]
gethdrline: rewrite to use stdio
It simplifies a bit the code and allows a more complete code coverage
Baptiste Daroussin [Fri, 14 Apr 2023 14:34:26 +0000 (16:34 +0200)]
gethdrline: add regression tests
Baptiste Daroussin [Fri, 14 Apr 2023 14:34:04 +0000 (16:34 +0200)]
do_all_the_voodoo_here: use stdbool
Baptiste Daroussin [Fri, 14 Apr 2023 13:34:00 +0000 (15:34 +0200)]
mlmmj-process: reduce the scope of the maxmailsizestr
Baptiste Daroussin [Fri, 14 Apr 2023 12:54:20 +0000 (14:54 +0200)]
mlmmj-process: remove dead branch
Baptiste Daroussin [Fri, 14 Apr 2023 12:35:40 +0000 (14:35 +0200)]
mlmmj-process: remove duplicated logic for maxmailsize
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@