Nidhiya / gmail-delay-send

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

GMail Delay Send -> Parsing Errors #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
=======================================
=== PLEASE READ BEFORE FILING ISSUE ===
=======================================
1.) Please check the list of common problems: https://code.google.com/p
/gmail-delay-send/wiki/GmailDelaySendErrors_8

2.) Please check if the issue has already been reported (search 'All
issues'): https://code.google.com/p/gmail-delay-send/issues/list

3.) If you are using version 0.7.7 of Gmail Delay Send support will be
limited. Many bug fixes are in the newest version 0.8. Please consider
upgrading: https://code.google.com/p/gmail-delay-
send/wiki/GmailDelaySendTransition_8

=======================================
=======================================

What steps will reproduce the problem?
1. happens with all emails
2.
3.

What is the expected output? What do you see instead?
email does not get sent - error message is received:
subject: GMail Delay Send -> Parsing Errors
Sorry! There was an error parsing your message with subject: "test". 
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

What version of the product are you using?
the latest - GmailDelaySendInstall_8  

Please provide any additional information below.

Original issue reported on code.google.com by gerhard....@gmail.com on 25 Jul 2013 at 10:01

GoogleCodeExporter commented 9 years ago
Hello gehard,

Could you provide an example email which is causing this error?

Thanks,
-Blair

Original comment by blairk...@gmail.com on 25 Jul 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Hello,

it happens with every email: even with an empty one

Original comment by gerhard....@gmail.com on 28 Jul 2013 at 7:36

GoogleCodeExporter commented 9 years ago
I have the same issue.

Here is the debugging info:
Mon Jul 29 14:24:36 PDT 2013 INFO: Starting main()
Mon Jul 29 14:24:36 PDT 2013 INFO: User preferences object empty.. reloading..
Mon Jul 29 14:24:36 PDT 2013 INFO: Loading default property for key:bcc value: 
false
Mon Jul 29 14:24:36 PDT 2013 INFO: Loading default property for key:bcc_suffix 
value: +gmaildelaysend
Mon Jul 29 14:24:36 PDT 2013 INFO: -- Prefs --
Mon Jul 29 14:24:36 PDT 2013 INFO: Triggers: true
Mon Jul 29 14:24:36 PDT 2013 INFO: Email Receipts: true
Mon Jul 29 14:24:36 PDT 2013 INFO: Error Notifications: true
Mon Jul 29 14:24:36 PDT 2013 INFO: Debugging: true
Mon Jul 29 14:24:36 PDT 2013 INFO: Top level Name: GmailDelaySend
Mon Jul 29 14:24:36 PDT 2013 INFO: Label Required: true
Mon Jul 29 14:24:36 PDT 2013 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jul 29 14:24:36 PDT 2013 INFO: Sent Label Name: GmailDelaySend/Sent
Mon Jul 29 14:24:36 PDT 2013 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jul 29 14:24:36 PDT 2013 INFO: Trigger Minutes: 10
Mon Jul 29 14:24:36 PDT 2013 INFO: Delim: @
Mon Jul 29 14:24:36 PDT 2013 INFO: TimeZone: default
Mon Jul 29 14:24:36 PDT 2013 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jul 29 14:24:36 PDT 2013 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Mon Jul 29 14:24:36 PDT 2013 INFO: ------------
Mon Jul 29 14:24:37 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:24:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:24:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:24:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:24:37 PDT 2013 INFO: Searching for emails with this string: 
"in:drafts + in:GmailDelaySend/ToSend + -label:GmailDelaySend/Errors "
Mon Jul 29 14:24:37 PDT 2013 INFO: No threads found to process.. exiting
Mon Jul 29 14:24:37 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:36 PDT 2013 INFO: Starting main()
Mon Jul 29 14:34:36 PDT 2013 INFO: User preferences object empty.. reloading..
Mon Jul 29 14:34:36 PDT 2013 INFO: Loading default property for key:bcc value: 
false
Mon Jul 29 14:34:36 PDT 2013 INFO: Loading default property for key:bcc_suffix 
value: +gmaildelaysend
Mon Jul 29 14:34:36 PDT 2013 INFO: -- Prefs --
Mon Jul 29 14:34:36 PDT 2013 INFO: Triggers: true
Mon Jul 29 14:34:36 PDT 2013 INFO: Email Receipts: true
Mon Jul 29 14:34:36 PDT 2013 INFO: Error Notifications: true
Mon Jul 29 14:34:36 PDT 2013 INFO: Debugging: true
Mon Jul 29 14:34:36 PDT 2013 INFO: Top level Name: GmailDelaySend
Mon Jul 29 14:34:36 PDT 2013 INFO: Label Required: true
Mon Jul 29 14:34:36 PDT 2013 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jul 29 14:34:36 PDT 2013 INFO: Sent Label Name: GmailDelaySend/Sent
Mon Jul 29 14:34:36 PDT 2013 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jul 29 14:34:36 PDT 2013 INFO: Trigger Minutes: 10
Mon Jul 29 14:34:36 PDT 2013 INFO: Delim: @
Mon Jul 29 14:34:36 PDT 2013 INFO: TimeZone: default
Mon Jul 29 14:34:36 PDT 2013 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jul 29 14:34:36 PDT 2013 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Mon Jul 29 14:34:36 PDT 2013 INFO: ------------
Mon Jul 29 14:34:37 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:34:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:34:37 PDT 2013 INFO: Service cache hit
Mon Jul 29 14:34:37 PDT 2013 INFO: Searching for emails with this string: 
"in:drafts + in:GmailDelaySend/ToSend + -label:GmailDelaySend/Errors "
Mon Jul 29 14:34:37 PDT 2013 INFO: Found 1 threads to process
Mon Jul 29 14:34:38 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:38 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:38 PDT 2013 INFO: Is HTML email:true
Mon Jul 29 14:34:38 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:38 PDT 2013 INFO: Parsing date and body from email with 
regex:/^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jul 29 14:34:38 PDT 2013 INFO: Matches:@now +5 min

Test at 4:27 pm with 10 min granularity

,@now +5 min

,Test at 4:27 pm with 10 min granularity,

Mon Jul 29 14:34:38 PDT 2013 INFO: Found possible datestring: Test at 4:27 pm 
with 10 min granularity
Mon Jul 29 14:34:38 PDT 2013 INFO: Could not find delim in possible datestring
Mon Jul 29 14:34:38 PDT 2013 INFO: Returning date_string: null
Mon Jul 29 14:34:38 PDT 2013 INFO: The message was malformed in some way. Found 
delimeter:false. Successful date parse: false
Mon Jul 29 14:34:38 PDT 2013 INFO: Processing message as error because user 
requires a label
Mon Jul 29 14:34:42 PDT 2013 INFO: Succesfully found label: 
GmailDelaySend/Errors
Mon Jul 29 14:34:42 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:42 PDT 2013 INFO: Service cache miss
Mon Jul 29 14:34:42 PDT 2013 INFO: Successfully added label 
(GmailDelaySend/Errors) to message with subject: Test 9
Mon Jul 29 14:34:42 PDT 2013 INFO: Because we are not using a label, skipping 
the removal process
Mon Jul 29 14:34:42 PDT 2013 INFO: Service cache miss

------
I am a little confused by the match line.  To be clear here is what I see as 
the body of the email in the Google Mail compose window:
@now +5 min

Test at 4:27 pm with 10 min granularity

I did have two earlier versions of the DelaySend installed and had some problem 
uninstalling (deleted the spreadsheet before I remembered that there was an 
uninstaller).  I did follow the instructions for people who delete things 
without thinking carefully.  I think things are OK now.  Searching Drive for 
Gmail no longer brings up anything.   As mentioned GmailDelaySend is now 
responding to the 8.0 configuration and sending the 8.0 error messages. 

Original comment by ehowl...@danenet.org on 29 Jul 2013 at 9:48

GoogleCodeExporter commented 9 years ago
I got thinking about this and saved this mail:
@now +2 min
@now +4 min

Test at @5:00 pm with 10 min granularity.

The debug found @now +4 min and sent the email. 
The email received started with "@now +2 min"

So then I wonder if I put a blank line at the beginning will allow the message 
to come through.  Yes it does.  Here is an excerpt from the degug.

Mon Jul 29 15:24:37 PDT 2013 INFO: Matches:

@now +4min

This test was saved at 5:16pm 
,

,@now +4min,

This test was saved at 5:16pm 
Mon Jul 29 15:24:37 PDT 2013 INFO: Found possible datestring: @now +4min

Original comment by ehowl...@danenet.org on 29 Jul 2013 at 10:35

GoogleCodeExporter commented 9 years ago
Hello ehowland,

Thanks for the awesome debug logs.. Trying to track down where the issue is b/c 
your examples seem to work when I try them.

Are you by chance using the 'old gmail compose' window? If so, could you try 
your experiment again with a 'text' only email and see if it works?

Thanks!
-Blair

Original comment by blairk...@gmail.com on 29 Jul 2013 at 11:06

GoogleCodeExporter commented 9 years ago
You are correct on both accounts.  I did see a message, now gone, which said I 
could upgrade my version of Mail.  I thought I was on the new version, but 
perhaps it is the old new version from a year or so ago. 

You were also correct that if I send this as a text only message it works as 
expected.  Here is the log:

I am glad to update my version, but thought that I would not do that now in 
case you want me to try something else. 

Mon Jul 29 16:11:05 PDT 2013 INFO: Saving preferences from form object which 
contains:
Mon Jul 29 16:11:05 PDT 2013 INFO: - localzone => default
Mon Jul 29 16:11:05 PDT 2013 INFO: - trigger_min => 10
Mon Jul 29 16:11:05 PDT 2013 INFO: - require_label => true
Mon Jul 29 16:11:05 PDT 2013 INFO: - email_receipts => true
Mon Jul 29 16:11:05 PDT 2013 INFO: - triggers => true
Mon Jul 29 16:11:05 PDT 2013 INFO: - debugging => true
Mon Jul 29 16:11:05 PDT 2013 INFO: - delim => @
Mon Jul 29 16:11:05 PDT 2013 INFO: - error_notification => true
Mon Jul 29 16:11:05 PDT 2013 INFO: User preferences object empty.. reloading..
Mon Jul 29 16:11:05 PDT 2013 INFO: Loading default property for key:bcc value: 
false
Mon Jul 29 16:11:05 PDT 2013 INFO: Loading default property for key:bcc_suffix 
value: +gmaildelaysend
Mon Jul 29 16:11:05 PDT 2013 INFO: Refreshed preference object now contains:
Mon Jul 29 16:11:05 PDT 2013 INFO: -- Prefs --
Mon Jul 29 16:11:05 PDT 2013 INFO: Triggers: true
Mon Jul 29 16:11:05 PDT 2013 INFO: Email Receipts: true
Mon Jul 29 16:11:05 PDT 2013 INFO: Error Notifications: true
Mon Jul 29 16:11:05 PDT 2013 INFO: Debugging: true
Mon Jul 29 16:11:05 PDT 2013 INFO: Top level Name: GmailDelaySend
Mon Jul 29 16:11:05 PDT 2013 INFO: Label Required: true
Mon Jul 29 16:11:05 PDT 2013 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jul 29 16:11:05 PDT 2013 INFO: Sent Label Name: GmailDelaySend/Sent
Mon Jul 29 16:11:05 PDT 2013 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jul 29 16:11:05 PDT 2013 INFO: Trigger Minutes: 10
Mon Jul 29 16:11:05 PDT 2013 INFO: Delim: @
Mon Jul 29 16:11:05 PDT 2013 INFO: TimeZone: default
Mon Jul 29 16:11:05 PDT 2013 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jul 29 16:11:05 PDT 2013 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Mon Jul 29 16:11:05 PDT 2013 INFO: ------------
Mon Jul 29 16:11:08 PDT 2013 INFO: Setting up trigger for function:main 
minutes: 10
Mon Jul 29 16:11:10 PDT 2013 INFO: Trigger has not already been set for 
function:main. Setting now to every: 10 minutes
Mon Jul 29 16:18:19 PDT 2013 INFO: Starting main()
Mon Jul 29 16:18:19 PDT 2013 INFO: User preferences object empty.. reloading..
Mon Jul 29 16:18:19 PDT 2013 INFO: Loading default property for key:bcc value: 
false
Mon Jul 29 16:18:19 PDT 2013 INFO: Loading default property for key:bcc_suffix 
value: +gmaildelaysend
Mon Jul 29 16:18:19 PDT 2013 INFO: -- Prefs --
Mon Jul 29 16:18:19 PDT 2013 INFO: Triggers: true
Mon Jul 29 16:18:19 PDT 2013 INFO: Email Receipts: true
Mon Jul 29 16:18:19 PDT 2013 INFO: Error Notifications: true
Mon Jul 29 16:18:19 PDT 2013 INFO: Debugging: true
Mon Jul 29 16:18:19 PDT 2013 INFO: Top level Name: GmailDelaySend
Mon Jul 29 16:18:19 PDT 2013 INFO: Label Required: true
Mon Jul 29 16:18:19 PDT 2013 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jul 29 16:18:19 PDT 2013 INFO: Sent Label Name: GmailDelaySend/Sent
Mon Jul 29 16:18:19 PDT 2013 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jul 29 16:18:19 PDT 2013 INFO: Trigger Minutes: 10
Mon Jul 29 16:18:19 PDT 2013 INFO: Delim: @
Mon Jul 29 16:18:19 PDT 2013 INFO: TimeZone: default
Mon Jul 29 16:18:19 PDT 2013 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jul 29 16:18:19 PDT 2013 INFO: getTextRegex: /^\s*@([^<]*)(<[\s\S]*)/
Mon Jul 29 16:18:19 PDT 2013 INFO: ------------
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache hit
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache hit
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache hit
Mon Jul 29 16:18:20 PDT 2013 INFO: Searching for emails with this string: 
"in:drafts + in:GmailDelaySend/ToSend + -label:GmailDelaySend/Errors "
Mon Jul 29 16:18:20 PDT 2013 INFO: Found 2 threads to process
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:20 PDT 2013 INFO: Is HTML email:false
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:20 PDT 2013 INFO: Parsing date and body from email with 
regex:/^\s*@([^<]*)(<[\s\S]*)/
Mon Jul 29 16:18:20 PDT 2013 INFO: Matches:@now +2min
@now +4min

Saved  6:14pm
,now +2min,
@now +4min

Saved  6:14pm
Mon Jul 29 16:18:20 PDT 2013 INFO: Returning date_string: now +2min
Mon Jul 29 16:18:20 PDT 2013 INFO: Date String: now +2min Relative to date 
message was composed: Mon Jul 29 2013 16:15:27 GMT-0700 (PDT)
Mon Jul 29 16:18:20 PDT 2013 INFO: Date to send: Mon Jul 29 2013 16:20
Mon Jul 29 16:18:20 PDT 2013 INFO: Service cache hit
Mon Jul 29 16:18:20 PDT 2013 INFO: User timezone:default
Mon Jul 29 16:18:21 PDT 2013 INFO: Loading timezone from calendar: 
America/Chicago
Mon Jul 29 16:18:21 PDT 2013 INFO: User date string:2013/07/29 18:18:21
Mon Jul 29 16:18:21 PDT 2013 INFO: Message date ms: 1375140020979 + Current 
time ms:1375147106000
Mon Jul 29 16:18:21 PDT 2013 INFO: Detected time to send message: true. Send 
Date: Mon Jul 29 2013 16:20 Current user date:Mon Jul 29 2013 18:18
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache miss
Mon Jul 29 16:18:21 PDT 2013 INFO: Service cache hit
Mon Jul 29 16:18:21 PDT 2013 INFO: Is HTML email:false
Mon Jul 29 16:18:21 PDT 2013 INFO: == Sending mail ==
Mon Jul 29 16:18:21 PDT 2013 INFO: To: Eric Howland
Mon Jul 29 16:18:21 PDT 2013 INFO: Subject: Testdelay14
Mon Jul 29 16:18:21 PDT 2013 INFO: Body length: 32
Mon Jul 29 16:18:21 PDT 2013 INFO: HTML body length: Empty
Mon Jul 29 16:18:21 PDT 2013 INFO: CC:
Mon Jul 29 16:18:21 PDT 2013 INFO: BCC:

Original comment by ehowl...@danenet.org on 29 Jul 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Ok good.

The problem (if you're interested is in how the new versus old compose windows 
space out their HTML).

You don't have to avoid upgrading on my behalf. I can revert my account to the 
old window for testing.

Will update the bug again when fix is ready. BTW: If you do want to switch to 
the new compose behavior it should fix the issue.

Thanks,
-Blair

Original comment by blairk...@gmail.com on 29 Jul 2013 at 11:39

GoogleCodeExporter commented 9 years ago
Hey guys, I think I figured this one out with change: 
https://code.google.com/p/gmail-delay-send/source/detail?r=6b4a7d6b2b249d8044e6b
692cc10769b5d9708c4

I'll be testing tomorrow and try to push this batch of changes then.

-Blair

Original comment by blairk...@gmail.com on 30 Jul 2013 at 11:13

GoogleCodeExporter commented 9 years ago
Issue 90 has been merged into this issue.

Original comment by blairk...@gmail.com on 30 Jul 2013 at 11:13

GoogleCodeExporter commented 9 years ago
New version is pushed, please let me know if you guys still see these types of 
issues.

Thanks,
-Blair

Original comment by blairk...@gmail.com on 31 Jul 2013 at 11:33