Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Get unread mails in gmail inbox using C#
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lauren  
View profile  
 More options Nov 9 2009, 8:59 am
From: Lauren <lauren.kru...@gmail.com>
Date: Mon, 9 Nov 2009 05:59:48 -0800 (PST)
Local: Mon, Nov 9 2009 8:59 am
Subject: Get unread mails in gmail inbox using C#
Hi,

I need to get the number of unread mails from my gmail inbox and loop
through these messages and extract the body.

I have managed to get most of the code working, however I am
struggling with getting the number of messages.
I can connect, but can only get one message at a time, whereas I need
it to loop through all the unread messages.

I'm using C#.

Any help would be appreciated.

Lauren


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie Fraser  
View profile  
 More options Nov 9 2009, 10:08 am
From: Jamie Fraser <jamie.fra...@gmail.com>
Date: Mon, 9 Nov 2009 15:08:46 +0000
Local: Mon, Nov 9 2009 10:08 am
Subject: Re: [DotNetDevelopment] Get unread mails in gmail inbox using C#

Post a code sample please - we have no idea what libraries you are using and
therefore cannot advise.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Fry  
View profile  
 More options Nov 9 2009, 10:11 am
From: Mike Fry <mike...@iafrica.com>
Date: Mon, 09 Nov 2009 17:11:45 +0200
Local: Mon, Nov 9 2009 10:11 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

Jamie Fraser wrote:
> Post a code sample please - we have no idea what libraries you are using
> and therefore cannot advise.

Also, are you familiar with the POP protocol?

--
Best regards,
Mike Fry
Johannesburg.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Fry  
View profile  
 More options Nov 10 2009, 3:56 am
From: Mike Fry <mike...@iafrica.com>
Date: Tue, 10 Nov 2009 10:56:13 +0200
Local: Tues, Nov 10 2009 3:56 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

Lauren wrote:
> I'm currently at a loss on how to proceed from here. I've tried using
> the LIST command, but it returns message ID's and the size of the
> mails, which is not what I'm looking for. Is there another command I
> can use?

No wonder you're at a loss! POP is plain text not web based. Get yourself a
copy of RFC 1939 from the IETF.

--
Best regards,
Mike Fry
Johannesburg.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Nov 10 2009, 4:04 am
From: Processor Devil <processor.de...@gmail.com>
Date: Tue, 10 Nov 2009 10:04:55 +0100
Local: Tues, Nov 10 2009 4:04 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

why the RFC?
On internet is a lot of complete solutions (even in c#), she can look
through and see some practical example how it works

2009/11/10 Mike Fry <mike...@iafrica.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Fry  
View profile  
 More options Nov 10 2009, 4:23 am
From: Mike Fry <mike...@iafrica.com>
Date: Tue, 10 Nov 2009 11:23:34 +0200
Local: Tues, Nov 10 2009 4:23 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

Processor Devil wrote:
> why the RFC?
> On internet is a lot of complete solutions (even in c#), she can look
> through and see some practical example how it works

Give hand-outs and the hand will always be out. Teach a man to fish and he'll
feed himself.

--
Best regards,
Mike Fry
Johannesburg.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Nov 10 2009, 4:25 am
From: Processor Devil <processor.de...@gmail.com>
Date: Tue, 10 Nov 2009 10:25:55 +0100
Local: Tues, Nov 10 2009 4:25 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

I just wanted to say... she doesn't need to learn the complete POP protocol
if she can search specific things she wants using google ;-)

2009/11/10 Mike Fry <mike...@iafrica.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cerebrus  
View profile  
 More options Nov 10 2009, 11:45 am
From: Cerebrus <zorg...@sify.com>
Date: Tue, 10 Nov 2009 08:45:45 -0800 (PST)
Local: Tues, Nov 10 2009 11:45 am
Subject: Re: Get unread mails in gmail inbox using C#
The OP is apparently female. That adage does not stand for women !

Correction: "... Teach a woman to fish and she'll feed the whole
neighbourhood."

:P

On Nov 10, 2:23 pm, Mike Fry <mike...@iafrica.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benj Nunez  
View profile  
 More options Nov 10 2009, 7:39 pm
From: Benj Nunez <benjnu...@gmail.com>
Date: Tue, 10 Nov 2009 16:39:30 -0800 (PST)
Local: Tues, Nov 10 2009 7:39 pm
Subject: Re: Get unread mails in gmail inbox using C#
I think the correct quote is:

"Give a Man a Fish, Feed Him For a Day. Teach a Man to Fish, Feed Him
For a Lifetime" --Lau Tzu

Source:

http://ezinearticles.com/?Lao-Tzu---Give-A-Man-A-Fish,-Feed-Him-For-A...

Cheers!

Benj

On Nov 11, 12:45 am, Cerebrus <zorg...@sify.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles A. Lopez  
View profile  
 More options Nov 10 2009, 10:50 pm
From: "Charles A. Lopez" <charlesalo...@gmail.com>
Date: Tue, 10 Nov 2009 22:50:27 -0500
Local: Tues, Nov 10 2009 10:50 pm
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

Go to the fish store. Buy the fish.

2009/11/10 Benj Nunez <benjnu...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lauren  
View profile  
 More options Nov 11 2009, 2:21 am
From: Lauren <lauren.kru...@gmail.com>
Date: Tue, 10 Nov 2009 23:21:10 -0800 (PST)
Local: Wed, Nov 11 2009 2:21 am
Subject: Re: Get unread mails in gmail inbox using C#
And strangely, this has not helped at all. By the way Mike, I'm not
looking for someone to write the code for me, I'm just wanting to be
pointed in the right direction.

On Nov 11, 5:50 am, "Charles A. Lopez" <charlesalo...@gmail.com>
wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Nov 11 2009, 3:46 am
From: Processor Devil <processor.de...@gmail.com>
Date: Wed, 11 Nov 2009 09:46:14 +0100
Local: Wed, Nov 11 2009 3:46 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

ok, here is "your strategy":
So you want to read all unread files on gmail using .NET.
OK. If you want to do it, you need to set up your gmail account to provide
you pop3 (can be found in account settings)
Next step is you need to learn something about POP3, I would recommend you
to go to www.answers.com/POP3
Some good points can be found there. Actually, I have been using Answers.com
for ages and it always provided my some usefull stuff :)
Ok, so if you did it correctly now you know that POP3 resides on port 110
and it is simple SMTP-like protocol... Communication runs via socket and you
send text request and obtain text response (text parsing skills will be ok
for sure).

Now we will try our old friend google.
I used keywords
POP3 commands
and these two links were in the top:
http://www.yuki-onna.co.uk/email/pop.html (reading e-mails using telnet)
http://www.good-stuff.co.uk/useful/pop3.php (some pop3 commands)

and maybe this will be useful to you as well
http://techhelp.santovec.us/pop3telnet.htm (similar like the first link).

So, what you need for programming this:
Knowledge of sockets, parsing text and not too lazy fingers while using
Google. HAWK

2009/11/11 Lauren <lauren.kru...@gmail.com>


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Fry  
View profile  
 More options Nov 11 2009, 4:30 am
From: Mike Fry <mike...@iafrica.com>
Date: Wed, 11 Nov 2009 11:30:58 +0200
Local: Wed, Nov 11 2009 4:30 am
Subject: Re: [DotNetDevelopment] Re: Get unread mails in gmail inbox using C#

Benj Nunez wrote:
> I think the correct quote is:

> "Give a Man a Fish, Feed Him For a Day. Teach a Man to Fish, Feed Him
> For a Lifetime" --Lau Tzu

I was paraphrasing :-)

--
Best regards,
Mike Fry
Johannesburg.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lauren  
View profile  
 More options Nov 11 2009, 4:49 am
From: Lauren <lauren.kru...@gmail.com>
Date: Wed, 11 Nov 2009 01:49:22 -0800 (PST)
Local: Wed, Nov 11 2009 4:49 am
Subject: Re: Get unread mails in gmail inbox using C#
Thanks so much for the help. I'll check it out now.

On Nov 11, 10:46 am, Processor Devil <processor.de...@gmail.com>
wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ThanderMaX  
View profile  
 More options Nov 11 2009, 1:48 pm
From: ThanderMaX <aniruddha....@gmail.com>
Date: Wed, 11 Nov 2009 10:48:06 -0800 (PST)
Local: Wed, Nov 11 2009 1:48 pm
Subject: Re: Get unread mails in gmail inbox using C#
Working with GMAIL in POP3 is in total mess ... even good'ld outlook
hangs !

Now google is also  recommending IMAP. Atleast it can fetch message
header fast. Skimming message in gmail POP3 will kick u out as it is
bandwidth intensive for google.

On Nov 11, 2:49 pm, Lauren <lauren.kru...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google