[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Adequate specification of the interface
> I don't think it's just you. A dedicated system/service could undoubtedly I'm still wondering if such SMTP/POP3 components are worth implementing. Firstly, there's a good chance that such components have already made available by someone else. Secondly, I'm not still sure if it can receive some supports from other developers. > think you could meet a large majority of common requirements with an > adequate specification of how common transport protocols should be used. Implementing protocol-side code is not difficult, but when it comes to "adequate interface"... Ummm, it's no easy for one person to do. My impression is that many existing POP3 components (mainly commercial ones) are too much protocol-oriented; I mean, they have methods like connect, login, retrieve, delete, quit, ... I don't want to be bothered by those POP3 commands. Since what I want here is not general-purpose component but queue-like component, the interface could be much simpler. I don't need multipart mail support, nor decoding to appropriate character set (XMLparser will do the job). With these considerations in my mind, the interface should be like this: --- Oh, I don't know if it's OK to start things like this here. If it's not, please tell me so. dispinterface IPOP3Queue { properties: BSTR Server,PortOrService // connection stuff methods: IMessage* Pop(); }; dispinterface IMessage { properties: BSTR To,From,Subject,... // mail header stuff IXMLDOMDocument* BodyXML; // get contents as XMLDOM. methods: void Delete(); // deletes this message from the queue(server) }; client code should be as follows: while( m = POPQueue.Pop() ) { // do the processing if( succeeded ) m.Delete(); } ---------------------- K.Kawaguchi Swift,Inc. E-Mail:k-kawa@s...
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|