Matt Simerson
75cb416b62
added diagnostics for failed spool_dir test
...
likely due to config caching
2014-09-16 00:03:28 -07:00
Matt Simerson
ebdb25a4bd
extracted config*() from Qpsmtpd.pm -> Config.pm
...
* includes full test converage for Qpsmtpd::Config
* folded t/config.t into t/qpsmtpd-config.t
* includes additional tests for Qpsmtpd
* folded t/tempstuff into t/qpsmtpd.t
* PBP adjustments here and there
* other tweaks to handle test warnings
2014-09-15 23:41:31 -07:00
Matt Simerson
79d2b99211
Qpsmtpd: remove PLUGIN_DIR label, replace implicit
...
if statements with chained 'and' with if block (2x)
2014-09-15 19:00:07 -07:00
Matt Simerson
f8e2fdb966
more tests for Qpsmtpd.pm
2014-09-15 18:54:10 -07:00
Matt Simerson
b60c14a7c1
t/q-base, s/utils/base/
2014-09-15 18:53:30 -07:00
Matt Simerson
860d5a6f90
updated MANIFEST
2014-09-15 18:53:30 -07:00
Matt Simerson
710894cd49
moved Qpsmtpd::Utils -> Base.pm
2014-09-15 18:53:30 -07:00
Jared Johnson
2a303538e5
Merge pull request #101 from msimerson/tidy
...
META updates, tidy, PBP tweaks
2014-09-15 20:48:05 -05:00
Matt Simerson
7ca511d8a3
move extra $rc test into block
...
where it could have been set
2014-09-15 16:01:57 -07:00
Matt Simerson
851e1b54ee
META updates, tidy, PBP tweaks
...
* update manifest
* perltidy
* replace postfix if/unless with brackets
* reduce useless indention by exiting sooner
2014-09-15 15:57:12 -07:00
Matt Simerson
41a7b24275
Merge pull request #84 from jaredj/per-recip-config
...
Add hook_user_config
2014-09-15 15:14:04 -07:00
Jared Johnson
c6da8610dc
Fix crasher
...
Add missing 'use' and use get/set method for cleaner storage of QP object
2014-09-15 17:06:48 -05:00
Jared Johnson
e9c56dc268
Avoid passing Qpsmtpd object refs around
...
Use an instantiator in Qpsmtpd.pm for creating Qpsmtpd::Address objects instead
2014-09-15 17:06:48 -05:00
Jonathan Hall
1253e73a4d
Another minor POD update.
2014-09-15 17:06:48 -05:00
Jonathan Hall
6ed109914c
POD updates, corrections, and clarifications.
2014-09-15 17:06:48 -05:00
Jared Johnson
2caa191334
Avoid warnings on undef hook_config returns values
2014-09-15 17:06:48 -05:00
Jared Johnson
f052543154
Correct number of user_config tests
2014-09-15 17:06:47 -05:00
Jared Johnson
4b7af20f49
Fix pattern substitution in user_config plugin
2014-09-15 17:06:47 -05:00
Jared Johnson
de742dc95e
Add tests for user_config plugin
2014-09-15 17:06:47 -05:00
Jared Johnson
23ce6002cf
Qpsmtpd::config() tests
2014-09-15 17:06:47 -05:00
Jared Johnson
cda40f970b
Remove an unintentionally commited subroutine
2014-09-15 17:03:52 -05:00
Jared Johnson
fb8f582055
Use a loop to make test data clearer
2014-09-15 17:03:52 -05:00
Jared Johnson
41a71f5d79
Move test sub definition to the bottom
2014-09-15 17:03:52 -05:00
Jared Johnson
18bfc45d0b
Fall back correctly between config methods
...
hook_user_config no falls back to global hook_config followed by
file-based config followed by %defaults
2014-09-15 17:01:39 -05:00
Jared Johnson
5b8138971a
Don't use config cache for hook_config plugins
...
Conflig plugins can do their own caching: there's no telling what might change
their return values over the life of the config cache.
2014-09-15 17:01:39 -05:00
Jared Johnson
50cc469881
Add docs and flexible path to user_config plugin
...
I needed to make the path modifyable for testing anyway, might as well make it
actually usable. Not yet tested.
2014-09-15 17:01:39 -05:00
Jared Johnson
eb482aad0a
Tests for Qpsmtpd::Address::config()
...
Tests for the new Qpsmtpd::Address::config() which should call hook_user_config plugins
2014-09-15 17:01:39 -05:00
Jared Johnson
8d032d8b50
Follow upstream convention in shebang
...
Our fork uses '#!/perl (Editor hint)' but upstream normally uses '#!perl'. Conforming to upstream.
FWIW, the Kate editor recognizes the former as perl for the purpose of syntax highlighting but does not recognize the latter. But the one guy I know who uses Kate didn't take the opportunity to object :)
2014-09-15 16:53:09 -05:00
Jared Johnson
3379248c45
Add user_config example plugin
...
Add a plugin to read qpsmptd-style configuration files from users' home
directories. Little to no testing yet.
2014-09-15 16:53:09 -05:00
Jared Johnson
b22d037c39
Add hook_user_config
...
This adds a hook_user_config for plugins designed to return per-user
configuration directives. Qpsmtpd::Address::config() triggers a
hook_user_config plugin.
2014-09-15 16:53:09 -05:00
Jared Johnson
bd47c06966
Merge pull request #100 from msimerson/qpsmtpd.t
...
Adds tests for Qpsmtpd and new Qpsmtpd::Config
2014-09-15 16:48:25 -05:00
Matt Simerson
0b38c21f40
auth_vpopmail_sql: wrap DB connect attempt in eval
2014-09-15 14:36:09 -07:00
Matt Simerson
7396dbbf5f
more tests for Qpsmtpd.pm
2014-09-15 11:53:28 -07:00
flimzy
43eb6381fe
Merge pull request #99 from msimerson/earlytalker
...
Cleanups and style changes.
2014-09-15 11:42:28 -05:00
Matt Simerson
bc72969891
Merge pull request #2 from flimzy/earlytalker
...
Update POD to reflect proper ->notes() calling convention.
2014-09-15 09:34:47 -07:00
Jonathan Hall
921139e0ca
Update POD to reflect proper ->notes() calling convention.
2014-09-15 11:04:14 -05:00
Matt Simerson
b114e051c7
earlytalker: corrected POD note name
2014-09-13 17:08:12 -07:00
Matt Simerson
6cc5f78826
added POD for earlytalker_wait
2014-09-12 13:54:37 -07:00
Matt Simerson
a53c692c7b
earlytalker: check connection note for wait length
...
Issue #58
reputation databases can set $connection->notes(earlytalker_wait)
2014-09-12 13:32:08 -07:00
Matt Simerson
8935c5aa77
Merge pull request #74 from smtpd/perl5.8
...
test on perl 5.8 & 5.18
2014-09-12 09:59:12 -07:00
Matt Simerson
8a9ce1b1b3
Merge pull request #72 from smtpd/credits
...
updated CREDITS
2014-09-12 09:58:18 -07:00
Matt Simerson
96ff5746bd
early: minor style tweaks
2014-09-12 09:53:41 -07:00
Matt Simerson
2cc57f6db3
Merge pull request #95 from msimerson/helo
...
helo: make NXDOMAIN time out faster
2014-09-12 01:06:21 -07:00
Matt Simerson
7676a213cf
Merge pull request #98 from jaredj/silence-test-warning
...
Replace warning with slightly better testing
2014-09-11 23:29:57 -07:00
Jared Johnson
cc25532593
Replace warning with slightly better testing
...
Testing LOGWARN was generating a real warning that polluted test output.
Instead, let's catch the warning and test that it actually happens.
2014-09-12 01:23:09 -05:00
Matt Simerson
ca96ddf4eb
added Utils->is_valid_ip, IPv6 ready
...
resolves Issue #82
2014-09-11 13:34:32 -07:00
Matt Simerson
5960cb4d87
helo: make NXDOMAIN time out faster
2014-09-11 11:37:46 -07:00
Jared Johnson
bf2cfcf4e3
Merge pull request #92 from msimerson/master
...
tests for Qpsmtpd/SMTP
2014-09-11 13:18:03 -05:00
Jared Johnson
f15a38dfe3
Merge pull request #94 from msimerson/rpm-version
...
add test to assure RPM VERSION is up-to-date (#80 )
2014-09-11 13:00:25 -05:00
Matt Simerson
847db53e0d
updated fault test in qpsmtpd-smtp.t
2014-09-11 10:53:09 -07:00