Does anyone know a module that can be used to write a before-queue, smtpd time milter with Python 3?
Unfortunately, pymilter does not work with Python 3: Downloading https://pypi.python.org/packages/58/2f/d4799c9cade461177955ca19ade6ca55385286f066c0db9a0770a332ab8a/pymilter-1.0.tar.gz#md5=ec9b95fed2bc083d5f6a801bc150c253 Processing pymilter-1.0.tar.gz Writing /tmp/easy_install-_eqt8c9r/pymilter-1.0/setup.cfg Running pymilter-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_eqt8c9r/pymilter-1.0/egg-dist-tmp-o1n6sd1x miltermodule.c:349:1: error: unknown type name 'staticforward' staticforward struct smfiDesc description; /* forward declaration */ ^ miltermodule.c:349:15: error: expected identifier or '(' staticforward struct smfiDesc description; /* forward declaration */ ^ miltermodule.c:361:1: error: unknown type name 'staticforward' staticforward PyTypeObject milter_ContextType; ^ miltermodule.c:361:27: error: expected ';' after top level declarator staticforward PyTypeObject milter_ContextType; ^ I have a complete program that works with email.Message messages, but I don't know how to use it with postfix. A workaround would be to construct the message from python2 + pymilter, and start a subprocess for the message processing, but that is obviously bad. Thanks, Laszlo -- https://mail.python.org/mailman/listinfo/python-list