-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generating a Lua script using Python is too much fragile complexity. We can just do everything from Python.
- Loading branch information
1 parent
b3484db
commit e6e66a7
Showing
3 changed files
with
101 additions
and
210 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.
e6e66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
On my system the libmilter module (python-pymilter) is called
milter
, notlibmilter
. Islibmilter
working for you? If so, which module do you have installed please?Also, the tests don't pass on my system currently.
Thank you for your work on this!
e6e66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lquidfire You don't need
pymilter
(or evenpython-libmilter
), you needlibmilter
from https://github.com/flowerysong/python-libmilter. (Yes, this is a confusing naming situation, which is one reason I haven't considered uploading the package to PyPI; I want to see if I can come up with a better name.) As is done in Actions, you can install this locally usingpip install git+https://github.com/flowerysong/python-libmilter#egg=libmilter
.Like the C
libmilter
, most of the existing Python implementations focus on the milter side of the protocol. I found an old one that implemented both and updated it for modern Python and milter protocol v6.e6e66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @flowerysong, I was just about to write that I had found out about your library (based on Chris Siebenmann's!). I hope you will publish it, and give it a release or tag on GitHub (that makes it easier to write a PKGBUILD for Archlinux).
I now have 10 failed and 2 passed tests. I will have to open a GitHub Issue about those, to find out what I am missing.
e6e66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libmilter
is now namedmiltertest
and released on PyPI.94dbbc2ef9d8b32f8d0e03df94c081d380863c3a is now required in order for tests to pass.e6e66a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thank you so much! Both your openarc and miltertest are available on AUR for Archlinux, and build fine.
P.S.: The issues with not passing tests that I had was related to my building on a tmpfs in RAM - no issues on disk with different permissions.