Re: [Twisted-Python] Need working examples of imap4 client.
![](https://secure.gravatar.com/avatar/646c5ee4b521aae02a25cba681768f11.jpg?s=120&d=mm&r=g)
Phil, Much obliged. Was able to isolate and confirm that the real issue is that login is hanging for some reason, and causing the timeout message. I suspect SSL/TLS issues, which at least gives me a decided place to start investigating. Thanks again for the code, it was sanity inducing to say the least. ;) Phil Mayers wrote:
![](https://secure.gravatar.com/avatar/d7d18c48316f83f1bf99618559ed2444.jpg?s=120&d=mm&r=g)
Hi, I've wondered myself how to do this, so thanks Phil. I extended Phil's solution to work with Gmail, which boils down to using SSL and setting the correct servername and port, see here: http://gist.github.com/128521 Pywinder, you should be able to just change the username/password and it will work for you (you might have to have the python ssl module installed - post again if that is the case and it's not working for you) How to do useful stuff with the 'mailboxes' function in the script is another question (which I dont know the answer to). Maybe post your usage if you have a chance. -Alex On Thu, Jun 11, 2009 at 5:45 PM, Pywinder Singh<pywinder@monkeydriveengine.com> wrote:
-- Alex Clemesha clemesha.org
![](https://secure.gravatar.com/avatar/646c5ee4b521aae02a25cba681768f11.jpg?s=120&d=mm&r=g)
Alex, That link was invaluable. Twisted docs + project deadlines + my own ignorance = I completely had the wrong idea about how to set up SSL. Code worked like a charm, and now I'm very happy not to have to finish the project using python's native imaplib. I'll certainly share the fruits of my labour with this list. Thanks again.... On Fri, Jun 12, 2009 at 4:40 AM, Alex Clemesha <clemesha@gmail.com> wrote:
![](https://secure.gravatar.com/avatar/646c5ee4b521aae02a25cba681768f11.jpg?s=120&d=mm&r=g)
A very belated reply... Thanks again for the code. From there, I was able to make a tool to clone imap mailboxes from server to server. Right now, it's a beast held together with rubber bands, and completely ignores use of a lot of other twisted practices and conveniences (application, connection persistance, etc...). At some point I'll clean it up and share, but in the mean time, if anybody has any specific questions, let me know and I'll be happy to share what I learned. On Fri, Jun 12, 2009 at 4:40 AM, Alex Clemesha <clemesha@gmail.com> wrote:
![](https://secure.gravatar.com/avatar/d7d18c48316f83f1bf99618559ed2444.jpg?s=120&d=mm&r=g)
Hi, I've wondered myself how to do this, so thanks Phil. I extended Phil's solution to work with Gmail, which boils down to using SSL and setting the correct servername and port, see here: http://gist.github.com/128521 Pywinder, you should be able to just change the username/password and it will work for you (you might have to have the python ssl module installed - post again if that is the case and it's not working for you) How to do useful stuff with the 'mailboxes' function in the script is another question (which I dont know the answer to). Maybe post your usage if you have a chance. -Alex On Thu, Jun 11, 2009 at 5:45 PM, Pywinder Singh<pywinder@monkeydriveengine.com> wrote:
-- Alex Clemesha clemesha.org
![](https://secure.gravatar.com/avatar/646c5ee4b521aae02a25cba681768f11.jpg?s=120&d=mm&r=g)
Alex, That link was invaluable. Twisted docs + project deadlines + my own ignorance = I completely had the wrong idea about how to set up SSL. Code worked like a charm, and now I'm very happy not to have to finish the project using python's native imaplib. I'll certainly share the fruits of my labour with this list. Thanks again.... On Fri, Jun 12, 2009 at 4:40 AM, Alex Clemesha <clemesha@gmail.com> wrote:
![](https://secure.gravatar.com/avatar/646c5ee4b521aae02a25cba681768f11.jpg?s=120&d=mm&r=g)
A very belated reply... Thanks again for the code. From there, I was able to make a tool to clone imap mailboxes from server to server. Right now, it's a beast held together with rubber bands, and completely ignores use of a lot of other twisted practices and conveniences (application, connection persistance, etc...). At some point I'll clean it up and share, but in the mean time, if anybody has any specific questions, let me know and I'll be happy to share what I learned. On Fri, Jun 12, 2009 at 4:40 AM, Alex Clemesha <clemesha@gmail.com> wrote:
participants (2)
-
Alex Clemesha
-
Pywinder Singh