Probably, a security problem like you said!
Thank you

Best Regards
Kais

________________________________
From: [email protected] <[email protected]> on behalf of 
elParaguayo <[email protected]>
Sent: Sunday, December 6, 2020 1:37:19 PM
To: qtile-dev <[email protected]>
Subject: Re: [qtile-dev] GmailChecker widget?

My guess is this app doesn't work because Google updated security so you can't 
use standard username and password because it's not secure. They used to have 
the ability to allow access to less secure apps but I think you now have to 
generate a separate password for the app. Could be wrong though!

On Sunday, 6 December 2020 at 18:13:36 UTC Kai Stian Olstad wrote:
On Sun, Dec 06, 2020 at 09:51:14AM -0800, elParaguayo wrote:
> Might be worth posting an issue on github then.

I'm not using it, so I leave that up to OP.


> You could also try logging into gmail from a python session and running:
>
> import imaplib
>
> gmail = imaplib.IMAP4_SSL('imap.gmail.com<http://imap.gmail.com>')
> gmail.login(<username>, <password>)
> answer, raw_data = self.gmail.status("INBOX", "(MESSAGES UNSEEN)")

Everything work fine until the last line

❯ python
Python 3.9.0 (default, Oct 10 2020, 14:22:51)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib
>>> gmail = imaplib.IMAP4_SSL('imap.gmail.com<http://imap.gmail.com>')
>>> gmail.login("kai.stian.olstad", "<the password>")
('OK', [b'[email protected] authenticated (Success)'])
>>> answer, raw_data = self.gmail.status("INBOX", "(MESSAGES UNSEEN)")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'self' is not defined

Guess I should leave out the slef part since it's not a class.


>>> answer, raw_data = gmail.status("INBOX", "(MESSAGES UNSEEN)")
>>> print(answer)
OK
>>> print(raw_data)
[b'"INBOX" (MESSAGES 8071 UNSEEN 0)']

So this work but the widget doesn't.

--
Kai Stian Olstad

--
You received this message because you are subscribed to a topic in the Google 
Groups "qtile-dev" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/qtile-dev/VCXEJr_H7qk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/3d8217ff-b535-479e-992b-4ff52afe8275n%40googlegroups.com<https://groups.google.com/d/msgid/qtile-dev/3d8217ff-b535-479e-992b-4ff52afe8275n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/DM6PR06MB54183E7FD7460E0337DA095CAECF0%40DM6PR06MB5418.namprd06.prod.outlook.com.

Reply via email to