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.
On Mon, Nov 9, 2009 at 1:59 PM, Lauren <lauren.kru...@gmail.com> wrote:
> 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.
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.
> 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.
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.
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:
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).
> 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: > > Go to the fish store. Buy the fish.
> 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 towww.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).
> > 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:
> > > Go to the fish store. Buy the fish.
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:
> 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:
> > 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 towww.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).
> > > 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:
> > > > Go to the fish store. Buy the fish.
> > > > > On Nov 11, 12:45 am, Cerebrus <zorg...@sify.com> wrote:
> > > > > > 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:
> > > > > > > Give hand-outs and the hand will always be out. Teach a man to fish
> > > and
> > > > > he'll
> > > > > > > feed himself.- Hide quoted text -