Re: [Mailman-Developers] Python 3

On Dec 26, 2014, at 11:02 PM, Aurelien Bompard wrote:
Cool, let me see what I can whip up.
LMTP might be a very interesting way to do it. The core's LMTP server is actually a relatively thin layer over the stdlib's smtpd library, and not much really had to be changed in the Py3 port (IIRC, the error status messages changed from bytes to strs, but that should be relatively easy to straddle via the six package).
The relevant API is IArchiver.archive_message() which takes an mlist and a msg, since that's the API that sends the message to the archiver. .permalink() would be implemented in the core. It looks like HK/KS just needs the fqdn listname of the destination list, plus the message. The latter would be available over LMTP of course, and while the list name could usually be dug out of the message headers, it would probably be best to provide it in a special Mailman header.
The alternative of course is adding a REST API to HK, but that seems a little heavier weight for what would probably be just one API (for now anyway). What do you think?
Cheers, -Barry
participants (1)
-
Barry Warsaw