Barry de Graaff
599277855c
Update template.py ( #40 )
...
fixes `milter.error: cannot opensocket`
My name is NOT stuart
2021-07-14 08:37:24 -04:00
Stuart D. Gathman
e7592c6a96
Fix some test cases and bugs found on py3 bmsmilter install.
2021-01-09 21:49:13 -05:00
Stuart D. Gathman
7df236127b
Add sendmail style MTA policy query module
2020-07-04 22:29:28 -04:00
Stuart D. Gathman
1234869dd6
Add MTA policy module
2020-07-04 21:22:56 -04:00
Stuart D. Gathman
f37090371b
Milter.utils.parse_header returns string, other py3 fixes
2020-06-25 19:47:38 -04:00
Stuart D. Gathman
7ea839cfb1
Update docs for @decode callback.
2020-06-18 19:53:43 -04:00
Stuart D. Gathman
879e65bc31
bytes optimization
2020-06-18 16:40:54 -04:00
Stuart D. Gathman
4c7c76fca4
First cut at encoding error decorator
2020-06-17 13:55:26 -04:00
Stuart D. Gathman
132e8326b5
Consistently use surrogate escape by default.
2020-06-17 12:54:58 -04:00
Stuart D. Gathman
0efddd316a
Fix bug found by pysrs unit tests
2020-06-16 20:10:33 -04:00
Stuart D. Gathman
588153078b
New config test case with fix
2020-06-16 19:50:07 -04:00
Stuart D. Gathman
4ed12cf825
config test passes
2020-06-16 19:40:37 -04:00
Stuart D. Gathman
c098f9df6b
Test case for Milter.config (still failing)
2020-06-16 18:45:03 -04:00
Stuart D. Gathman
cdae26af47
More py3 fixes, switch to setuptools.
2020-06-12 16:51:38 -04:00
Stuart D. Gathman
bf3108b938
Fix doco nit from qzrrbz@github
2020-06-02 15:08:21 -04:00
Stuart D. Gathman
d5f9f86bba
Use utf-8 decoding with surrogateescape for invalid utf-8 for env and hdr val
2020-04-23 15:52:20 -04:00
Stuart D. Gathman
805825438c
Change __version__
2020-04-21 18:27:49 -04:00
Stuart D. Gathman
3844751ef0
Envelope and header values consistently decoded from utf-8. See RFC 8616.
2020-04-21 18:20:16 -04:00
Stuart D. Gathman
2b1b01c1ef
Decode header values as utf-8. Add header_bytes method which can be overridden.
2020-04-21 15:07:27 -04:00
John Vandenberg
222afcd555
setup.py: Update URL ( #36 )
...
good catch. A shame pythonhosted went away.
2020-01-27 10:25:28 -05:00
Stuart D. Gathman
4251fbc151
Work in python2 and python3
2019-08-27 22:29:38 -04:00
Stuart D. Gathman
4749f0ff98
Change header callback to bytes, but default Milter to convert
...
to str with surrogateescape.
2019-08-27 21:47:26 -04:00
Stuart D. Gathman
18186a3c11
Read header encoding tests as binary
2019-08-27 19:24:06 -04:00
Stuart D. Gathman
a01f598e37
Test case for invalid utf8 bytes in header.
2019-08-20 18:37:35 -04:00
Stuart D. Gathman
d0d45c5e61
ZipFile.setpassword() takes bytes in python3
2019-08-12 17:46:45 -04:00
Stuart D. Gathman
a1714f4838
Get denatured viruses from encrypted zip to avoid alarming scanners,
...
this allows test cases to pass again after last commit.
2019-08-10 20:34:03 -04:00
Stuart D. Gathman
edc2f73375
Store denatured viruses in encrypted zip, password "denatured".
...
This is for those complaining about signature scanners triggering on them.
2019-07-09 12:05:18 -04:00
Stuart D. Gathman
6373f8965b
Release 1.0.4
2019-04-19 10:32:09 -04:00
Stuart D. Gathman
10fdccf366
Release 1.0.4
pymilter-1.0.4
2019-04-17 19:07:50 -04:00
Stuart D. Gathman
7d097fa4a0
start.sh superceded by daemonize on EL6 and systemd elsewhere.
2019-04-17 17:25:06 -04:00
Stuart D. Gathman
ca81502c85
Remove milter.path no longer needed. Unified rpm spec.
2019-04-17 17:16:39 -04:00
Ralph Seichter
50356d4710
Fix for compilation error on macOS 10.14 (Mojave) ( #31 )
...
This change ensures that arpa/inet.h is included when building
miltermodule.c on macOS 10.14. See
https://github.com/sdgathman/pymilter/issues/30
Signed-off-by: Ralph Seichter <github@seichter.de >
2019-04-17 11:53:56 -04:00
dkg
ec3fa46799
Correctly document that body callback chunks are in bytes ( #28 )
...
https://github.com/sdgathman/pymilter/issues/12 says "Obviously, body
and replacebody are bytes" and milter_wrap_body in miltermodule.c
says:
arglist = Py_BuildValue("(Oy#)", c, bodyp, bodylen);
…
So pymilter should sport the correct documentation.
2019-02-22 15:54:01 -05:00
Stuart D. Gathman
04e0b15640
Import full path on py3
2019-02-22 15:54:01 -05:00
Stuart D. Gathman
ff6a07ef10
Misspelling - Scott Kitterman
2018-12-26 10:31:20 -05:00
Stuart D. Gathman
7dfda0a3bd
More #ifdef consolidation.
2018-12-24 18:20:26 -05:00
Pino Toscano
183ce91a61
Include arpa/inet.h on any GNU libc platform ( #24 )
...
This header is provided by GNU libc on any platform, so include it
unconditionally if __GLIBC__ is defined.
Fixes #23 .
2018-12-24 17:42:13 -05:00
Stuart D. Gathman
d30918aca7
Fix python3 unit tests
pymilter-1.0.3
2018-12-23 23:38:15 -05:00
Stuart D. Gathman
4e8fda517c
Fix getsymval for python3
2018-12-23 23:16:42 -05:00
Stuart D. Gathman
2194d8fd96
setsymlist not called yet in TestMilter
2018-12-23 23:03:46 -05:00
Stuart D. Gathman
52e1b4ae32
Move sys to top of mime.py
2018-12-23 22:31:20 -05:00
Stuart D. Gathman
55e5378659
Move py3 sgmllib to an internal module - Scott Kitterman
2018-12-23 20:29:01 -05:00
Stuart D. Gathman
f9b2241ec6
Improve readability of module init, setitem. Move old changes to ChangeLog
2018-12-23 20:00:24 -05:00
Stuart D. Gathman
62783fbbfd
Convert python3 patch for miltermodule.c to #ifdef - Scott Kitterman
2018-12-23 19:46:59 -05:00
Stuart D. Gathman
d521665f75
Working testctx, still need to redirect logging in testsample.py
2018-08-18 17:49:37 -04:00
Stuart D. Gathman
55eb05e526
Change deprecated failUnless to assertTrue
2018-08-05 00:34:06 -04:00
Stuart D. Gathman
fc008f6db0
Update documentation
2018-08-04 14:09:23 -04:00
Stuart D. Gathman
96cd9ac263
Request compile error on implicit function declarations to save lots
...
of debugging time.
2018-01-09 21:52:39 -05:00
jcea
10471faa7d
Correctly support IPv6 in Solaris ( #17 )
...
I can't see how adding one more OS to the manual list can hurt for now, so in goes the PR. Thanks.
2018-01-09 14:46:11 -05:00
Stuart D. Gathman
36750bac78
Fix some python3 syntax errors
2017-04-20 17:00:14 -04:00