Re: [Semi-OT] Accessing gmail from Python

2010-05-09 Thread Andrei Popescu
On Fri,07.May.10, 15:49:27, Ron Johnson wrote:

 I just set up getmail do do this.
 That seemed a lot simpler than fetchmail withh the certificates.
 
 Maybe the certificates are already somewhere in /usr/share?

IIUC getmail doesn't check the certificates.

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: [Semi-OT] Accessing gmail from Python

2010-05-08 Thread Andrew Malcolmson
On Thu, May 6, 2010 at 4:34 PM, Jordan Metzmeier titan8...@gmail.com wrote:
 On Thu, May 6, 2010 at 4:14 PM, Ron Johnson ron.l.john...@cox.net wrote:
 Does anyone have an example of how to do this?  Google hasn't helped,
 specifically at telling me what the keyfile and certfile should be.

 Google *did*, though, help me with fetchmail, so now I have the relevant pem
 files.

Don't know about the method you're trying, and this may be total
overkill, but you can do anything with Google from Python using the
Python Client Library:

http://pypi.python.org/pypi/gdata/2.0.4

Here's a Getting Started Guide for using the library:

http://code.google.com/apis/gdata/articles/python_client_lib.html

Here's an overview of authorization to Google services:

http://code.google.com/apis/accounts/docs/GettingStarted.html


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktimoym4mwdnq3lpmmwplijwrrzbv2xthiav48...@mail.gmail.com



Re: [Semi-OT] Accessing gmail from Python

2010-05-08 Thread Andrew Malcolmson
Follow-up to my message above:  Sorry, I take it all back.  Looks like
Gmail is the one and only Google service that you can't access through
the GData API.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktiljhyteseuhkc_ojbxowtneouc9-pyeof5_c...@mail.gmail.com



Re: [Semi-OT] Accessing gmail from Python

2010-05-07 Thread Hugo Vanwoerkom

Ron Johnson wrote:
Does anyone have an example of how to do this?  Google hasn't helped, 
specifically at telling me what the keyfile and certfile should be.


Google *did*, though, help me with fetchmail, so now I have the relevant 
pem files.


$ dir .certs/
total 48
drwxr-xr-x   2 me me  4096 2010-05-06 15:13:16 ./
drwxr-xr-x 205 me me 36864 2010-05-06 15:10:01 ../
lrwxrwxrwx   1 me me 9 2010-05-06 11:11:20 34ceaf75.0 - gmail.pem
lrwxrwxrwx   1 me me11 2010-05-06 11:11:20 594f1775.0 - equifax.pem
-rw-r--r--   1 me me  1162 2009-05-04 18:56:06 equifax.pem
-rw-r--r--   1 me me  1224 2010-05-06 10:51:08 gmail.pem



I just set up getmail do do this.
That seemed a lot simpler than fetchmail withh the certificates.
Looking at the getmail source?

Hugo


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/hs1prb$53...@dough.gmane.org



Re: [Semi-OT] Accessing gmail from Python

2010-05-07 Thread Ron Johnson

On 05/07/2010 02:32 PM, Hugo Vanwoerkom wrote:

Ron Johnson wrote:

Does anyone have an example of how to do this? Google hasn't helped,
specifically at telling me what the keyfile and certfile should be.

Google *did*, though, help me with fetchmail, so now I have the
relevant pem files.

$ dir .certs/
total 48
drwxr-xr-x 2 me me 4096 2010-05-06 15:13:16 ./
drwxr-xr-x 205 me me 36864 2010-05-06 15:10:01 ../
lrwxrwxrwx 1 me me 9 2010-05-06 11:11:20 34ceaf75.0 - gmail.pem
lrwxrwxrwx 1 me me 11 2010-05-06 11:11:20 594f1775.0 - equifax.pem
-rw-r--r-- 1 me me 1162 2009-05-04 18:56:06 equifax.pem
-rw-r--r-- 1 me me 1224 2010-05-06 10:51:08 gmail.pem



I just set up getmail do do this.
That seemed a lot simpler than fetchmail withh the certificates.


Maybe the certificates are already somewhere in /usr/share?


Looking at the getmail source?



Since getmail is written in Python?  Good idea!

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4be47cd7.4030...@cox.net



[Semi-OT] Accessing gmail from Python

2010-05-06 Thread Ron Johnson
Does anyone have an example of how to do this?  Google hasn't 
helped, specifically at telling me what the keyfile and certfile 
should be.


Google *did*, though, help me with fetchmail, so now I have the 
relevant pem files.


$ dir .certs/
total 48
drwxr-xr-x   2 me me  4096 2010-05-06 15:13:16 ./
drwxr-xr-x 205 me me 36864 2010-05-06 15:10:01 ../
lrwxrwxrwx   1 me me 9 2010-05-06 11:11:20 34ceaf75.0 - gmail.pem
lrwxrwxrwx   1 me me11 2010-05-06 11:11:20 594f1775.0 - equifax.pem
-rw-r--r--   1 me me  1162 2009-05-04 18:56:06 equifax.pem
-rw-r--r--   1 me me  1224 2010-05-06 10:51:08 gmail.pem

--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4be3231e.5070...@cox.net



Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Jordan Metzmeier
On Thu, May 6, 2010 at 4:14 PM, Ron Johnson ron.l.john...@cox.net wrote:
 Does anyone have an example of how to do this?  Google hasn't helped,
 specifically at telling me what the keyfile and certfile should be.

 Google *did*, though, help me with fetchmail, so now I have the relevant pem
 files.

 $ dir .certs/
 total 48
 drwxr-xr-x   2 me me  4096 2010-05-06 15:13:16 ./
 drwxr-xr-x 205 me me 36864 2010-05-06 15:10:01 ../
 lrwxrwxrwx   1 me me     9 2010-05-06 11:11:20 34ceaf75.0 - gmail.pem
 lrwxrwxrwx   1 me me    11 2010-05-06 11:11:20 594f1775.0 - equifax.pem
 -rw-r--r--   1 me me  1162 2009-05-04 18:56:06 equifax.pem
 -rw-r--r--   1 me me  1224 2010-05-06 10:51:08 gmail.pem

 --

What is the purpose of this? You want to write your own MUA in python?

-- 
Jordan Metzmeier


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/k2g50e5edd51005061334s1148071hdda8f471a7bf8...@mail.gmail.com



Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Ron Johnson

On 05/06/2010 03:34 PM, Jordan Metzmeier wrote:

On Thu, May 6, 2010 at 4:14 PM, Ron Johnsonron.l.john...@cox.net  wrote:

Does anyone have an example of how to do this?  Google hasn't helped,
specifically at telling me what the keyfile and certfile should be.

Google *did*, though, help me with fetchmail, so now I have the relevant pem
files.

$ dir .certs/
total 48
drwxr-xr-x   2 me me  4096 2010-05-06 15:13:16 ./
drwxr-xr-x 205 me me 36864 2010-05-06 15:10:01 ../
lrwxrwxrwx   1 me me 9 2010-05-06 11:11:20 34ceaf75.0 -  gmail.pem
lrwxrwxrwx   1 me me11 2010-05-06 11:11:20 594f1775.0 -  equifax.pem
-rw-r--r--   1 me me  1162 2009-05-04 18:56:06 equifax.pem
-rw-r--r--   1 me me  1224 2010-05-06 10:51:08 gmail.pem

--


What is the purpose of this? You want to write your own MUA in python?



It's useful to be able to able to access the POP store at a lower 
level.  For exaple, sometimes emails get corrupted, and sometimes 
they are too big for SMTP to handle.


Sometimes you just want to do it for no other reason than it's 
interesting to do.


--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4be34459.1020...@cox.net



Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Cousin Stanley

 Does anyone have an example of how to do this?
  

  You might start by  

python

  import smtplib
  import email

  help( smtplib )
  help( email )

  The newsgroup comp.lang.python 
  can be very helpful especially
  if you've done a bit of prior
  research into your problem 
  and what you want to achieve  
  

-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/hrvm9p$eo...@news.eternal-september.org



Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Ron Johnson

On 05/06/2010 07:19 PM, Cousin Stanley wrote:



Does anyone have an example of how to do this?



   You might start by 

 python

   import smtplib
   import email

   help( smtplib )
   help( email )

   The newsgroup comp.lang.python
   can be very helpful especially
   if you've done a bit of prior
   research into your problem
   and what you want to achieve 



I already know how to use the regular POP3 class, which I use on a 
semi-regular basis for examining/zapping mails which fetchmail barfs 
on.  I've Googled my fingers off, but there are no hints as to what 
the keyfile and certfile are.


--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4be373c9.1070...@cox.net



Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Umarzuki Mochlis



 I already know how to use the regular POP3 class, which I use on a
 semi-regular basis for examining/zapping mails which fetchmail barfs on.
  I've Googled my fingers off, but there are no hints as to what the keyfile
 and certfile are.


maybe this link can help
http://www.andrews-corner.org/mutt.html



 --
 Dissent is patriotic, remember?



 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/4be373c9.1070...@cox.net




-- 
Regards,

Umarzuki Mochlis
http://debmal.my


Re: [Semi-OT] Accessing gmail from Python

2010-05-06 Thread Ron Johnson

On 05/06/2010 09:01 PM, Umarzuki Mochlis wrote:






I already know how to use the regular POP3 class, which I use on a
semi-regular basis for examining/zapping mails which fetchmail barfs on.
  I've Googled my fingers off, but there are no hints as to what the keyfile
and certfile are.



maybe this link can help
http://www.andrews-corner.org/mutt.html



No.  Another site demonstrated how to configure fetchmail.  It works 
perfectly accessing gmail.


If I knew more about SSL, then I'd have already figured out what 
keyfile and certfile were.


--
Dissent is patriotic, remember?


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4be39e81.1010...@cox.net