]> git.ipfire.org Git - thirdparty/fcron.git/commit
Rename config key displayname to maildisplayname, and refactor. (#33)
authorThibault Godouet <yo8192@users.noreply.github.com>
Sat, 24 Aug 2024 22:40:44 +0000 (23:40 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Aug 2024 22:40:44 +0000 (23:40 +0100)
commita330bb3d2947622ece03757cbcf4ecadce5ac261
treee512be6b6e28bf7ccec8fff2ac271ac0059c8ca1
parent2b18ac9cd8647dd32367fdf07eafa24c51cbe410
Rename config key displayname to maildisplayname, and refactor. (#33)

The main changes are:

-  rename the fcron.conf config key displayname into maildisplayname, for clarity.
-   move the underlying code into its own mail.c file, with some refactoring to improve clarity and simplify slightly.
-   extend the extra overflow tests to test at the limit, and just over the limit (expecting an overflow error)
-   ensure things work on systems which don't have stdbool.h (which is C99)

Full commit list:
* fix compilation error (couldn't find selinux.h)
* Rename boolean variable names.
* Check for stdbool.h's availability.
* Refactor maildisplayname.
* Move format_displayname() and make_mailbox_addr() into their own file.
* Ignore test binary.
* Rename option displayname to maildisplayname.
19 files changed:
.gitignore
Makefile.in
config.h.in
configure.in
doc/en/fcron.conf.5.sgml
doc/fcron-doc.mod.in
fcronconf.c
fcronconf.h
fcrondyn_svr.c
fileconf.c
files/fcron.conf.in
global.h
job.c
job.h
mail.c [new file with mode: 0644]
mail.h [new file with mode: 0644]
script/gen-in.pl
test/Makefile.in
test/mailbox_addr.c