File: README.Debian

package info (click to toggle)
python-libgmail 0.0.8%2Bcvs20050208-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 172 kB
  • ctags: 412
  • sloc: python: 1,503; sh: 37; makefile: 13
file content (32 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
python-libgmail for Debian
--------------------------

The functionality of the package is largely the same as that of the upstream
source. I am treating libgmail.py as a module though, so in order to use it
interactively, do the following:

$ python
[...]
>>> import libgmail
>>> libgmail.main()
[...]

Other than that, the example code works as expected:

  import libgmail

  ga = libgmail.GmailAccount("google@gmail.com", "mymailismypass")
  ga.login()
  folder = ga.getMessagesByFolder('inbox')

  for thread in folder:
    print thread.id, len(thread), thread.subject
    for msg in thread:
      print "  ", msg.id, msg.number, msg.subject
      print msg.source

The demos are in /usr/share/doc/python-libgmail/examples.

Have fun.

 -- martin f. krafft <madduck@debian.org>, Wed, 29 Sep 2004 17:39:11 +0200