From cr at sys4.de Sun Jul 13 04:59:51 2014 From: cr at sys4.de (=?iso-8859-1?Q?Christian_R=F6=DFner?=) Date: Sun, 13 Jul 2014 10:59:51 +0200 Subject: [Pymilter] pymilter current state Message-ID: <7C5E52E1-48D5-4EE9-866E-8548609D04A3@sys4.de> Hi, this is my first post to this mailing list. I love to use pymilter for writing milters for Postfix. My primary questions are: - is pymilter still actively developed? - is pymilter running under Python >3.x? - If not running under 3.x, how difficult could it be to port it? Is it possible to use 2to3 in some way? Thanks in advance Kind regards -Christian R??ner -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 495 bytes Desc: Message signed with OpenPGP using GPGMail URL: From stuart at bmsi.com Mon Jul 14 13:14:21 2014 From: stuart at bmsi.com (Stuart D Gathman) Date: Mon, 14 Jul 2014 13:14:21 -0400 Subject: [Pymilter] pymilter current state In-Reply-To: <7C5E52E1-48D5-4EE9-866E-8548609D04A3@sys4.de> References: <7C5E52E1-48D5-4EE9-866E-8548609D04A3@sys4.de> Message-ID: <53C41006.7050705@bmsi.com> On 07/13/2014 04:59 AM, Christian R??ner wrote: > this is my first post to this mailing list. I love to use pymilter for writing milters for Postfix. > > My primary questions are: > > - is pymilter still actively developed? Yes, pymilter is still actively maintained. I use it in production. I am the maintainer for pymilter. The other modules used with pymilter, like pyspf, pydkim, authres, etc have their own projects. > > - is pymilter running under Python >3.x? > - If not running under 3.x, how difficult could it be to port it? Is it possible to use 2to3 in some way? > I have ported the C module (import milter) to python3. I haven't had time to work on the python code. 2to3 might work. I don't use python3 in production, so I haven't messed with it much. Perhaps spfmilter on python3 would be a reasonable starting project. From cr at sys4.de Mon Jul 14 17:56:55 2014 From: cr at sys4.de (=?iso-8859-1?Q?Christian_R=F6=DFner?=) Date: Mon, 14 Jul 2014 23:56:55 +0200 Subject: [Pymilter] pymilter current state In-Reply-To: <53C41006.7050705@bmsi.com> References: <7C5E52E1-48D5-4EE9-866E-8548609D04A3@sys4.de> <53C41006.7050705@bmsi.com> Message-ID: Am 14.07.2014 um 19:14 schrieb Stuart D Gathman : > On 07/13/2014 04:59 AM, Christian R??ner wrote: >> this is my first post to this mailing list. I love to use pymilter for writing milters for Postfix. >> >> My primary questions are: >> >> - is pymilter still actively developed? > Yes, pymilter is still actively maintained. I use it in production. I am the maintainer for pymilter. The other modules used with pymilter, like pyspf, pydkim, authres, etc have their own projects. That?s really great to hear :) I am developing all milters on top of pymilter. I also had a closer look at ppymilter and pypymilter, but the pure python versions all have minor things, I don?t like. For example bringing all kinds of factories. I love the threaded version of pymilter :) >> >> - is pymilter running under Python >3.x? >> - If not running under 3.x, how difficult could it be to port it? Is it possible to use 2to3 in some way? >> > I have ported the C module (import milter) to python3. I haven't had time to work on the python code. 2to3 might work. I don't use python3 in production, so I haven't messed with it much. Perhaps spfmilter on python3 would be a reasonable starting project. I am asking for Python3, because I realize that all kinds of modules are still not ported to 3.x and I wonder why, because many new modules are included in std lib in newer Python. For example IP address support will be part of 3.4 (I believe). python-ldap, pycopg and mysqldb and all that stuff needs to be ported to Python3 and I try to ask, if people would like to port there great code to new versions of Python :) (maybe some of my examples might have been ported in the meantime; I don?t check this too much often). I am also developing Python stuff (www.automx.org) and I am still very new to Python. Kind regards -Christian R??ner -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstra?e 15, 81669 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 495 bytes Desc: Message signed with OpenPGP using GPGMail URL: From stuart at bmsi.com Mon Jul 14 18:03:24 2014 From: stuart at bmsi.com (Stuart D Gathman) Date: Mon, 14 Jul 2014 18:03:24 -0400 Subject: [Pymilter] pymilter current state In-Reply-To: References: <7C5E52E1-48D5-4EE9-866E-8548609D04A3@sys4.de> <53C41006.7050705@bmsi.com> Message-ID: <53C453C5.5000206@bmsi.com> On 07/14/2014 05:56 PM, Christian R??ner wrote: > I am asking for Python3, because I realize that all kinds of modules > are still not ported to 3.x and I wonder why, because many new modules > are included in std lib in newer Python. For example IP address > support will be part of 3.4 (I believe). In Python 2.x, the ipaddr module (notice different spelling than ipaddress for python3) provides the same support. For code (like pyspf) that runs in both 2 and 3, you can do this: try: # Python standard library as of python3.3 import ipaddress except ImportError: try: import ipaddr as ipaddress except ImportError: print('ipaddr module required: http://code.google.com/p/ipaddr-py/') -------------- next part -------------- An HTML attachment was scrubbed... URL: