1

Is it possible to get all of my emails from your GMail inbox rather than only unread email? My current PHP script only gets unread email but I want the whole inbox.

I am making use of PHP and CURL. Firstly, is it possible to do this?

If so, can someone give me some hints on how to achieve this?

GEOCHET
  • 21,119
  • 15
  • 74
  • 98
Abs
  • 56,052
  • 101
  • 275
  • 409

2 Answers2

3

Use an IMAP API.

See: Fetching attachments from gmail via either python or php

Community
  • 1
  • 1
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
0

you might also check out ryan grove's larch project:

http://wonko.com/post/larch-syncs-messages-from-one-imap-server-to-another

it's made to sync imap accounts, but will give you an idea of how to use imap with ruby. (similar in other languages.)

jhofman
  • 568
  • 1
  • 7
  • 15