Export to GitHub

gmail-delay-send - issue #126

Does not send draft created in desktop email client and given the proper label


Posted on Nov 25, 2013 by Swift Bird

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

What steps will reproduce the problem? 1. Create draft in a desktop email application on my Mac 2. Give the email the appropriate label and used the @ symbol

What is the expected output? What do you see instead? It does not send the email at the specified time. When I go to gmail in a browser, it does show the email in the drafts folder, as well as with the Gmail Delay Send/To Send label. However, if I have error notifications on, it will send me the error message every 5 minutes.

What version of the product are you using? The newest one, version 8

Please provide any additional information below. I did not send you a debugging or error report. I can do that if you need me to.

Comment #1

Posted on Nov 27, 2013 by Swift Elephant

Hello,

Please include both the error message that you're getting when notifications are on as well as the debug report..

We'll getcha fixed up! :-)

-Blair

Comment #2

Posted on Nov 27, 2013 by Swift Bird

Will do. I'll set it up when I'm back at the computer.

Comment #3

Posted on Dec 5, 2013 by Swift Elephant

Hello,

Wanted to check up on this. Were you able to reproduce?

Comment #4

Posted on Dec 5, 2013 by Swift Bird

Oh yes. I replied to your email thru my desktop client, and I see it didn't show up here. Here it is.

From: Earle Monroe Subject: Re: Issue 126 in gmail-delay-send: Does not send draft created in desktop email client and given the proper label Date: December 3, 2013 at 8:27:52 PM PST To: gmail-delay-send@googlecode.com

Hi Blair- Here is what I got from Gmail. I don’t know if this issue has to do specifically with creating the message in Mac Mail. I have some other desktop clients that I could try from if you need.

Fw: GMail Delay Send -> Parsing Errors Begin forwarded message:

From: earlemonroe@gmail.com Subject: GMail Delay Send -> Parsing Errors Date: December 3, 2013 at 8:25:29 PM PST To: earlemonroe@gmail.com Reply-To: GMail Delay Send

Sorry! There was an error parsing your message with subject: "Test with Gmail Delay Send". The reason for this error was: "Could not find your special character: "@" in FIRST line of email body". A new label was applied to this message:GmailDelaySend/Errors. Gmail Delay Send will ignore this message until you fix the problem and remove that label. If you have any questions please see the page on common problems

GMail Delay Send Homepage || Common Problems || Script Version: 8

Also: Fw: GMail Delay Send -> Debug Logs On December 3, 2013 at 8:15:30 PM, earlemonroe@gmail.com (earlemonroe@gmail.com) wrote:

Begin forwarded message:

From: earlemonroe@gmail.com Subject: GMail Delay Send -> Debug Logs Date: December 3, 2013 at 8:20:25 PM PST To: earlemonroe@gmail.com Reply-To: GMail Delay Send

Tue Dec 03 20:15:24 PST 2013 INFO: Starting main()Tue Dec 03 20:15:24 PST 2013 INFO: User preferences object empty.. reloading..Tue Dec 03 20:15:24 PST 2013 INFO: Loading default property for key:bcc value: falseTue Dec 03 20:15:24 PST 2013 INFO: -- Prefs --Tue Dec 03 20:15:24 PST 2013 INFO: Triggers: trueTue Dec 03 20:15:24 PST 2013 INFO: Email Receipts: trueTue Dec 03 20:15:24 PST 2013 INFO: Error Notifications: trueTue Dec 03 20:15:24 PST 2013 INFO: Debugging: trueTue Dec 03 20:15:24 PST 2013 INFO: Top level Name: GmailDelaySendTue Dec 03 20:15:24 PST 2013 INFO: Label Required: trueTue Dec 03 20:15:24 PST 2013 INFO: Error Label Name: GmailDelaySend/ErrorsTue Dec 03 20:15:24 PST 2013 INFO: To Send Label Name: GmailDelaySend/ToSendTue Dec 03 20:15:24 PST 2013 INFO: Trigger Minutes: 5Tue Dec 03 20:15:24 PST 2013 INFO: Delim: @Tue Dec 03 20:15:24 PST 2013 INFO: TimeZone: defaultTue Dec 03 20:15:24 PST 2013 INFO: getHTMLRegex: /^([\s\S]?>)([^<]+)(<[\s\S])/Tue Dec 03 20:15:24 PST 2013 INFO: getTextRegex: /^\s*@([^<])(<[\s\S])/Tue Dec 03 20:15:24 PST 2013 INFO: ------------Tue Dec 03 20:15:24 PST 2013 INFO: Service cache missTue Dec 03 20:15:24 PST 2013 INFO: Service cache hitTue Dec 03 20:15:24 PST 2013 INFO: Service cache hitTue Dec 03 20:15:24 PST 2013 INFO: Searching for emails with this string: "in:drafts + in:GmailDelaySend/ToSend + -label:GmailDelaySend/Errors "Tue Dec 03 20:15:24 PST 2013 INFO: Found 1 threads to processTue Dec 03 20:15:24 PST 2013 INFO: Service cache missTue Dec 03 20:15:24 PST 2013 INFO: Service cache missTue Dec 03 20:15:24 PST 2013 INFO: User timezone:defaultTue Dec 03 20:15:25 PST 2013 INFO: Loading timezone from calendar: America/Los_AngelesTue Dec 03 20:15:25 PST 2013 INFO: Converted:Tue Dec 03 2013 20:14:12 GMT-0800 (PST) to user time:Tue Dec 03 2013 20:14:12 GMT-0800 (PST)Tue Dec 03 20:15:25 PST 2013 INFO: Service cache missTue Dec 03 20:15:25 PST 2013 INFO: Is HTML email:trueTue Dec 03 20:15:25 PST 2013 INFO: Service cache missTue Dec 03 20:15:25 PST 2013 INFO: Parsing date and body from email with regex:/^([\s\S]?>)([^<]+)(<[\s\S])/Tue Dec 03 20:15:25 PST 2013 INFO: Match[0] substring: This email was created in Mac Mail and saved with the a Tue Dec 03 20:15:25 PST 2013 INFO: Match[1] substring: Tue Dec 03 20:15:25 PST 2013 INFO: Match[2] substring:This email was created in Mac Mail and saved with the appropriate label.Tue Dec 03 20:15:25 PST 2013 INFO: Match[3] substring:Tue Dec 03 20:15:25 PST 2013 INFO: Found possible datestring: This email was created in Mac Mail and saved with the appropriate label.Tue Dec 03 20:15:25 PST 2013 INFO: Could not find delim in possible datestringTue Dec 03 20:15:25 PST 2013 INFO: HTML Parsing failed, Attempting text parsing.Tue Dec 03 20:15:25 PST 2013 INFO: Service cache hitTue Dec 03 20:15:25 PST 2013 INFO: Parsing date and body from email with regex:/^\s*@([^<])(<[\s\S])/Tue Dec 03 20:15:25 PST 2013 INFO: Empty MatchesTue Dec 03 20:15:25 PST 2013 INFO: Returning date_string: nullTue Dec 03 20:15:25 PST 2013 INFO: Text parsing result for date_string:nullTue Dec 03 20:15:25 PST 2013 INFO: Returning date_string: nullTue Dec 03 20:15:25 PST 2013 INFO: The message was malformed in some way. Found delimeter:false. Successful date parse: falseTue Dec 03 20:15:25 PST 2013 INFO: Processing message as error because user requires a labelTue Dec 03 20:15:29 PST 2013 INFO: Succesfully found label: GmailDelaySend/ErrorsTue Dec 03 20:15:29 PST 2013 INFO: Service cache missTue Dec 03 20:15:29 PST 2013 INFO: Service cache missTue Dec 03 20:15:29 PST 2013 INFO: Successfully added label (GmailDelaySend/Errors) to message with subject: Test with Gmail Delay SendTue Dec 03 20:15:29 PST 2013 INFO: Service cache missTue Dec 03 20:15:30 PST 2013 INFO: Service cache hitTue Dec 03 20:20:24 PST 2013 INFO: Starting main()Tue Dec 03 20:20:24 PST 2013 INFO: User preferences object empty.. reloading..Tue Dec 03 20:20:24 PST 2013 INFO: Loading default property for key:bcc value: falseTue Dec 03 20:20:24 PST 2013 INFO: -- Prefs --Tue Dec 03 20:20:24 PST 2013 INFO: Triggers: trueTue Dec 03 20:20:24 PST 2013 INFO: Email Receipts: trueTue Dec 03 20:20:24 PST 2013 INFO: Error Notifications: trueTue Dec 03 20:20:24 PST 2013 INFO: Debugging: trueTue Dec 03 20:20:24 PST 2013 INFO: Top level Name: GmailDelaySendTue Dec 03 20:20:24 PST 2013 INFO: Label Required: trueTue Dec 03 20:20:24 PST 2013 INFO: Error Label Name: GmailDelaySend/ErrorsTue Dec 03 20:20:24 PST 2013 INFO: To Send Label Name: GmailDelaySend/ToSendTue Dec 03 20:20:24 PST 2013 INFO: Trigger Minutes: 5Tue Dec 03 20:20:24 PST 2013 INFO: Delim: @Tue Dec 03 20:20:24 PST 2013 INFO: TimeZone: defaultTue Dec 03 20:20:24 PST 2013 INFO: getHTMLRegex: /^([\s\S]?>)([^<]+)(<[\s\S])/Tue Dec 03 20:20:24 PST 2013 INFO: getTextRegex: /^\s*@([^<])(<[\s\S])/Tue Dec 03 20:20:24 PST 2013 INFO: ------------Tue Dec 03 20:20:24 PST 2013 INFO: Service cache missTue Dec 03 20:20:24 PST 2013 INFO: Service cache hitTue Dec 03 20:20:24 PST 2013 INFO: Service cache hitTue Dec 03 20:20:24 PST 2013 INFO: Searching for emails with this string: "in:drafts + in:GmailDelaySend/ToSend + -label:GmailDelaySend/Errors "Tue Dec 03 20:20:24 PST 2013 INFO: No threads found to process.. exiting

GMail Delay Send Homepage || Common Problems || Script Version: 8

I’m including the below screenshots so that you can see that Gmail did save them with the appropriate labels in the cloud.

Attachments

Comment #5

Posted on Dec 17, 2013 by Swift Elephant

Hello,

From the screen shots (thanks for including those) I see that you're not including the @ symbol with the date that you'd like to delay your message by.

Please see the tutorial here: https://code.google.com/p/gmail-delay-send/wiki/GmailDelaySendFirstMessage_8

And an article on how to specify dates here: https://code.google.com/p/gmail-delay-send/wiki/GmailDelaySendOptions_8#Test_a_date_or_time

Please let me know if the problems persist.

Thanks! -Blair

Comment #6

Posted on Dec 27, 2013 by Helpful Panda

If I compose email in Gmail web, so I use Gmail delay send complete But when I compose email in Thunderbird (desktop email client), so Gmail delay send notify GMail Delay Send -> Parsing Errors

Two emails are composed: Same: content and first line (Send 12:45PM) Differences: method of sending emails and subject of each email (Gmail Web & Thunderbird)

I changed special character "@" to "Send"

Attachments

Comment #7

Posted on Jan 2, 2014 by Swift Elephant

Hello Nguyen,

Thanks for the bug report and the screen shots.

I suspect that when you compose the email in Thunderbird it's inserting some other characters into the email which is preventing the parsing in Gmail Delay Send from working correctly.

Could you follow the instructions listed here: https://code.google.com/p/gmail-delay-send/wiki/GmailDelaySendDebugging_8 and include the debugging output? That would help be identify what the problem is.

Thanks! -Blair

Comment #8

Posted on Jan 20, 2014 by Helpful Panda

But strangely, I only need to - reopen the draft fails, - select all email content, - select Clear Formatting => email sent is normally

Comment #9

Posted on Jan 20, 2014 by Swift Elephant

Right, as I mentioned before I think Thunderbird is inserting some other characters into the email which is preventing gmail delay send from parsing. By you clicking on 'clear formatting' we're getting rid of whatever is causing the issues.

If you'd like me to take a look, please follow the debugging information above.

-Blair

Comment #10

Posted on Dec 15, 2014 by Swift Elephant

(No comment was entered for this change.)

Status: Done

Labels:
Type-Defect Priority-Medium