ezgmail icon indicating copy to clipboard operation
ezgmail copied to clipboard

Not detecting attachment when it can be downloaded by clicking a button.

Open aruna09 opened this issue 5 years ago • 1 comments

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:)

aruna09 avatar Jun 16 '19 07:06 aruna09

Did you try 'attachments' with a 's' atthe end ?

Prabhakaran-Gokul avatar Jun 16 '19 11:06 Prabhakaran-Gokul