How can you save attachments in mails of Gmail to Gdocs?

Problem: to extract many pdf-attachments in Gmail to my Google Docs, and labeling each file by "Python".

Upvotes: 1

Views: 1045

Answers (3)

mike katz
mike katz

Reputation: 11

Mailspect offers this, http://esm.mailspect.com/index.php/Attachments_as_Google_Docs

Upvotes: 1

George
George

Reputation: 15561

One possible solution is this:

Use wireshark with the filter tcp port 80 and do your task a few times manually. Then examine the requests made by your browser in Wireshark.

Then build the script using the httplib module to automate the previously examined requests.

As I know there is a "View as HTML" link in gmail when you receive a PDF attachment. You can use that to convert the documents to google docs.

Upvotes: 2

Yes - that Jake.
Yes - that Jake.

Reputation: 17119

Any solution to this would be non-trivial and require programmatically reading your mail, iterating through the attachments, cracking the PDFs, opening Google docs, and transcribing the contents of one into the other. I doubt there's any pre-packaged functionality for any of that in the Google APIs, extensive though they may be.

Upvotes: 1

Related Questions