Skip to main content

Framework for handling email in zope

Project description

Introduction

slc.mailrouter bridges the gap between zope and email. It is based on the same idea as products such as mailboxer: a script is invoked by your mail transfer agent (postfix, exim) and the body of the email is passed to this script on stdin. This is then communicated to zope using an http post, where it is parsed and handled.

slc.mailrouter implements a component model for the handling of emails. By itself it allows the user to send an email to a folder and have all attachments on the email stored in that folder. The folder can be addressed either by its UID, or by assigning a friendly alias to the folder in the plone control panel.

The MailToFolder router is implemented using an adapter pattern. If you want to change the way this works, Implement an adapter that adapts IFolderish and implements slc.mailrouter.interfaces.IMailImportAdapter. The add() method on this adapter receives the message as an argument and is responsible for persisting the contents of the message to the folder.

Additional mail routes can be implemented by other products by creating a utility and registering it under the interface slc.mailrouter.interfaces.IMailRouter. Such mail router utilities are called one after the other until one of them reports that the message was successfully delivered. In this way it mirrors the way exim's routers work.

Compatibility

Since version 4, slc.mailrouter is compatible with Plone 6.0 and Python 3.10+. The package switched to use PEP 420 namespace packages.

While version 3 claims to be compatible with Plone 5.2 and Python 3.7, you might have success running it with newer versions of Plone and Python, but this is not tested and not guaranteed.

Credits

Izak Burger isburger@gmail.com Manuel Reinhardt reinhardt@syslab.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slc_mailrouter-4.0.0a1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slc_mailrouter-4.0.0a1-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file slc_mailrouter-4.0.0a1.tar.gz.

File metadata

  • Download URL: slc_mailrouter-4.0.0a1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for slc_mailrouter-4.0.0a1.tar.gz
Algorithm Hash digest
SHA256 28909239003fe043a05079d524598905abdf4dc91a690d094b3a233b50d9326d
MD5 3606cddf3e5476b60bf6ea6b958b7feb
BLAKE2b-256 d005f75c64125d1638ba8db587176997ec0202d2358f8be8423353dedcadbd0f

See more details on using hashes here.

File details

Details for the file slc_mailrouter-4.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for slc_mailrouter-4.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1701eadca9a59575cdc3a56aa2530f71e56733330955f87926d7dad173e1a6b
MD5 5c6ef0fbf0d47f50b73d121401c9d242
BLAKE2b-256 5f4f3032643fc997c0ccf36957cec56ce03275a3e132ef76d8415a3c59051b17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page