Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

gmail - Modifying a draft without downloading attachments

I have a draft saved on my Gmail account, containing an attachment. At a later stage, I realise that I have to add some text to the mail, via the Gmail API. At an even later stage, I decide to send the draft. From what I've found, the only way to do this is to:

  1. Download the draft and decode it.
  2. Edit the message body to your liking.
  3. Encode it and save the draft.
  4. Send the draft.

This is all well and good, until you have a big attachment in your draft. Is there another way than doing the steps outlined above with the Users.draft: update, so that you don't have to download the attachments when you just want to alter the message?

Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

No, unfortunately there doesn't appear to be a simpler alternative at the moment. I'm not sure what API changes would be needed to support that use case, but you can file a feature request and we can talk to the team about it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...