-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/fix email From: w/ configurable "displayname" (#17)
* WIP: add displayname option Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * Fix configure.in Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * Restored orig configure.in + displayname opt Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * job.c: create_mail(): Process 'displayname', etc. via new function 'make_mailbox()' as per RFC5322. Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * Fixed wrong formatting (tabs => spaces) Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * dev(code, doc, test): displayname handling refactored over two functions. * code: config handling of displayname moved to a new function 'format_displayname()' in 'fcronconf.c'; buffer overflow check added. In 'job.c': restored old "From:" mail header behavior if no displayname; buffer overflow check added. * test: added prototype support in 'Makefile' and 'test/' * doc: reviewed and cleaned 'en/fcron.conf.5.sgml' Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> * dev(code, test): @pr #17, 3rd round. * Makefile(s): fixed alignement with spaces * config.in: moved displayname in "Check for fcron..." section. Removed test install code. * fcronconf.c: changed format_displayname()'s arg to avoid confusion with globals. Use stdbool. Use aux var when assigning from format_displayname(). * crondyn_svr.c, fileconf.c: minimal fixes to avoid conflict with stdbool. * fcron.conf.in: added comment for possible displayname's future default value. * global.h: added stdbool. * job.c: changed make_mailbox_addr()'s arg to avoid confusion with globals. Use stdbool. * test/mailbox_addr.c: rewritten with simpler explicit logic -- valgrinded again ;-) Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]> --------- Signed-off-by: Marco Emilio "sphakka" Poleggi <[email protected]>
- Loading branch information
Showing
14 changed files
with
657 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.