bradysanders / gmail-delay-send

Automatically exported from code.google.com/p/gmail-delay-send
0 stars 0 forks source link

draft email remains in conversation even after email is sent #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
=======================================
=== PLEASE READ BEFORE FILING ISSUE:
https://code.google.com/p/gmail-delay-send/wiki/GmailDelaySendDebugging_8
=======================================

What steps will reproduce the problem?
1.write a draft in email conversation
2.set for email to be sent at a later date
3.wait for time for email send to pass

What is the expected output? What do you see instead?

Expect the email to be sent and show in sent mail (which happens). I also 
expect the draft to disappear. However, I see the email is sent, I get an email 
receipt of email sent, however the draft email is not deleted. It is still 
there. Any way to remove the draft copy when you send it?

What version of the product are you using?
Gmail for android (latest on nexus 7)

Please provide any additional information below.
Interestingly, the draft email is not seen in crafts label. However, when I go 
to sent mail label I clearly see the red draft note next to the mail heading 
and see the draft mail in the conversation (just before the actual email sent)

Original issue reported on code.google.com by jamm...@gmail.com on 21 Apr 2014 at 8:47

GoogleCodeExporter commented 8 years ago
I'm having the same problem, any response on this issue? Cheers guys

Original comment by judy.ken...@emperordesign.co.uk on 8 Jun 2014 at 9:56

GoogleCodeExporter commented 8 years ago
One solution to this problem is to use the Gmail API to send the draft message. 
This StackOverflow post describes the basic approach: 
http://stackoverflow.com/questions/17660601/create-draft-mail-using-google-apps-
script

The GmailSendLater Google Apps Script 
(https://github.com/devietti/GmailSendLater) also includes some code that does 
this in SendLater.js::sendDraft(). Disclaimer: I wrote GmailSendLater.

Original comment by j...@devietti.net on 31 Dec 2014 at 2:51

GoogleCodeExporter commented 8 years ago
Hey guys,

Thanks for the bug report, and thanks Joe for the suggested code!

But I'm a bit confused.  I dont' think the issue is to create a draft message. 
We already have one that the user has created.  What the script needs to do is 
to copy the current draft, send that draft, then delete the old one.

The code currently copies the old and deletes the draft that the user created. 
I don't have Nexus 7 to test this out, but on the web client when I go to th 
conversation that I responed to I see a note that says "1 deleted message in 
this conversation. View message or delete forever.". Which I guess is expected.

But when you're on the Nexus 7 this is actually showing you the draft message 
that we called 'MoveToTrash' on?

Thanks!
-Blair

Original comment by blairk...@gmail.com on 4 Jan 2015 at 12:16