The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 22, 2019, 11:46:11 PM

Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: libgmail or why i love linux and python and the internet  (Read 11117 times)
arms
Expert
****
Offline Offline

Posts: 235



View Profile
« on: May 13, 2008, 11:34:07 AM »

so i started coding something to download email from gmail, realizing someone has already done this before (panel gmail notifiers and such) did a search "python gmail" and found libgmail.
checked the repos and there it was. python-libgmail. it does everything. i just needed to download messages. awesome.
now i can spend the time that would have gone to coding posting this.

also found gmailfs. it's a python app for mounting a gmail account as a drive. been ported to mac and win i believe.
Logged
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #1 on: May 13, 2008, 12:25:01 PM »

I wish I knew me some python Sad
Logged

hai
dink
Expert
****
Offline Offline

Posts: 349


View Profile
« Reply #2 on: May 13, 2008, 12:55:45 PM »

Good catch arms. 

Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
arms
Expert
****
Offline Offline

Posts: 235



View Profile
« Reply #3 on: May 13, 2008, 02:15:49 PM »

I wish I knew me some python Sad
Code:
import libgmail

ga = libgmail.GmailAccount('emailaddress@gmail.com', 'password')
ga.login()
folder = ga.getMessagesByFolder('inbox')
for thread in folder:
    for msg in thread:
        print msg.subject
now you do. Smiley

from: "Learn Python In 10 Seconds"
Logged
hondaman
Rookie
**
Offline Offline

Posts: 11


View Profile
« Reply #4 on: May 13, 2008, 03:36:10 PM »

python, eh?  looks like oo php had a baby with basic and lost the semicolon
shouldnt be too hard to pick up...

I thought everyone here was afraid of gmail?
Logged

No links in signatures please
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« Reply #5 on: May 13, 2008, 03:50:42 PM »

Why don't u just download using pop3 ?
(that is really easy to do using python also Smiley)
Logged
arms
Expert
****
Offline Offline

Posts: 235



View Profile
« Reply #6 on: May 13, 2008, 04:50:56 PM »

was going to with poplib. started implementing it and was fucking with the object retrieved, trying to figure out what i need.
this was easier.

python, eh?  looks like oo php had a baby with basic and lost the semicolon
..
you mean oo php looks like python had a baby with perl but it turned out the father wasn't really python it was  :barf:asp.
Logged
hondaman
Rookie
**
Offline Offline

Posts: 11


View Profile
« Reply #7 on: May 13, 2008, 06:33:43 PM »

I know a lot of people that make a living writing programs in
spitting and gluing together programs they wrote in asp to keep
'em on the road

 ROFLMAO ROFLMAO ROFLMAO
Logged

No links in signatures please
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #8 on: May 14, 2008, 06:28:08 AM »

I thought everyone here was afraid of gmail?

So very false.

Loathing does not equate to fear.
Logged

hai
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« Reply #9 on: May 14, 2008, 07:49:55 AM »

i use google apps for domains Wink
i just finally decided that it really doesnt matter what a big faceless corp knows about me. They would find it out anyway. big deal if they can properly target me with ads. at least i never get a tampon ad.
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #10 on: May 14, 2008, 10:09:03 AM »

I get it but am just not there. My paranoia still runs hot about them.

There has been some discussion in my household about not sending paper checks for my bills any longer, but that will probably take about a decade for me to get comfy with.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« Reply #11 on: May 14, 2008, 10:19:55 AM »

lol.

well with banks, your data is probably already in the webaccess system, whether you use it or not, so why not actually "control" it by owning it?

also what really is google going to do with your bank account number? drain your account? The only thing I can see every happening is google getting subpoenaed to release all known information about you for an investigation. But that would happen piecemeal anyway with whatever services you use, so big deal. Now, mind you, if McCracker wins, im leaving the country and un-gridding myself until the apocalypse blows over.
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #12 on: May 14, 2008, 10:25:12 AM »

Heh ... I wasn't meaning giving G my account info, simply pointing out what a backwards ass paranoid fishstick I am.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #13 on: May 14, 2008, 12:50:14 PM »

...if McCracker wins...

Oh, he won't win.

He might become president though, like what's happened the last two elections, which would suck.
Logged

hai
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« Reply #14 on: May 14, 2008, 01:18:44 PM »

lol
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
Pages: [1] 2
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!