[z3-five] MailHosts as utilities
Philipp von Weitershausen
philipp at weitershausen.de
Tue Jan 9 14:59:54 CET 2007
On 9 Jan 2007, at 09:21 , Chris Withers wrote:
> Philipp von Weitershausen wrote:
>> Andreas Jung wrote:
>>>> On 12/7/06, Chris Withers <chris at simplistix.co.uk> wrote:
>>>>> Anyone done any work on writing an interface for MailHost-like
>>>>> things
>>>>> and then getting MailHost, MaildropHost, SecureMailHost and
>>>>> friends to
>>>>> implement the interface and be registered as local utilities?
>>>> I think Zope3 actually may have some stuff like that. CPSMailAccess
>>>> uses it, I think.
>>> zope.sendmail?
>> Yes, zope.sendmail (previously known as zope.app.mail) works fine
>> on Zope 2. I would suggest using this one.
>
> This is kind of missing my point. There's currently MailHost,
> MaildropHost and one or two others that provide useful mailing
> functionality.
>
> However, selecting from available options is hard because you have
> to pass all the possible meta_types to superValues.
>
> It's to avoid this problem that I'd like to find a way to move
> mailing in Zope 2 to something interface-based, not because I want
> to use another implementation...
I see. Well, it'd be useful, for starters, to implement a common
IMailHost interface that is shared among those different
implementations. They could then be registered as local persistent
utilities for IMailHost.
More information about the z3-five
mailing list