Moving Gmail attachments to Drive

31 views
Skip to first unread message

Sean Taylor

unread,
Sep 23, 2025, 4:19:46 PM (3 days ago) Sep 23
to GAM for Google Workspace
Hi, everyone! I have an old email account which was used as file storage via attachments. I'm looking to transfer those files to Drive using the download attachment command. Is it possible to pass a Drive file location as the target folder?

Thanks!
Sean

Jay Lee

unread,
Sep 23, 2025, 4:24:00 PM (3 days ago) Sep 23
to google-ap...@googlegroups.com
I don't recommend doing this:
  1. it does not save storage space. Storage space is now pooled between services like Gmail and Drive
  2. It's far too easy to lose the link between Gmail and Drive (e.g. Drive file gets deleted, email remains.
  3. You can't "delete" a Gmail attachment, you have to delete the entire email and then create a new email sans attachment. This means a new message must be generated and saved to the mailbox via Gmail API which can interfere with indexing and threading.
All said, you're best off just leaving the attachments where they are or, as needed saving a copy to Drive.

Jay Lee


--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/38cb528d-3417-4ac6-9fc1-9779379f1011n%40googlegroups.com.

Ross Scroggs

unread,
Sep 23, 2025, 4:25:52 PM (3 days ago) Sep 23
to google-ap...@googlegroups.com
If you want to download, see: https://github.com/GAM-team/GAM/wiki/Users-Gmail-Messages-Threads#download-attachments

By default, message attachments are downloaded to the directory specified in gam.cfg/drive_dir.

  • targetfolder <FilePath> - Specify an alternate location for the downloaded attachments

The strings #email##user# and #username# will be replaced by the the user's full emailaddress or just the name portion in targetfolder <FilePath>.

Ross

----
Ross Scroggs



Reply all
Reply to author
Forward
0 new messages