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')
> 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')
>>> 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 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/20201206181333.lldnlokzlafbsf4y%40olstad.com.

Reply via email to