Nidhiya / gmail-delay-send

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

date parsing error #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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. create draft with date indicated as "@June 30 8am" or "@6/30 8am" or 
"@2014-06-30 8am"
2. apply delaysend label
3. message is placed in Error label and the error message below is received

What is the expected output? What do you see instead?
Email doesn't stay in DelaySend label but is moved to Error label.

What version of the product are you using?
Current version. Just uninstalled and reinstalled to make sure I had the latest 
version.

Please provide any additional information below.

Here's the error I get no matter what date string I use in the email:
Sorry! There was an error parsing your message with subject: "Your Weekly 
Proteus E-mail". 
The reason for this error was: "Error parsing date string: June 30 8am". 
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

When I create a simple email test that uses "@now" it sends without a problem.

I have no idea what is causing the issue. I hope you can help as I love the 
functionality of your script.

Here is the debug log from the instance that produced the error:
GMail Delay Send Homepage || Common Problems || Script Version: 8
Wed Jun 04 06:42:28 PDT 2014 INFO: Saving preferences from form object which 
contains:
Wed Jun 04 06:42:28 PDT 2014 INFO: - localzone => default
Wed Jun 04 06:42:28 PDT 2014 INFO: - trigger_min => 5
Wed Jun 04 06:42:28 PDT 2014 INFO: - require_label => true
Wed Jun 04 06:42:28 PDT 2014 INFO: - email_receipts => true
Wed Jun 04 06:42:28 PDT 2014 INFO: - triggers => false
Wed Jun 04 06:42:28 PDT 2014 INFO: - debugging => true
Wed Jun 04 06:42:28 PDT 2014 INFO: - delim => @
Wed Jun 04 06:42:28 PDT 2014 INFO: - error_notification => false
Wed Jun 04 06:42:28 PDT 2014 INFO: User preferences object empty.. reloading..
Wed Jun 04 06:42:28 PDT 2014 INFO: Loading default property for key:bcc value: 
false
Wed Jun 04 06:42:28 PDT 2014 INFO: Refreshed preference object now contains:
Wed Jun 04 06:42:28 PDT 2014 INFO: -- Prefs --
Wed Jun 04 06:42:28 PDT 2014 INFO: Triggers: false
Wed Jun 04 06:42:28 PDT 2014 INFO: Email Receipts: true
Wed Jun 04 06:42:28 PDT 2014 INFO: Error Notifications: false
Wed Jun 04 06:42:28 PDT 2014 INFO: Debugging: true
Wed Jun 04 06:42:28 PDT 2014 INFO: Top level Name: GmailDelaySend
Wed Jun 04 06:42:28 PDT 2014 INFO: Label Required: true
Wed Jun 04 06:42:28 PDT 2014 INFO: Error Label Name: GmailDelaySend/Errors
Wed Jun 04 06:42:28 PDT 2014 INFO: To Send Label Name: GmailDelaySend/ToSend
Wed Jun 04 06:42:28 PDT 2014 INFO: Trigger Minutes: 5
Wed Jun 04 06:42:28 PDT 2014 INFO: Delim: @
Wed Jun 04 06:42:28 PDT 2014 INFO: TimeZone: default
Wed Jun 04 06:42:28 PDT 2014 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Wed Jun 04 06:42:28 PDT 2014 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Wed Jun 04 06:42:28 PDT 2014 INFO: ------------
Wed Jun 04 06:43:13 PDT 2014 INFO: Starting main()
Wed Jun 04 06:43:13 PDT 2014 INFO: User preferences object empty.. reloading..
Wed Jun 04 06:43:13 PDT 2014 INFO: Loading default property for key:bcc value: 
false
Wed Jun 04 06:43:13 PDT 2014 INFO: -- Prefs --
Wed Jun 04 06:43:13 PDT 2014 INFO: Triggers: false
Wed Jun 04 06:43:13 PDT 2014 INFO: Email Receipts: true
Wed Jun 04 06:43:13 PDT 2014 INFO: Error Notifications: false
Wed Jun 04 06:43:13 PDT 2014 INFO: Debugging: true
Wed Jun 04 06:43:13 PDT 2014 INFO: Top level Name: GmailDelaySend
Wed Jun 04 06:43:13 PDT 2014 INFO: Label Required: true
Wed Jun 04 06:43:13 PDT 2014 INFO: Error Label Name: GmailDelaySend/Errors
Wed Jun 04 06:43:13 PDT 2014 INFO: To Send Label Name: GmailDelaySend/ToSend
Wed Jun 04 06:43:13 PDT 2014 INFO: Trigger Minutes: 5
Wed Jun 04 06:43:13 PDT 2014 INFO: Delim: @
Wed Jun 04 06:43:13 PDT 2014 INFO: TimeZone: default
Wed Jun 04 06:43:13 PDT 2014 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Wed Jun 04 06:43:13 PDT 2014 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Wed Jun 04 06:43:13 PDT 2014 INFO: ------------
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache hit
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache hit
Wed Jun 04 06:43:13 PDT 2014 INFO: Searching for emails with this string: " 
label:GmailDelaySend/ToSend -label:GmailDelaySend/Errors "
Wed Jun 04 06:43:13 PDT 2014 INFO: Found 1 threads to process
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:13 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:13 PDT 2014 INFO: User timezone:default
Wed Jun 04 06:43:14 PDT 2014 INFO: Loading timezone from calendar: 
America/New_York
Wed Jun 04 06:43:14 PDT 2014 INFO: Converted:Wed Jun 04 2014 05:50:50 GMT-0700 
(PDT) to user time:Wed Jun 04 2014 08:50:50 GMT-0700 (PDT)
Wed Jun 04 06:43:15 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:15 PDT 2014 INFO: Is HTML email:true
Wed Jun 04 06:43:15 PDT 2014 INFO: Service cache miss
Wed Jun 04 06:43:15 PDT 2014 INFO: Parsing date and body from email with 
regex:/^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Wed Jun 04 06:43:15 PDT 2014 INFO: Match[0] substring:
@June
Wed Jun 04 06:43:15 PDT 2014 INFO: Match[1] substring:
Wed Jun 04 06:43:15 PDT 2014 INFO: Match[2] substring:@June 30 8am
Wed Jun 04 06:43:15 PDT 2014 INFO: Match[3] substring:Dear Proteans,

Some of you know that I do

Original issue reported on code.google.com by k...@kesslin.com on 4 Jun 2014 at 1:48

GoogleCodeExporter commented 9 years ago
Hi guys, 

I have the same error again and again. Looks like my Gmail doesn't see the @ 
sign. I'm not familiar with the codes, so can you please help me to fix it in 
plain English? 

Thank you,
Y

Original comment by ya.kondr...@gmail.com on 6 Oct 2014 at 1:05