|
i'm trying to write a prog that would sit between a client email program (outlook. etc) and the actual email server. it's something like a prog that would intercept all incoming and outgoing mails (POP3 and SMTP) for filtering purposes. i've search all over the web and i couldn't find anything that could help me get started.
so is there anyone who could at least guide me to somewhere so tat i could get started? maybe some code samples or maybe "how to" tutorials or anything.
is it possible if i were to create a prog that would "relay" communication between the email client end the email server? if that's possbible then how do i do it? i know how to go around with a web proxy and a ftp proxy but i just can't seem to figure out pop3 and smtp proxy. so if there's anyone who could help .. i would really appreciate it. i've practically search all over the web for this and i've havent found any yet. thanks
|
|
|
|
|
What you probably need to do is implement a program that provides a pop3 server locally on your computer, that your email client can connect to.
When your program gets a connection, it'll transparently connect itself to whatever the real mailserver is, and pass through any commands from the email client to the real server (and back again)
Once you've got this working, then you'll be able to add code that examines the incoming mail, and does whatever filtering you require.
Try searching google for "pop3 protocol" for lots of info on how pop3 works (and searching for pop3 here gets plenty of articles too)
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
my application consiste of a main form with main menu from this menu i open another forms with (ShowDialog) after closing this form i want to dispode and release the memory used by it , but using memory profiler i noticed that this child form still in memory because it is refrenced by a ThreadStart object
NOTE : i have disposed all member variables of this form and it is really released but how can i dispose thread or threadstart object
please help me
|
|
|
|
|
did u use the abort function to end the thread?
|
|
|
|
|
yes i use it but it does not work
|
|
|
|
|
With controls unless you're deriving your own you should not manually dispose resources. If you read the documentation for the Form.ShowDialog method, you should notice that you do need to dispose the form in order to dispose of its message pump. An easy way - even in case of an exception - use the using block statement:
using (MyForm form = new MyForm())
{
form.ShowDialog();
} If you don't dispose your object - which will dispose all its child objects that it knows about - when you use a modal dialog (using ShwDialog ), the unmanaged memory will not be released (which is why it's called unmanaged resources).
If you're having problems with threads, make sure that you're only updating controls (like setting the Text property or adding a ListViewItem to a ListView ) on the thread on which the control was created. See the InvokeRequired property and the Invoke method documentation in the .NET Framework SDK for more information and examples aobut how to use them.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi all,
I would like to program the following in Internet Explorer
by C# : add a menu item in the context menu when right click a selected text section in IE and perform some action when the menu item is selected. And how about the similar stuff for right clicking the image in IE ?
Is it related to the shell programming also ?
|
|
|
|
|
I answered a very similar question just the other day. You should make it a habbit of searching first. To search the forums on this site, you click "Search comments" at the top of the message board on each forum (which also lets you search additional forums at the same time).
Take a look at http://www.codeproject.com/script/comments/forums.asp?msg=943726&forumid=1649#xx943726xx[^], which includes other links to MSDN for more information.
As I mention in that thread, I recommend you don't use managed code for this as it adds a lot of overhead to the iexplore.exe (or whatever process hosts the WebBrowser control) in terms of memory and other system resources.
There's also articles here on CodeProject about writing WebBrowser extensions, both in unmanaged and managed code. Enter your search in the text box directly below the logo at the top of each page.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi all,
Is SyncML a current hot topic for development on mobile phone
or pocket pc ?
Is it a good tool for synchronization between pocket pc an desktop ?
thanks
Patrick
|
|
|
|
|
If you have questions about specific products you should first ask the authors of that product. See http://www.syncml.com[^], which has a link at the top of the page, Contact OMA[^].
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
I would like to use DPAPI - Data Protection Application Programming Interface to write a Pocket PC application. But does .NET CF have DPAPI?
If not (so unlucky), what can I use?
Thx
|
|
|
|
|
The .NET Framework doesn't encapsulate DPAPI at all. You have to P/Invoke the necessary calls yourself. Read How To Create a DPAPI Library[^].
The Data Protection APIs are supported under Windows CE .NET 4.2 (PocketPC 2003). Windows CE 3.0 does not the DPAPI APIs documented and probably doesn't support it.
Even on PocketPC 2003 (which is actually named "Windows Mobile for PocketPC 2003") you may run into problems because not all of the System.Runtime.InteropServices namespace members are supported. Be sure to view the supported platforms while reading through the System.Runtime.InteropServices documentation in the .NET Framework SDK.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hi,
I need to print in Windows98 using Star printer - SP200, which is not capable of graphical printing (can't use DrawString()).
I've tried the code in
<www.c-sharpcorner.com code="" 2002="" oct="" printdirect.aspect.asp="">
changed the left margin (the paper width is 3 inches only) and the ip of printer to be the default printer name using <printersettings.printername> (not shared)
the result is the handle lhPrinter=0 and no response from the printer; nothing is written (pcWritten = 0) although the result of OpenPrinter is not 0.
I appreciate your help...
Sirwan
|
|
|
|
|
|
Hi Stefan,
Thanks for the help.
It looks very important article, but unfortunately I don't understand the language.
Is there any solution can be found in English please?
Thanx
Sirwan
|
|
|
|
|
Hi,
I want to print a report. The height of the report is dynamic.
When I print the report, after the end job, printer eject the last page more than I need. LQ300 eject paper as long az A4 size.
for example: I want to print one line, then the printer stop printing. If I need the paper I self cut it & use it.
I use a roll of paper, no A4 or A3.
I am using c#.
what must I do?
Thanks & Best regards
|
|
|
|
|
hiiii every body can any body help me with this problem
i am using a memory profiler to enhance my code
i discover that an object from (OleDBPermission) is creadted and not removed(disposed) even when i close the connection and Call ReleaseObjectPool what can i do else to release this object please help me
|
|
|
|
|
Permission objects are used by the Framework to protect users and machines and may be instantiated to authorize certain operations. Depending on how certain permissions objects are used, they may remain ni memory until the AppDomain is shutdown.
You should read about Code Access Security - an integral part of the .NET Framework - on MSDN. Read Code Access Security[^] in the .NET Framework SDK.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
|
Hi!Dear,
I just want to register in the website
www.c-sharpcorner.com. but after I filled in my email address and my nickname,it never sent password to my email box.I am my email address is correct.my email address is:libingmomer@163.com,passward is "libing". I dont know where is the problem.Maybe it treat my email address as a invalid one.
Now I prefer my honoured you can register a nickname and a password on this website for me to login.
Thanks!
|
|
|
|
|
What ever that is you are smoking I suggest you stop.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Hi!Colin Angus Mackay,
Maybe you are wrong.What I said is the truth.I had asked one of my friends to help me out of this matter.Maybe I have done something wrong here,but I was never intent to that.
Thanks!
momer
|
|
|
|
|
This is brilliant. It's definately made my day.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hi!Christian,
Nice to know you here.I think you must be a warmhearted person.But thanks to my friend,my problem have been worked out yesterday.
The codeproject is the most kindly one in all the website I have ever known.I love this codeproject and I love you!
momer
|
|
|
|
|
1. Why are you posting registration problems to another site here? Why not try to contact the owner of the site your having problems with?
2. Nice of you to post your account name and password for us to use! Like Colin asked... What the hell are you smoking?!
momer wrote:
I dont know where is the problem.
A short between the keyboard and ground, obviously...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|