1

I am trying to make a program on my computer at home that will constantly check a certain gmail address; The purpose being the only email this address receives is from me.

I would just like to be able to

  1. Check for mail
  2. Download mail (presumably to a string, though a file is acceptable), and
  3. Delete the mail from the web server but keep it on my computer.

That is all I need to know right now, however my long term goal is to set up kind of a remote terminal over email, so that wherever I have email I have a certain amount of control over my computer.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Matthew Downey
  • 259
  • 1
  • 6
  • 10

2 Answers2

2

As Gabi points out, you should check out libgmail. You might also want to check out twisted python. They have some powerful modules for SMTP, POP3, IMAP, and many more that have nothing to do with email.

kelloti
  • 8,705
  • 5
  • 46
  • 82
1

If you want to write a program to just process incoming e-mail, take a look at Pythomnic framework: http://www.pythomnic3k.org/