docspell
docspell copied to clipboard
[Feature request] Google docs support
I send out a lot of google docs as email attachments and it would be grate to not have to "print" them to PDF and upload but just get auto added while email gets scanned from IMAP.
That sounds interesting. I'm not very familiar with google docs. How do you send them "as attachments"? Or do you simply include links in the mail? I suppose you would need to login and download the pdf somehow right? But that means authenticating with google etc, which could be a problem. Public documents could be easier to integrate I guess.
When you "attach" google docs its only a hyperlink in body with some formatting around it. Permissions are an issue but actually much less significant one. If you have personal email or send a doc outside of your work group (google for work has internal access management) you get prompted to provide at least "View with a link" permissions or to not include it at all because how will any other person will be able to read it? So most google docs links that are in email will have at least public read permissions available.
Google supports PDF export natively https://support.google.com/a/users/answer/9308985?hl=en So the code would have to regex google docs links in the email body then trim anything after document id ID and append /export?format=pdf and download it and sent to be processed as any regular PDF.
I see, thank you for these details! Maybe it can be an addon for a first version.
I would strongly suggest this become an add-on. Yes, Google and all, but I don't think core docspell is where any proprietary interfacing should happen.