CPopProxyMT is a multi-threaded POP3 proxy server class that is a skeleton
for you to work on and modify to suite your own purposes. In its bare condition, it is
a simple POP3 proxy that can be installed and run on any Windows machine.
Obviously some of you might have further uses for it, in which case you can
expand on the class - for example you might want to filter out certain mails or
you might want to log every mail that's received.
static DWORD ServerThread(DWORD arg);
static char* MakeCaps(char* str);
int StartProxy(int port);
static DWORD ClientThread(DWORD arg);
void StartClientThread(SOCKET sock);
static void StartDataThread(DWORD parm);
static DWORD DataThread(DWORD parm);
SetDlgItemText(hwnd,IDC_EDIT1,"POP Proxy stopped");
SetDlgItemText(hwnd,IDC_EDIT1,"POP Proxy running");
- Multi-threaded (any number of POP clients can connect)
- No MFC required
POP client configuration
- POP3 server - This should be the domain name or IP address of your
POP3 proxy server
- Username - This should be the format :- username/POP3 server
- Password - Your POP3 password
A sample configuration is shown below for Outlook Express 6
Well I wouldn't have written this class if not for Colin Davies who had asked
me whether I'd mind writing such a class for him (he is a man with the most
amazing ideas and I reckon this one is for one such idea of his). Thanks Colin,
this one is for you :-)
- October 10th 2002 - Although most of the code was written somewhere in
mid-2001, this class was written only on 10-10-02
Nish is a real nice guy who has been writing code since 1990 when he first got his hands on an 8088 with 640 KB RAM. Originally from sunny Trivandrum in India, he has been living in various places over the past few years and often thinks it’s time he settled down somewhere.
Nish has been a Microsoft Visual C++ MVP since October, 2002 - awfully nice of Microsoft, he thinks. He maintains an MVP tips and tricks web site - www.voidnish.com
where you can find a consolidated list of his articles, writings and ideas on VC++, MFC, .NET and C++/CLI. Oh, and you might want to check out his blog on C++/CLI, MFC, .NET and a lot of other stuff - blog.voidnish.com
Nish loves reading Science Fiction, P G Wodehouse and Agatha Christie, and also fancies himself to be a decent writer of sorts. He has authored a romantic comedy Summer Love and Some more Cricket
as well as a programming book – Extending MFC applications with the .NET Framework
Nish's latest book C++/CLI in Action
published by Manning Publications is now available for purchase. You can read more about the book on his blog.
Despite his wife's attempts to get him into cooking, his best effort so far has been a badly done omelette. Some day, he hopes to be a good cook, and to cook a tasty dinner for his wife.