On Sat, Feb 05, 2000 at 02:09:09AM +0100, Gijs Reulen wrote:
Hello
I would like to use the Zope MailHost for receiving, processing and storing preformatted (maybe XML) email. Is that possible ? I cannot find any docs on the mailhost; where should I look ?
MailHost is only used to send mail, primarily with the <dtml-sendmail tag>. My suggestion to you would be to create a ZClass called MailMessage or something similar (you could inherit from XMLDocument or DTMLDocument) to store the mail messages in ZODB and then use a python script invoked via .procmailrc to actually upload the messages to Zope. I've attached a python script I've got that uploads a directory of JPEGs as Photo objects. You might find it useful as an example. If you are still interested in using <dtml-sendmail>, I've submitted a patch to Digital Creations that cleans up the MailHost code considerably. It should be in the next release of Zope, but if you are having trouble with the tag, I'd be glad to send you a copy of the patch. -- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org