Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter ioBroker.imap latest/stable

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter ioBroker.imap latest/stable

    This topic has been deleted. Only users with topic management privileges can see it.
    • Ro75
      Ro75 last edited by

      In der letzten Version (Git) kamen bei mir folgende Fehler - zur Info:

      2023-04-30 13:27:20.927 - error: imap.0 (1149781) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
      2023-04-30 13:27:20.966 - error: imap.0 (1149781) unhandled promise rejection: this.clients[clientID].onNewRead is not a function
      2023-04-30 13:27:21.016 - error: imap.0 (1149781) TypeError: this.clients[clientID].onNewRead is not a function
      at Imap.onStateChange (/opt/iobroker/node_modules/iobroker.imap/main.js:1185:44)
      at Imap.emit (node:events:513:28)
      at Immediate. (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/build/lib/adapter/adapter.js:5385:53)
      at processImmediate (node:internal/timers:466:21)
      2023-04-30 13:27:21.017 - error: imap.0 (1149781) this.clients[clientID].onNewRead is not a function
      2023-04-30 13:27:21.819 - error: host.boinc instance system.adapter.imap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
      2023-04-30 13:27:21.852 - info: host.boinc Restart adapter system.adapter.imap.0 because enabled
      
      L 1 Reply Last reply Reply Quote 0
      • L
        Lucky_ESA Developer Most Active @Ro75 last edited by Lucky_ESA

        @ro75 Danke, werde ich mir anschauen.

        edit:
        Fehler sollte nun behoben sein.

        Gruß//Lucky

        1 Reply Last reply Reply Quote 0
        • B
          backfisch88 last edited by backfisch88

          wäre es denn auch Möglich anhänge zu speichern?

          desweiteren schmeisst mir der Adapter bei jeder Mail /nachdem er alles gelesen hat)

          host.iobroker
          2023-05-27 11:22:10.457	info	Restart adapter system.adapter.imap.0 because enabled
          host.iobroker
          2023-05-27 11:22:10.457	error	instance system.adapter.imap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
          
          imap.0
          2023-05-27 11:22:09.890	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
          
          imap.0
          2023-05-27 11:22:09.889	info	terminating
          
          imap.0
          2023-05-27 11:22:09.887	error	Cannot read properties of undefined (reading 'indexOf')
          
          imap.0
          2023-05-27 11:22:09.887	error	TypeError: Cannot read properties of undefined (reading 'indexOf') at /opt/iobroker/node_modules/iobroker.imap/lib/imap_event.js:492:53 at Array.filter (<anonymous>) at diff (/opt/iobroker/node_modules/iobroker.imap/lib/imap_event.js:492:34) at Imap.diffArray (/opt/iobroker/node_modules/iobroker.imap/lib/imap_event.js:497:20) at Imap.onMail (/opt/iobroker/node_modules/iobroker.imap/lib/imap_event.js:380:28) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
          
          imap.0
          2023-05-27 11:22:09.886	error	unhandled promise rejection: Cannot read properties of undefined (reading 'indexOf')
          
          imap.0
          2023-05-27 11:22:09.886	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
          
          imap.0
          2023-05-27 11:22:09.732	info	Es gibt 1 neue Post für das Gerät XXXXXXXX
          
          L 1 Reply Last reply Reply Quote 0
          • L
            Lucky_ESA Developer Most Active @backfisch88 last edited by

            @backfisch88 sagte in Test Adapter ioBroker.imap v0.0.1 GitHub:

            wäre es denn auch Möglich anhänge zu speichern?

            Habe den Fehler mal abgefangen und eine Warnung daraus gemacht. Kannst du bitte mal erneut vom GIT laden und mir die Warnung hier zur Verfügung stellen.

            Anhänge kannst du nur über Blocklys laden und verarbeiten. Kann diese nicht per Adapter verarbeiten da ich sonst euren RAM Verbrauch sprengen würde.
            Die Blocklys sind oben beschrieben.

            Gruß//Lucky

            B 1 Reply Last reply Reply Quote 0
            • B
              backfisch88 @Lucky_ESA last edited by

              @lucky_esa danke schon mal dafür

              host.iobroker
              2023-05-27 13:22:01.897	info	Restart adapter system.adapter.imap.0 because enabled
              host.iobroker
              2023-05-27 13:22:01.896	error	instance system.adapter.imap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
              
              imap.0
              2023-05-27 13:22:01.319	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
              
              imap.0
              2023-05-27 13:22:01.318	info	terminating
              
              imap.0
              2023-05-27 13:22:01.316	error	Cannot read properties of undefined (reading 'fullcmd')
              
              imap.0
              2023-05-27 13:22:01.316	error	TypeError: Cannot read properties of undefined (reading 'fullcmd') at Connection._resUntagged (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:1092:64) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:190:18) at Parser.emit (node:events:513:28) at Parser._resUntagged (/opt/iobroker/node_modules/node-imap/lib/Parser.js:272:12) at Parser._parse (/opt/iobroker/node_modules/node-imap/lib/Parser.js:133:18) at Parser._tryread (/opt/iobroker/node_modules/node-imap/lib/Parser.js:77:17) at Parser._cbReadable (/opt/iobroker/node_modules/node-imap/lib/Parser.js:55:14) at TLSSocket.emit (node:events:513:28) at emitReadable_ (node:internal/streams/readable:590:12) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
              
              imap.0
              2023-05-27 13:22:01.314	error	uncaught exception: Cannot read properties of undefined (reading 'fullcmd')
              

              immer noch das selbe... der komplette Adapter startet dann auch neu

              L 1 Reply Last reply Reply Quote 0
              • L
                Lucky_ESA Developer Most Active @backfisch88 last edited by

                @backfisch88

                immer noch das selbe... der komplette Adapter startet dann auch neu

                Oben war aber ein anderer Fehler. Habe diesen auch gerade gefixt.
                Komisch das da bei dir keine Daten kommen...Welchen Anbieter hast du?

                Gruß//Lucky

                B 1 Reply Last reply Reply Quote 0
                • B
                  backfisch88 @Lucky_ESA last edited by

                  @lucky_esa das ist ja der Witz. es kommen Daten und der Adapter stürzt komplett ab...

                  ist icloud - also Apple

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Lucky_ESA Developer Most Active @backfisch88 last edited by Lucky_ESA

                    @backfisch88 sagte in Test Adapter ioBroker.imap v0.0.1 GitHub:

                    @lucky_esa das ist ja der Witz. es kommen Daten und der Adapter stürzt komplett ab...

                    ist icloud - also Apple

                    Habe mich eventuell unglücklich ausgedrückt. Es kommen andere Daten als ich erwarte.
                    Aber dieser Fehler sollte nun gefixt sein. Kommt sowieso raus wenn der Adapter in den nächsten Jahren in Stable gehen sollte.

                    Wieder falsch ausgedrückt 🙂 Der Fehler ist eine Infoausgabe im Log wo aber keine Daten kommen. Dieses Info fliegt raus wenn ich in Stable gehe.

                    Gruß//Lucky

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      backfisch88 @Lucky_ESA last edited by

                      @lucky_esa

                      host.iobroker
                      2023-05-27 20:45:35.285	info	Restart adapter system.adapter.imap.0 because enabled
                      host.iobroker
                      2023-05-27 20:45:35.284	error	instance system.adapter.imap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                      
                      imap.0
                      2023-05-27 20:45:34.709	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                      
                      imap.0
                      2023-05-27 20:45:34.708	info	terminating
                      
                      imap.0
                      2023-05-27 20:45:34.706	error	Cannot read properties of undefined (reading 'fullcmd')
                      
                      imap.0
                      2023-05-27 20:45:34.706	error	TypeError: Cannot read properties of undefined (reading 'fullcmd') at Connection._resUntagged (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:1096:53) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:190:18) at Parser.emit (node:events:513:28) at Parser._resUntagged (/opt/iobroker/node_modules/node-imap/lib/Parser.js:272:12) at Parser._parse (/opt/iobroker/node_modules/node-imap/lib/Parser.js:133:18) at Parser._tryread (/opt/iobroker/node_modules/node-imap/lib/Parser.js:77:17) at Parser._cbReadable (/opt/iobroker/node_modules/node-imap/lib/Parser.js:55:14) at TLSSocket.emit (node:events:513:28) at emitReadable_ (node:internal/streams/readable:590:12) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
                      
                      imap.0
                      2023-05-27 20:45:34.704	error	uncaught exception: Cannot read properties of undefined (reading 'fullcmd')
                      

                      das kommt jetzt mitm neusten aus github... also stürzt immer noch ab ^^
                      trotzdem danke erst mal dafür, habe noch n ersatzscript übern mailparser, der aber etwas... naja nicht so gut ist 😄

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        Lucky_ESA Developer Most Active @backfisch88 last edited by

                        @backfisch88

                        das kommt jetzt mitm neusten aus github... also stürzt immer noch ab ^^
                        trotzdem danke erst mal dafür, habe noch n ersatzscript übern mailparser, der aber etwas... naja nicht so gut ist 😄

                        Wir werden es hinbekommen 🙂 Kannst in ca. 2 Minuten erneut laden...Warte bitte bis hier alles grün ist.
                        https://github.com/Lucky-ESA/ioBroker.imap/actions

                        Gruß//Lucky

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          backfisch88 @Lucky_ESA last edited by

                          @lucky_esa alles alles? ^^
                          eben geupdated nichts 😕

                          host.iobroker
                          2023-05-27 21:10:21.581	info	Restart adapter system.adapter.imap.0 because enabled
                          host.iobroker
                          2023-05-27 21:10:21.581	error	instance system.adapter.imap.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
                          
                          imap.0
                          2023-05-27 21:10:21.010	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
                          
                          imap.0
                          2023-05-27 21:10:21.009	info	terminating
                          
                          imap.0
                          2023-05-27 21:10:21.007	error	Cannot read properties of undefined (reading 'fullcmd')
                          
                          imap.0
                          2023-05-27 21:10:21.007	error	TypeError: Cannot read properties of undefined (reading 'fullcmd') at Connection._resUntagged (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:1096:30) at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.imap/lib/Connection.js:190:18) at Parser.emit (node:events:513:28) at Parser._resUntagged (/opt/iobroker/node_modules/node-imap/lib/Parser.js:272:12) at Parser._parse (/opt/iobroker/node_modules/node-imap/lib/Parser.js:133:18) at Parser._tryread (/opt/iobroker/node_modules/node-imap/lib/Parser.js:77:17) at Parser._cbReadable (/opt/iobroker/node_modules/node-imap/lib/Parser.js:55:14) at TLSSocket.emit (node:events:513:28) at emitReadable_ (node:internal/streams/readable:590:12) at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
                          
                          imap.0
                          2023-05-27 21:10:21.006	error	uncaught exception: Cannot read properties of undefined (reading 'fullcmd')
                          
                          L 1 Reply Last reply Reply Quote 0
                          • L
                            Lucky_ESA Developer Most Active @backfisch88 last edited by

                            @backfisch88 Habe diesen auch abgefangen. Bitte warte bis die 2 grün werden. Wahrscheinlich benötige ich mal ein komplettes Logfile. Der Fehler tritt auf wenn deine Mails gelesen werden.
                            Das Logfile kannst du dann an github@luckyskills.de senden.
                            Aber erst wenn dein Fehler weg ist....

                            Gruß//Lucky

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              backfisch88 @Lucky_ESA last edited by

                              @lucky_esa okay super 🙂 warte solang bis alles grün ist... dann kann ich dir n komplettes log (im debug??) schicken

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                Lucky_ESA Developer Most Active @backfisch88 last edited by

                                @backfisch88 sagte in Test Adapter ioBroker.imap v0.0.1 GitHub:

                                @lucky_esa okay super 🙂 warte solang bis alles grün ist... dann kann ich dir n komplettes log (im debug??) schicken

                                Ja, in debug Modus. Aber nicht so lange laufen lassen da dein Log sonst sehr groß wird. Kann mir das aber erst Montag anschauen. Daher hast du auch Zeit, muss nicht heute sein.

                                Gruß//Lucky

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  backfisch88 @Lucky_ESA last edited by

                                  @lucky_esa perfekt vielen dank!

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    Lucky_ESA Developer Most Active @backfisch88 last edited by

                                    @backfisch88 sagte in Test Adapter ioBroker.imap v0.0.1 GitHub:

                                    @lucky_esa perfekt vielen dank!

                                    Super, wenn du Anhänge laden möchtest dann begrenze deine Abfrage auf eine Mail dessen Anhang du laden willst. Es kommt ein JSON mit dem Attribut "attachments" welchen du dann mit writeFile in den vis Folder speichern kannst. Verwende dazu die Forensuche nach writeFile oder ohne in die Datenbank zu schreiben fs.writeFile
                                    var fs = require('fs');

                                    Gruß//Lucky

                                    B 1 Reply Last reply Reply Quote 1
                                    • B
                                      backfisch88 @Lucky_ESA last edited by

                                      @lucky_esa

                                      also es funktioniert jetzt... mit Ausnahme, dass es in die DP geschrieben wird^^

                                      mit dem Attachment bekomme ich hin danke 🙂

                                      bahnuhr 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @backfisch88 last edited by

                                        @backfisch88 sagte in Test Adapter ioBroker.imap v0.0.1 GitHub:

                                        @lucky_esa

                                        also es funktioniert jetzt... mit Ausnahme, dass es in die DP geschrieben wird^^

                                        mit dem Attachment bekomme ich hin danke 🙂

                                        Noch komme ich mit den Abfragen nicht so klar.
                                        Was möchte ich:
                                        Bei einer bestimmten Mail möchte ich den anhang speichern.
                                        fs.writefile kann ich.

                                        Nur wie mache ich eine solche Abfrage ?

                                        L 1 Reply Last reply Reply Quote 0
                                        • L
                                          Lucky_ESA Developer Most Active @bahnuhr last edited by Lucky_ESA

                                          @bahnuhr Leider hatte ich noch 2 Fehler. Bitte neu vom GIT laden. Sorry für die Umstände aber ich bekomme den Adapter nicht in latest da apollo77 keine Zeit hat.

                                          Versuche dann mal dieses Blockly zu importieren.

                                          anhang.txt


                                          anhang2.png
                                          anhang_1.png

                                          seqno ist bei einigen richtig wobei ich hier die uid nehmen musste.

                                          anhang_2.png

                                          Gruß//Lucky

                                          bahnuhr falke69 2 Replies Last reply Reply Quote 0
                                          • bahnuhr
                                            bahnuhr Forum Testing Most Active @Lucky_ESA last edited by

                                            @lucky_esa
                                            Import geht nicht !
                                            7ec1b7e6-6df6-4352-b2b2-4d169daa88fc-image.png

                                            L 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            853
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            26
                                            406
                                            59289
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo