Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Attachement #49

Closed
fdabrao opened this issue Jul 20, 2016 · 1 comment
Closed

Extract Attachement #49

fdabrao opened this issue Jul 20, 2016 · 1 comment

Comments

@fdabrao
Copy link

fdabrao commented Jul 20, 2016

Hello,

How can I extract the attachement and save it to a file?

Regards

@fdabrao
Copy link
Author

fdabrao commented Jul 29, 2016

I used this

(let [gstore (gmail/store usuario senha)
                message (get-message gstore)]
        (.saveFile
            (.getBodyPart
                (.getContent message) 1) arquivo) ;; 1 = position of multiparts
        (.close gstore))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants