This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello all ( im not sure this is the right form ,sorry) i need to write simple client that connects to the email server and will know when serten email massage is arriving , my question is how does the ordinary email clients works and know that email are arriving ? i have the code and every thing but i miss the way to how to implement this part . i dont know if the idea of connection every N seconds to the email server will be the right idea. does they check every N seconds the server or they have some of other method to do this?
Originally posted by Meir Yan: i dont know if the idea of connection every N seconds to the email server will be the right idea. does they check every N seconds the server or they have some of other method to do this?
That's exactly how they do it (it's called "pulling") - although it's probably a better idea to do it every couple of minutes instead of seconds. Most email clients allow you to configure the interval.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus