Hack Forums
[.NET] [SOURCE] Gmail Parser - Read your emails on Gmail through POP3 protocol [OpenPop] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [SOURCE] Gmail Parser - Read your emails on Gmail through POP3 protocol [OpenPop] (/showthread.php?tid=3474673)

Pages: Pages 1 2 3 4 5


* - Gr0wlit - May 12, 2013

(May 12, 2013 12:46 PM)CodeMagic Wrote:  I tired changing your gmail pop to the hotmail one and it wouldn't work that's why I asked and I get a value of type 'Openpop.Mime.message' cannot be converted to system.windows.forms.message using visual basic 2008 what should I do??

message = client.GetMessage(i)

I've only replaced pop.gmail.com with pop3.live.com and all works good for me..


* - Delete Me - May 12, 2013

Nice share. Thanks for givings us the source code, very informative.


* - Gr0wlit - May 13, 2013

(May 12, 2013 03:27 PM)SP4M Wrote:  Nice share. Thanks for givings us the source code, very informative.

Happy to see that you like it and that this can be useful


* - SIM-62706 - May 13, 2013

nice work man! :)
thanks for sharing! :)


* - ident - May 13, 2013

I know we can get excited using Lamdba Expressions but they should not replace logical thinking. While we talk about logical thinking lets examine multi threading here.

Example.

[Image: 13d949903e4bce618fb22a4056fb5b72.png]

From the UI thread we create a secondary thread. Jump back to the UI thread. Then back to the secondary thread. What logic? There is no need for the variable to be global also.

[Image: 1af8b3506667de57d20c04602b84cab2.png]

Does it matter? Well it very much could effect performance in rare cases. The marshaling call is pretty heavy when invoke is called from the private method in the controls class.

Back to my comment I know we can get excited using Lamdba Expressions. You are marshalling Two calls One after the other. Surely you can see the logic if we know we need to update multiple controls it makes sense to marshal them both together?

Finally remember Invoke is synchronous. The secondary thread will pause until it has finished invoking. BeginInvoke would be more appropriate here since it is asynchronous so the secondary thread will resume.


* - Gr0wlit - May 13, 2013

(May 13, 2013 10:51 AM)ident Wrote:  I know we can get excited using Lamdba Expressions but they should not replace logical thinking. While we talk about logical thinking lets examine multi threading here.

Example.

From the UI thread we create a secondary thread. Jump back to the UI thread. Then back to the secondary thread. What logic? There is no need for the variable to be global also.

Does it matter? Well it very much could effect performance in rare cases. The marshaling call is pretty heavy when invoke is called from the private method in the controls class.

Back to my comment I know we can get excited using Lamdba Expressions. You are marshalling Two calls One after the other. Surely you can see the logic if we know we need to update multiple controls it makes sense to marshal them both together?

Finally remember Invoke is synchronous. The secondary thread will pause until it has finished invoking. BeginInvoke would be more appropriate here since it is asynchronous so the secondary thread will resume.

I missed your comments, ident. Anyway, the invoke of the clearing of the listview and the invoke of the 2 textboxes are in the wrong place, i know, i just added it fastly and i haven't seen that they were in the wrong place.


* - shock_y0 - May 13, 2013

Can someone make a example to only show unread emails?
i only found this: http://hpop.sourceforge.net/exampleDownloadUnread.php


* - Cape - May 13, 2013

Nice work Gr0wlit keep up the good work.


* - TrackPro+ - May 13, 2013

What Windows Theme do you use?

' 25


* - RolandHaxor - May 14, 2013

Thank you for sharing, but it doesn't logs into my Account


* - Nicholai - May 14, 2013

Just another source from Gr0wlit, I can't say anything else than it's amazing ! :P


* - Gr0wlit - May 15, 2013

Thanks all for the good feedbacks, glad to see that you like it


* - ident - May 15, 2013

Glad you enjoyed the rare time i reply normally. Keep up the useful work & not flooding this section with garbage like many do.


* - Mr. Crowbar - May 15, 2013

looks pretty nice! thanks for sharing! :)


* - Helroos - May 15, 2013

Really nice, i already know how to use it ^^