when retrieving a file to save it from gmail, I get the following error message:
Traceback (most recent call last):
File "C:\a.py", line 32, in on_hello
if getmail(self):
File "C:\a.py", line 96, in getmail
fp = open(att_path, 'wb')
IOError: [Errno 22] invalid mode ('wb') or filename: '.\\=?iso-8859-1?Q?CC_GM=5F
Est=E1vel.xlsx?='
Now, I suspect that =?iso-8859-1?Q?CC_GM=5FEst=E1vel.xlsx?=
is the problem, how can I convert it to ansii? I tried using all sorts of .decode and .encode combinations with no success.
Thanks