[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Adequate specification of the interface

  • From: "K.Kawaguchi" <ml@s...>
  • To: Michael Rossi <mrossi@c...>, xml-dev@x...
  • Date: Tue, 08 Feb 2000 11:58:16 +0900

pop3 specification

>    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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.