email - Save Gmail attachments to GDrive as ".../ eMailAddress / FileName"
问题描述
I need to save attachments that arrive through GMail to my GDrive, in a directory structure that I can identify all attachments by Sender.
I'm using Google Application Script "ahochsteger/gmail2gdrive". http://github.com/ahochsteger/gmail2gdrive/blob/master/Code.gs http://github.com/ahochsteger/gmail2gdrive/blob/master/Config.gs
It stores all files in the same directory "Scan - yyyy-mm-dd" which means that it does not identify who they are from. It works really well. But I would like to save the attached file:
- As file name "eMailAddress-AttachmentName" or
- In folder path "Scan - yyyy-mm-dd / eMailAddress /"
In both cases, I will be able to identify whose attachments I store to GDrive.
Can anyone help me with an alternative to store the attachment with either option?
Many thanks for your help
解决方案
推荐阅读
- android - 如何在 Android 的 Service 中进行改造 API 调用
- newline - 如何使用 DOCX4J 在 docx 文件生成中添加新行
- ios - SecCertificateRef:如何在 Swift 中获取证书信息而不中继任何第三方库
- python - 尝试发布到 gfycat.com 时 Python 请求给出错误 ('Connection aborted.', error("(104, 'ECONNRESET')",))
- node.js - 用户搜索无效电影数据时如何显示错误(带有nodejs的omdb api)
- javascript - “this”在反应组件中代表什么?(这个.状态..)
- javascript - 如何在状态 React JS 中渲染元素?
- java - 如何将联系人从 Android 同步到 Web 服务器
- javascript - 在 Google AppMaker 中发送电子邮件时出错
- java - 动态 Web 项目中的 HibernateException