tag:blogger.com,1999:blog-1693014329567144872.post4192200100336914904..comments2023-08-27T06:49:20.658+01:00Comments on The Glowing Python: Analyzing your Gmail with MatplotlibJustGlowinghttp://www.blogger.com/profile/17212021288715206641noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1693014329567144872.post-49148087943268416272019-12-07T10:14:20.907+00:002019-12-07T10:14:20.907+00:00This comment has been removed by a blog administrator.martin vellyhttps://www.blogger.com/profile/04506019427176759297noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-75786746298638922502015-01-20T17:03:39.311+00:002015-01-20T17:03:39.311+00:00I keep getting synthax error for
headers = getHe...I keep getting synthax error for <br /><br />headers = getHeaders('iamsupersexy@gmail.com',<br />'ofcourseiamsupersexy','[Gmail]/Sent Mail',365*5)<br /><br />I am using Python 2.7.3. <br /><br />Did anything change in the new versions? <br /><br />Thanks.Albert Schram, Ph.D.https://www.blogger.com/profile/15396434433206432650noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-34909852013673343582014-07-31T09:38:21.280+01:002014-07-31T09:38:21.280+01:00Hi Youngseok, the function parsedate returns None ...Hi Youngseok, the function parsedate returns None when it's not able to recognize the string. It may be your case. You should check the input of this function. It may be that the header that you are using is different that the one I used when I wrote this snippet.JustGlowinghttps://www.blogger.com/profile/17212021288715206641noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-69272995614658579372014-07-31T02:46:01.239+01:002014-07-31T02:46:01.239+01:00I've got the error. Could you help me with thi...I've got the error. Could you help me with this ?<br /><br />Traceback (most recent call last):<br /> File "test.py", line 66, in <br /> xday,ytime = diurnalPlot(headers)<br /> File "test.py", line 36, in diurnalPlot<br /> timestamp = mktime(parsedate(h[1][5:].replace('.',':')))<br />TypeError: argument must be 9-item sequence, not None<br />Anonymoushttps://www.blogger.com/profile/08102303304685176525noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-54990588638748127432013-06-13T07:08:45.489+01:002013-06-13T07:08:45.489+01:00Hello wolf, Thanks for you comment. The function g...Hello wolf, Thanks for you comment. The function get header retrieves the headers of all the emails from d days ago until now.<br /><br />If you want to retrieve the emails you replied in a certain amount of time you have to get all the email in the inbox and the email in the outbox ('[Gmail]/Sent Mail' in my case) then you can iterate over the received mail and see the closes sent mail to that address. It's not a precise algorithm but it could give you a good approximation.JustGlowinghttps://www.blogger.com/profile/17212021288715206641noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-21847108013846290112013-06-12T23:27:47.160+01:002013-06-12T23:27:47.160+01:00This was really helpful. I'm a newbie with pyt...This was really helpful. I'm a newbie with python and I'm not understanding the requirement of this line <br /><br />headers = getHeaders('iamsupersexy@gmail.com',<br />'ofcourseiamsupersexy','[Gmail]/Sent Mail',365*5)<br /><br />Additionally, is it possible to find:<br /><br />How many emails have I responded within distributed duration like < 1 hr, 1-2 hrs, >2 hrs in specific time frame - Say last 24 hours.Anonymoushttps://www.blogger.com/profile/01340224767886582577noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-78062872371475810262013-03-12T07:26:18.669+00:002013-03-12T07:26:18.669+00:00Sorry Shishir, I don't use Thunderbird.Sorry Shishir, I don't use Thunderbird.JustGlowinghttps://www.blogger.com/profile/17212021288715206641noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-1975406539028715422013-03-12T04:24:14.829+00:002013-03-12T04:24:14.829+00:00This is awesome. Do you know how to access mails s...This is awesome. Do you know how to access mails stored by thunderbird from python?Shishir Pandeyhttps://www.blogger.com/profile/05892655135746981777noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-78000444734926420752012-09-12T18:21:53.902+01:002012-09-12T18:21:53.902+01:00This line not working:
headers = getHeaders('...This line not working:<br /><br />headers = getHeaders('iamsupersexy@gmail.com',<br /> 'ofcourseiamsupersexy','[Gmail]/Sent Mail',365*5)<br /><br />My outbox dir not [Gmail]/Sent Mail.I changed this to outbox solved problem.ThanksHalithttp://www.halitalptekin.comnoreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-54089254896840158082012-05-17T10:00:43.680+01:002012-05-17T10:00:43.680+01:00Hi Joe, I don't use IPython but you could take...Hi Joe, I don't use IPython but you could take a look here:<br /><br />http://wiki.ipython.org/Cookbook/Shadow_HistoryJustGlowinghttps://www.blogger.com/profile/17212021288715206641noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-83299528117407586762012-05-17T09:37:45.902+01:002012-05-17T09:37:45.902+01:00Could you also add how to prevent ipython from sto...Could you also add how to prevent ipython from storing the email password we typed in the command history?<br />Loved the script. It is awesome.. :-)Joe Philip Ninanhttps://www.blogger.com/profile/06232059325046189875noreply@blogger.comtag:blogger.com,1999:blog-1693014329567144872.post-35213058273663255682012-05-07T18:10:52.199+01:002012-05-07T18:10:52.199+01:00Thank you for the article! The concept and the tra...Thank you for the article! The concept and the translation to Python is really cool! I will have to try your code out on my own gmail account later.Bryce Verdierhttp://scrollingtext.orgnoreply@blogger.com