Re: ILeo example: getting gmail to leo

2009-05-09 Thread Edward K. Ream
On Thu, May 7, 2009 at 2:49 PM, Ville M. Vainio vivai...@gmail.com wrote: Try out this program (if you have enabled imap on our gmail account): Cool! It works as a stand-alone python app, but if I try to execute it as a Leo script I get this, endlessly repeated: QCoreApplication::exec: The

Re: ILeo example: getting gmail to leo

2009-05-09 Thread Edward K. Ream
On Sat, May 9, 2009 at 8:02 AM, Ville M. Vainio vivai...@gmail.com wrote: On Sat, May 9, 2009 at 2:36 PM, Edward K. Ream edream...@gmail.com wrote: Cool! It works as a stand-alone python app, but if I try to execute it as a Leo script I get this, endlessly repeated:

Re: ILeo example: getting gmail to leo

2009-05-09 Thread Edward K. Ream
On Thu, May 7, 2009 at 2:49 PM, Ville M. Vainio vivai...@gmail.com wrote: Try out this program (if you have enabled imap on our gmail account): Here are a few tweaks. Replace the username. QQQ import getpass, imaplib username = 'edream...@gmail.com' # change as needed. M =

Re: ILeo example: getting gmail to leo

2009-05-09 Thread Ville M. Vainio
On Sat, May 9, 2009 at 8:36 PM, Edward K. Ream edream...@gmail.com wrote: The new code creates nodes for each message, and puts the header in a child.  This code finds the end of the header by searching for two consecutive newlines.  Presumably there is an official way to do this, but it

Re: ILeo example: getting gmail to leo

2009-05-09 Thread Edward K. Ream
On Sat, May 9, 2009 at 4:07 PM, Ville M. Vainio vivai...@gmail.com wrote: The official way is doing proper mime parsing; that way you can save attachments as well. Module 'email' does this quite easily: http://docs.python.org/library/email.parser.html Thanks for this hint. Here is the

Re: ILeo example: getting gmail to leo

2009-05-07 Thread Ville M. Vainio
On Thu, May 7, 2009 at 10:09 PM, bpursley ber...@bpursley.net wrote: Has there been any more written about using Leo for gmail?  Are there any plugins available? Not really - but such a plugin would be very easy to write using libgmail: http://libgmail.sourceforge.net/ What would perhaps be

Re: ILeo example: getting gmail to leo

2009-05-07 Thread Ville M. Vainio
On Thu, May 7, 2009 at 10:33 PM, Ville M. Vainio vivai...@gmail.com wrote: What would perhaps be more interesting is imap plugin. Many people use gmail for personal stuff, but imap is more widely available in corporate setting (because Outlook supports imap) where archiving big amounts of

Re: ILeo example: getting gmail to leo

2008-09-07 Thread Edward K. Ream
On Sep 6, 6:50 am, Ville M. Vainio [EMAIL PROTECTED] wrote: Here's an example ileo snippet to get your gmail threads with todo label into leo outline (under heading MyTodo): Thanks for this. I've put it on the list of things to document. Edward

ILeo example: getting gmail to leo

2008-09-06 Thread Ville M. Vainio
Here's an example ileo snippet to get your gmail threads with todo label into leo outline (under heading MyTodo): QQQ import ipy_gmail gml todo ipy_gmail.to_leo(_, wb.MyTodo) QQQ Just posting this as an example of an interesting productivity feature to emphasize how ileo reduces the amount of