Okay, I've written an email adapter, and I feel like it should work, but I just can't get it to work right... maybe someone with more MTA experience can tell me what I'm doing wrong... I think that's where I'm messing it up.
The code is located at: http://www.colorstudy.net/software/webware/email-0.0.tar.gz My understanding of how this should work is that you set up in /etc/aliases a line like: webwareauto: |/path/to/WebKitEmail /Path/To/Servlet Or put "|/path/to/WebKitEmail /Path/To/Servlet" in ~webwareauto/.forward (no quotes, of course) Then I'm assuming /path/to/WebKitEmail is run (and it has a #!/usr/bin/env python at the top, and is chmod a+x), and stdin is the email, headers and all. No output is expected of it. That's how I understand it. I can run the adapter from the command line like this and it works. But I haven't gotten it to work otherwise. The code isn't packaged or documented (at all), but it is fairly simple. It creates a fake web request, kind of using the hooks XMLRPC uses (it says the body is text/xml, though message/rfc822 is the actual format). It would be better, of course, to have a seperate subclass of Request (EmailRequest) -- actually, XMLRPC should be an XMLRPCRequest and not just HTTPRequest, but this is expedient and doesn't require changes anything else in Webware. If I can actually figure out how to test it I'll document it more. Ian _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
