MailNode (0.5)
by
olena
—
last modified
2009-02-17
Released on 2008-08-27 by Pilot Systems for Plone 2.0, Plone 2.1, Plone 2.5, Plone 3.0, Plone 3.1 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
- MailNode download link: http://plone.org/products/mailnode/releases
- Homepage of MailNode: http://plone.org/products/mailnode/
- MailNode repository: https://svn.plone.org/svn/collective/Mailnode
- Description source: http://www.pilotsystems.net/contributions/plone-collective
Mailnode extends the basic Zope MailHost by adding some functionalities, like file attachements. It uses the MailHost configuration (by acquisition).
Introduction
Mailnode is a simple Zope item that provides :
- A python module that can send mails with file attachments
- Another python module that can check an error mailbox and notify the application if the sending goes wrong
Configuration
In the 'properties tab' of the zope Mailnode object :
- from_address : expeditor email address
- charset : character encoding
- pop_server, pop_username, pop_password : error mailbox informations
- error_callback : name of the function called on error (by acquisition)
Errors control
In a second time, Mailnode can check periodically an 'error' POP mailbox, to take care of the sending problems.
Concept :
- Periodically, an external program calls the 'check' method on the Mailnode Item, in Zope. (cron + wget)
- This method connects to the mailserver server and pops the error messages
- For every message, the msg-id is located by text analysis.
- The 'check' method triggers the method defined in the 'error_callback' properties, giving the msg-id as an argument.