<mail> <from>bob@mymail.com</from> <from-name>Bob</from-name> <to>customerservice@mycompany.com</to> <to-name/> <subject>I have a problem</subject> <body-text>...</body-text> </mail>Those are the minimum fields; we also want such functionality to handle multipart/alternative MIME formatting, and of course we want the ability handle attachments. At first, I thought it would also be a good idea to include some sort of template parser to allow formatted data submission via mail, or maybe a command language parser a la majordomo. But after a little thought, I realized that these should be handled by either repmgr or by the appropriate procdef after submission, as script or action invocations. That allows an installation to be built as flexibly as possible, and it keeps the complexity of the front-end mail handler down. Links to the pieces:
This code and documentation are released under the terms of the GNU license. They are copyright (c) 2002, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was prepared with LPML. Try literate programming. You'll like it. |