]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-storage: add mail_user_plugin_getenv_bool
authorBaofeng Wang <baofeng.wang@dovecot.fi>
Wed, 20 Apr 2016 14:21:51 +0000 (17:21 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 3 May 2016 16:52:13 +0000 (19:52 +0300)
commit527c2b071dca35b91648344e867ab1af9c988281
tree11d62fba55d94eea0797ad706159d5e06875bbbb
parent88bcf81213b292e58ddaa41643e4146299cc750f
lib-storage: add mail_user_plugin_getenv_bool

New API will check boolean-like env setting OR its exsitence.

Function returns FALSE when:
* Read out a null string,
"Or" * String starts with any letter in set {'N', 'n', 'F','f','0'}

To keep downward compatibility, For other cases including an empty
string, function returns TRUE.
src/lib-storage/mail-user.c
src/lib-storage/mail-user.h