ezgmail
ezgmail copied to clipboard
Not detecting attachment when it can be downloaded by clicking a button.
Hey, I want to use ezgmail to download an attachment. Now the mail structure is like this, A button, and on clicking the button the attachment gets downloaded automatically, to be more precise it's a sheet. However when I read the documentation and write the section implemented under attachments I get this:
threads = ezgmail.search('Download report') len(threads) 1 threads[0].messages[0].attachment Traceback (most recent call last): File "
", line 1, in AttributeError: 'GmailMessage' object has no attribute 'attachment'
It isnt detecting the attachment. So two questions: is there a way that this can be done using ezgmail? If not then is there any alternate way?
Thankyou for your time:)
Did you try 'attachments' with a 's' atthe end ?