google-code-export / gmail-delay-send

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

Trigger isn't parsed #187

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. Received an E-Mail from Script Notifications that DelaySent could not 
properly be executed because the maximal execution time had been exceeded - I 
have DelaySend installed less that a week. Went back and looked at the given 
link, everything seemed ok.
2. Write any E-Mail while using the trigger (properly, in the first line).
3. Will receive error saying trigger isn't in the first line. I tried changing 
trigger and date formats. Nothing works. Worked before.

What is the expected output? What do you see instead?
E-Mail is moved from SentTo to Error instead of being send.

What version of the product are you using?
Current, 0.8.

Please provide any additional information below.

Debug Log:

Mon Jan 19 08:28:38 PST 2015 INFO: Starting main()
Mon Jan 19 08:28:38 PST 2015 INFO: User preferences object empty.. reloading..
Mon Jan 19 08:28:38 PST 2015 INFO: Loading default property for key:bcc value: 
false
Mon Jan 19 08:28:38 PST 2015 INFO: -- Prefs --
Mon Jan 19 08:28:38 PST 2015 INFO: Triggers: true
Mon Jan 19 08:28:38 PST 2015 INFO: Email Receipts: true
Mon Jan 19 08:28:38 PST 2015 INFO: Error Notifications: true
Mon Jan 19 08:28:38 PST 2015 INFO: Debugging: true
Mon Jan 19 08:28:38 PST 2015 INFO: Top level Name: GmailDelaySend
Mon Jan 19 08:28:38 PST 2015 INFO: Label Required: true
Mon Jan 19 08:28:38 PST 2015 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jan 19 08:28:38 PST 2015 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jan 19 08:28:38 PST 2015 INFO: Trigger Minutes: 1
Mon Jan 19 08:28:38 PST 2015 INFO: Delim: !!
Mon Jan 19 08:28:38 PST 2015 INFO: TimeZone: Europe/Berlin
Mon Jan 19 08:28:38 PST 2015 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jan 19 08:28:38 PST 2015 INFO: getTextRegex: /^\s*!!([^<]*)(<[\s\S]*)/
Mon Jan 19 08:28:38 PST 2015 INFO: ------------
Mon Jan 19 08:28:38 PST 2015 INFO: Service cache miss
Mon Jan 19 08:28:38 PST 2015 INFO: Service cache hit
Mon Jan 19 08:28:38 PST 2015 INFO: Service cache hit
Mon Jan 19 08:28:38 PST 2015 INFO: Searching for emails with this string: " 
label:GmailDelaySend/ToSend -label:GmailDelaySend/Errors "
Mon Jan 19 08:28:39 PST 2015 INFO: No threads found to process.. exiting
Mon Jan 19 08:28:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:38 PST 2015 INFO: Starting main()
Mon Jan 19 08:29:38 PST 2015 INFO: User preferences object empty.. reloading..
Mon Jan 19 08:29:38 PST 2015 INFO: Loading default property for key:bcc value: 
false
Mon Jan 19 08:29:38 PST 2015 INFO: -- Prefs --
Mon Jan 19 08:29:38 PST 2015 INFO: Triggers: true
Mon Jan 19 08:29:38 PST 2015 INFO: Email Receipts: true
Mon Jan 19 08:29:38 PST 2015 INFO: Error Notifications: true
Mon Jan 19 08:29:38 PST 2015 INFO: Debugging: true
Mon Jan 19 08:29:38 PST 2015 INFO: Top level Name: GmailDelaySend
Mon Jan 19 08:29:38 PST 2015 INFO: Label Required: true
Mon Jan 19 08:29:38 PST 2015 INFO: Error Label Name: GmailDelaySend/Errors
Mon Jan 19 08:29:38 PST 2015 INFO: To Send Label Name: GmailDelaySend/ToSend
Mon Jan 19 08:29:38 PST 2015 INFO: Trigger Minutes: 1
Mon Jan 19 08:29:38 PST 2015 INFO: Delim: !!
Mon Jan 19 08:29:38 PST 2015 INFO: TimeZone: Europe/Berlin
Mon Jan 19 08:29:38 PST 2015 INFO: getHTMLRegex: /^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jan 19 08:29:38 PST 2015 INFO: getTextRegex: /^\s*!!([^<]*)(<[\s\S]*)/
Mon Jan 19 08:29:38 PST 2015 INFO: ------------
Mon Jan 19 08:29:38 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:38 PST 2015 INFO: Service cache hit
Mon Jan 19 08:29:38 PST 2015 INFO: Service cache hit
Mon Jan 19 08:29:38 PST 2015 INFO: Searching for emails with this string: " 
label:GmailDelaySend/ToSend -label:GmailDelaySend/Errors "
Mon Jan 19 08:29:38 PST 2015 INFO: Found 1 threads to process
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: User timezone:Europe/Berlin
Mon Jan 19 08:29:39 PST 2015 INFO: Converted:Mon Jan 19 2015 08:29:26 GMT-0800 
(PST) to user time:Mon Jan 19 2015 17:29:26 GMT-0800 (PST)
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Is HTML email:true
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Parsing date and body from email with 
regex:/^([\s\S]*?>)([^<]+)(<[\s\S]*)/
Mon Jan 19 08:29:39 PST 2015 INFO: Match[0] substring:
!!now
is this
Mon Jan 19 08:29:39 PST 2015 INFO: Match[1] substring:
Mon Jan 19 08:29:39 PST 2015 INFO: Match[2] substring:
Mon Jan 19 08:29:39 PST 2015 INFO: Match[3] substring:
!!now
is this thing on?
Mon Jan 19 08:29:39 PST 2015 INFO: Found possible datestring:
Mon Jan 19 08:29:39 PST 2015 INFO: Could not find delim in possible datestring
Mon Jan 19 08:29:39 PST 2015 INFO: HTML Parsing failed, Attempting text parsing.
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache hit
Mon Jan 19 08:29:39 PST 2015 INFO: Parsing date and body from email with 
regex:/^\s*!!([^<]*)(<[\s\S]*)/
Mon Jan 19 08:29:39 PST 2015 INFO: Empty Matches
Mon Jan 19 08:29:39 PST 2015 INFO: Returning date_string: null
Mon Jan 19 08:29:39 PST 2015 INFO: Text parsing result for date_string:null
Mon Jan 19 08:29:39 PST 2015 INFO: Returning date_string: null
Mon Jan 19 08:29:39 PST 2015 INFO: The message was malformed in some way. Found 
delimeter:false. Successful date parse: false
Mon Jan 19 08:29:39 PST 2015 INFO: Processing message as error because user 
requires a label
Mon Jan 19 08:29:39 PST 2015 INFO: Succesfully found label: 
GmailDelaySend/Errors
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Service cache miss
Mon Jan 19 08:29:39 PST 2015 INFO: Successfully added label 
(GmailDelaySend/Errors) to message with subject: test
Mon Jan 19 08:29:39 PST 2015 INFO: Removing label
Mon Jan 19 08:29:46 PST 2015 INFO: Service cache miss

Original issue reported on code.google.com by stefanen...@gmail.com on 19 Jan 2015 at 4:45