Announcement

Collapse
No announcement yet.

pop mail on - scrip error (HS2)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    pop mail on - scrip error (HS2)

    I am trying Jon00 email plugin since I got some index errors with homeseer default email (using gmail + stunnel)

    I am having issues though once running the event manually

    08/11/2014 23:26:18 - Error - Script compile error: Character is not valid.on line -3

    here's my checkpop config

    Code:
    [Mailbox1]
    FriendlyName="Daniels Mail"
    Hostname = "localhost"
    Username = "recent:XXX@gmail.com"
    Password = "XXXX"
    Port=110
    Emailaddress="XXXX@gmail.com"
    Emailname="XXXX"
    Displayname="XXXX"
    HSAccountname="XXXX"
    AnnouncementWav="Chime1.wav"
    Preferences="1| | | | | | | | "
    All other settings are defaults

    any suggestions?

    #2
    How are you calling the script in the event?
    Jon

    Comment


      #3
      by clicking "run" on "Jon00s Check Email" ( the one created from the installation)

      BTW - my stunnel config hasnt been revised, as gMail worked with the default conf file in HS2 (w/o Jon00 email)

      here's part of its log

      2014.11.08 22:55:02 LOG5[6204]: Service [gmail-pop3] connected remote server from 192.168.0.104:60517
      2014.11.08 22:56:48 LOG3[6204]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)
      2014.11.08 22:56:48 LOG5[6204]: Connection reset: 2188 byte(s) sent to SSL, 406483 byte(s) sent to socket

      Comment


        #4
        I'm more concerned about the error as the config should not cause this.

        What version on HS2 are you running?
        Jon

        Comment


          #5
          you mean this error?

          2014.11.08 22:56:48 LOG3[6204]: readsocket: Connection reset by peer (WSAECONNRESET) (10054)

          ?

          Maybe this is causing the index error (before I installed your plugin)

          Comment


            #6
            No the error when you run the event:

            08/11/2014 23:26:18 - Error - Script compile error: Character is not valid.on line -3
            Jon

            Comment


              #7
              is there a debug level log file we can look into,

              re the HS2 version i am not sure, I am away from server now

              Comment


                #8
                As the script is not even running, there is nothing to debug...
                Jon

                Comment


                  #9
                  Professional Edition 2.3.0.19

                  Comment


                    #10
                    That is far too old. The latest version is 2.5.0.81.
                    Jon

                    Comment


                      #11
                      you think an update will resolve this?
                      I will give it a try

                      BTW - have an idea why do I get the index out of bounds error w/o your plugin?

                      Comment


                        #12
                        As so much has changed in HS2 since V2.3, I have no idea. Upgrading to the latest version should solve your issue.
                        Jon

                        Comment


                          #13
                          indeed Jon, the upgrade resolved it, Thanks.
                          I didn't try your plugin again, I am "stuck" on the simple action of firing an action per email subject

                          Code:
                          &if hs.MailSubject(hs.MailTrigger) = "Lights On" then hs.execx10 "A1+2","on"
                          What ever I did, I couldn't run this event successfully, and I am not sure where the problem is.

                          Comment


                            #14
                            Jon, do you see anything wrong here?

                            Comment


                              #15
                              It looks OK, however I would look at the output from hs.MailSubject i.e

                              PHP Code:
                              &hs.Writelog "Test"hs.MailSubject(hs.MailTrigger
                              Jon

                              Comment

                              Working...
                              X