Autor Thema: neues modul mailcheck  (Gelesen 82165 mal)

Offline det.

  • Sr. Member
  • ****
  • Beiträge: 939
Aw: neues modul mailcheck
« Antwort #30 am: 02 September 2013, 20:31:05 »
Ich möchte noch mal die Frage stellen, mit welchem Mailprovider läuft es bei Euch?
Nach ca. 1/2 h Inaktivität war zwar FHEM noch nicht abgestürzt, aber mailcheck empfing keine Mails mehr (keinerlei Ausgaben inzwischen auf der Konsole) - das ging nach FHEM Neustart sofort wieder. Ich habe es mit meinem STRATO Konto getestet. Den Effekt hatte ich mit dem T-Online Konto nicht, da stürzt FHEM dafür täglich gegen 6.45 Uhr ab. Es liegt das Problem offenbar nicht am Modul sondern an nicht mitspielendem Mailprovider.
l.g. det.

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 16347
Aw: neues modul mailcheck
« Antwort #31 am: 04 September 2013, 19:58:48 »
hast du etwas in den logs sehen können ?

gruss
  andre
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #32 am: 05 September 2013, 06:55:45 »
Mir ist gerade aufgefallen das der Status auch dann "Logged in" ist wenn eine falsche Mail Adresse und/oder Passwort definiert wurden.
Tritt das nur bei mir auf (Ich verwende gMail)?

Zwecks Stabilitätstest habe ich mailcheck jetzt auf meinem echt System laufen.
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 16347
Aw: neues modul mailcheck
« Antwort #33 am: 05 September 2013, 12:12:03 »
das muss ich mal prüfen. der status logged in wird eigentlich nur gesetzt wenn mir das imap modul meldet das es connected ist.

siehst du im log 'logged out' oder disconnected einträge ?

gruss
  andre
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline det.

  • Sr. Member
  • ****
  • Beiträge: 939
Aw: neues modul mailcheck
« Antwort #34 am: 05 September 2013, 12:30:34 »
Leider keinerlei Logeinträge im Absturzfall. T-Online wie gehabt läuft bis 6.45 und gmail auf dem anderen Pi stürzt schneller ab. Da habe ich aber keine loggenden Temperatursensoren dran, so dass ich nicht sehen kann bis wann es läuft.
l.g. det.

Offline betateilchen

  • Developer
  • Hero Member
  • ****
  • Beiträge: 13024
  • Probleme sind auch keine Lösung.
Aw: neues modul mailcheck
« Antwort #35 am: 05 September 2013, 12:51:45 »
Zitat von: det. schrieb am Do, 05 September 2013 12:30
Da habe ich aber keine loggenden Temperatursensoren dran, so dass ich nicht sehen kann bis wann es läuft.


definiere doch ein presence auf sich selbst, dann findest Du es heraus :)
Aus technischen Gründen befindet sich die Signatur auf der Rückseite dieses Beitrages.

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 16347
Aw: neues modul mailcheck
« Antwort #36 am: 05 September 2013, 13:00:23 »
nichts was auf den grund hindeutet oder garnichts?

du solltest zumindest die imap kommunikation sehen.

gruss
  andre
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline det.

  • Sr. Member
  • ****
  • Beiträge: 939
Aw: neues modul mailcheck
« Antwort #37 am: 05 September 2013, 16:20:43 »
Hallo Andre, hallo betateilchen,

habe den einen der RPIs zum Test von allem befreit, was sonstige LOG Einträge verursacht und PRESENCE LAN geloggt um zu sehen wann er schlafen geht. Mit gmail Konto auf der Konsole:pi@rpi3 ~ $ Sending: 2 CAPABILITY
Sent 14 bytes
Read:   * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
        2 OK Success
Sending: 3 SELECT INBOX
Sent 16 bytes
Read:   * FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk)
        * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk Junk \*)] Flags permitted.
        * OK [UIDVALIDITY 7] UIDs valid.
        * 1 EXISTS
        * 0 RECENT
        * OK [UIDNEXT 1995] Predicted next UID.
        * OK [HIGHESTMODSEQ 73288]
        3 OK [READ-WRITE] INBOX selected. (Success)
Sending: 4 IDLE
Sent 8 bytes
Read:   + idling
Read:   * 2 EXISTS
Sending: DONE
Sent 6 bytes
Read:   4 OK IDLE terminated (Success)
Sending: 6 STATUS INBOX (UNSEEN)
Sent 25 bytes
Read:   * STATUS "INBOX" (UNSEEN 2)
        6 OK Success
Sending: 7 FETCH 2 BODY.PEEK[HEADER.FIELDS (From)]
Sent 43 bytes
LITERAL: received literal in line * 2 FETCH (BODY[HEADER.FIELDS (From)] of length 56; attempting to retrieve from the 59 bytes in: From: <xx>

  )
  <END_OF_iBuffer>
Read:   * 2 FETCH (BODY[HEADER.FIELDS (From)]   From: >xx>

        )
Read:   7 OK Success
found data between fetch headers: 7 OK Success
Sending: 8 FETCH 2 BODY.PEEK[HEADER.FIELDS (Subject)]
Sent 46 bytes
LITERAL: received literal in line * 2 FETCH (BODY[HEADER.FIELDS (Subject)] of length 17; attempting to retrieve from the 34 bytes in: Subject: FHEM

  )
  8 OK Success
  <END_OF_iBuffer>
Read:   * 2 FETCH (BODY[HEADER.FIELDS (Subject)]        Subject: FHEM

        )
        8 OK Success
found data between fetch headers: 8 OK Success
Sending: 9 STORE 2 +FLAGS.SILENT (\Deleted)
Sent 36 bytes
Read:   9 OK Success
Sending: 10 IDLE
Sent 9 bytes
Read:   + idling
        * 2 EXPUNGE
        * 1 EXISTS
und im LOG:2013.09.05 15:42:11 1: Including /etc/fhem.cfg
2013.09.05 15:42:13 3: WEB: port 8083 opened
2013.09.05 15:42:13 3: telnetPort: port 7072 opened
2013.09.05 15:42:13 3: FHEM2FHEM opening RPICON1 at 192.168.2.48:7072
2013.09.05 15:42:13 3: FHEM2FHEM device opened (RPICON1)
2013.09.05 15:42:13 3: FHEM2FHEM opening RPICON2 at 192.168.2.44:7072
2013.09.05 15:42:13 3: FHEM2FHEM device opened (RPICON2)
2013.09.05 15:42:13 3: FHEM2FHEM opening FBXCON at 192.168.2.1:7072
2013.09.05 15:42:13 3: FHEM2FHEM device opened (FBXCON)
2013.09.05 15:42:13 3: WEBtablet: port 8085 opened
2013.09.05 15:42:14 3: Connecting to database SQLite:dbname=/usr/share/fhem/fhem.db with user
2013.09.05 15:42:14 3: Connection to db SQLite:dbname=/usr/share/fhem/fhem.db established
2013.09.05 15:42:14 3: Connection to db SQLite:dbname=/usr/share/fhem/fhem.db established
2013.09.05 15:42:14 3: Opening CUL0 device /dev/ttyAMA0
2013.09.05 15:42:14 3: Setting CUL0 baudrate to 38400
2013.09.05 15:42:14 3: CUL0 device opened
2013.09.05 15:42:15 3: CUL0: Possible commands: mCFiAZGMRTVWXefltux
2013.09.05 15:42:15 2: Switched CUL0 rfmode to MAX
2013.09.05 15:42:17 3: newMail: connected to imap.gmail.com
2013.09.05 15:42:17 3: newMail: logged in to xx@gmail.com
2013.09.05 15:42:18 1: Including /var/log/fhem/fhem.save
2013.09.05 15:42:19 1: usb create starting
2013.09.05 15:42:20 1: usb create end
2013.09.05 15:42:20 0: Server started with 21 defined entities (version $Id: fhem.pl 3846 2013-09-03 09:22:23Z rudolfkoenig $, os linux, user pi, pid 26205)
kamen die ersten zwei Testmail an, danach tat sich nichts mehr - FHEM läuft noch. Ich stell das jetzt mal auf das T-ONLINE Konto um und lass das laufen. Gibt es eine Möglichkeit, die Konsolenausgabe in eine Datei zu loggen?
l.g. det.

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #38 am: 05 September 2013, 19:46:53 »
Hallo,

Zitat
Mir ist gerade aufgefallen das der Status auch dann "Logged in" ist wenn eine falsche Mail Adresse und/oder Passwort definiert wurden.


bei falschen Logindaten steht im Log

2013.09.05 19:19:56 3: STATUS_MailCheck: connected to imap.gmail.com
2013.09.05 19:19:56 3: STATUS_MailCheck: logged in to fakemail@gmail.com


bei richtigen Logindaten steht allerdings das gleiche im Log

Auf der Konsole erscheint bei falschen Logindaten dabei folgendes
Sending: 2 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN
  2 OK Thats all she wrote! y5if3186177eej.17
Sending: 3 SELECT INBOX
Sent 16 bytes
Read: 3 BAD Unknown command y5if3186177eej.17
ERROR: 3 BAD Unknown command y5if3186177eej.17 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1371, <> line 96.
Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0x8b7d060)', 3, undef) called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1318
Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0x8b7d060)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1217
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x8b7d060)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 839
Mail::IMAPClient::select('Mail::IMAPClient=HASH(0x8b7d060)', 'INBOX') called at ./FHEM/32_mailcheck.pm line 109
main::mailcheck_Connect('HASH(0x8902c34)') called at ./FHEM/32_mailcheck.pm line 62
main::mailcheck_Define('HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
ERROR: 3 BAD Unknown command y5if3186177eej.17 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1266, <> line 96.
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x8b7d060)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 839
Mail::IMAPClient::select('Mail::IMAPClient=HASH(0x8b7d060)', 'INBOX') called at ./FHEM/32_mailcheck.pm line 109
main::mailcheck_Connect('HASH(0x8902c34)') called at ./FHEM/32_mailcheck.pm line 62
main::mailcheck_Define('HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
Sending: 4 IDLE
Sent 8 bytes
Read: 4 BAD Unknown command y5if3186177eej.17
ERROR: 4 BAD Unknown command y5if3186177eej.17 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1371, <> line 96.
Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0x8b7d060)', 4, '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1318
Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0x8b7d060)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1217
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x8b7d060)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1112
Mail::IMAPClient::idle('Mail::IMAPClient=HASH(0x8b7d060)') called at ./FHEM/32_mailcheck.pm line 111
main::mailcheck_Connect('HASH(0x8902c34)') called at ./FHEM/32_mailcheck.pm line 62
main::mailcheck_Define('HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
ERROR: 4 BAD Unknown command y5if3186177eej.17 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1266, <> line 96.
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x8b7d060)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1112
Mail::IMAPClient::idle('Mail::IMAPClient=HASH(0x8b7d060)') called at ./FHEM/32_mailcheck.pm line 111
main::mailcheck_Connect('HASH(0x8902c34)') called at ./FHEM/32_mailcheck.pm line 62
main::mailcheck_Define('HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0x8902c34)', 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com wrongmailadd...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396



Noch ergänzend dazu ist es bei mir auch aufgetreten das sich FHEM komplett verabschiedet hat. Zeitpunkt kann ich leider nicht ausmachen, FHEM bleibt dabei scheinbar komplett stehen. Aber den Tipp mit dem Presence werde ich mal testen, dann kann ich evtl. sagen wie lange es dauert bis das Problem auftaucht.

Gruß
Svenson
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #39 am: 05 September 2013, 20:14:22 »
So von mir noch ergänzend zu meinem vorhergehenden Post

bei richtigen Logindaten gibt die Konsole folgendes aus
Sending: 2 CAPABILITY
Sent 14 bytes
Read:   * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH
        2 OK Success
Sending: 3 SELECT INBOX
Sent 16 bytes
Read:   * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
        * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Flags permitted.
        * OK [UIDVALIDITY 1] UIDs valid.
        * 2 EXISTS
        * 0 RECENT
        * OK [UIDNEXT 36] Predicted next UID.
        * OK [HIGHESTMODSEQ 4355]
        3 OK [READ-WRITE] INBOX selected. (Success)
Sending: 4 IDLE
Sent 8 bytes
Read:   + idling


Zum stehen bleiben von FHEM.
Ich hab eine eMail an die zu überwachende Mail Adresse geschickt. In der Konsole erscheint dann folgendes
Read:         * 3 EXISTS
Can't call method "Dumper" on unblessed reference at ./FHEM/32_mailcheck.pm line 190.


Das ist auch das letzte Lebenszeichen. Danach muss ich FHEM über die Konsole neustarten .....

Gruß
Svenson
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 16347
Aw: neues modul mailcheck
« Antwort #40 am: 05 September 2013, 20:23:14 »
schmeiss die zeile 190 einfach mal raus oder bau ein 'use Data::Dumper' am anfang des files ein.

gruss
  andre
FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #41 am: 05 September 2013, 20:29:20 »
ok, damit ruft er jetzt zumindest wieder etwas ab ohne dabei direkt FHEM zu beenden.
Ich behalt das weiter im Auge und melde mich wenn es im dauertest wieder Probleme gibt.
Oder wenn es über Tage stabil läuft.

Was halt zu erst eintritt :)

Gruß
Svenson
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #42 am: 05 September 2013, 20:43:20 »
... das hat nicht lange gedauert ....

Also ca. 10-14 Minuten später, also nach dem Empfang der letzten eMail bleibt FHEM stehen.

In der Konsole steht dann folgendes:
ERROR: socket closed while reading data from server at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1614.
        Mail::IMAPClient::_read_line('Mail::IMAPClient=HASH(0x1757d70)') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1349
        Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0x1757d70)', '*', 'Regexp=REGEXP(0x1c97c88)') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1136
        Mail::IMAPClient::idle_data('Mail::IMAPClient=HASH(0x1757d70)') called at ./FHEM/32_mailcheck.pm line 189
        main::mailcheck_Read('HASH(0x174ed48)') called at fhem.pl line 2597
        main::CallFn('STATUS_MailCheck', 'ReadFn', 'HASH(0x174ed48)') called at fhem.pl line 508
Can't use an undefined value as an ARRAY reference at ./FHEM/32_mailcheck.pm line 192.


Gruß
Svenson
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors

Offline justme1968

  • Developer
  • Hero Member
  • ****
  • Beiträge: 16347
Aw: neues modul mailcheck
« Antwort #43 am: 05 September 2013, 21:50:45 »
ok...

bitte versuch mal diese version

gruss
  andre

FHEM5.4,DS1512+,2xCULv3,DS9490R,HMLAN,2xRasPi
CUL_HM:HM-LC-Bl1PBU-FM,HM-LC-Sw1PBU-FM,HM-SEC-MDIR,HM-SEC-RHS
HUEBridge,HUEDevice:LCT001,LLC001,LLC006,LWL001
OWDevice:DS1420,DS18B20,DS2406,DS2423
FS20:fs20as4,fs20bs,fs20di
AKCP:THS01,WS15
CUL_WS:S300TH

Offline svenson08

  • Developer
  • Full Member
  • ****
  • Beiträge: 479
Aw: neues modul mailcheck
« Antwort #44 am: 05 September 2013, 22:14:49 »
mit der aktuellen Version reagiert mailcheck nicht auf neue eMails.

Konsole gibt auch wieder Fehler aus

2 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN
  2 OK Thats all she wrote! f50if3208699eer.295
Sending: 3 SELECT INBOX
Sent 16 bytes
Read: 3 BAD Unknown command f50if3208699eer.295
ERROR: 3 BAD Unknown command f50if3208699eer.295 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1371, <> line 97.
Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0xa8571a4)', 3, undef) called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1318
Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0xa8571a4)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1217
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0xa8571a4)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 839
Mail::IMAPClient::select('Mail::IMAPClient=HASH(0xa8571a4)', 'INBOX') called at ./FHEM/32_mailcheck.pm line 108
main::mailcheck_Connect('HASH(0xa5dcc34)') called at ./FHEM/32_mailcheck.pm line 61
main::mailcheck_Define('HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
ERROR: 3 BAD Unknown command f50if3208699eer.295 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1266, <> line 97.
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0xa8571a4)', 'SELECT INBOX') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 839
Mail::IMAPClient::select('Mail::IMAPClient=HASH(0xa8571a4)', 'INBOX') called at ./FHEM/32_mailcheck.pm line 108
main::mailcheck_Connect('HASH(0xa5dcc34)') called at ./FHEM/32_mailcheck.pm line 61
main::mailcheck_Define('HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
Sending: 4 IDLE
Sent 8 bytes
Read: 4 BAD Unknown command f50if3208699eer.295
ERROR: 4 BAD Unknown command f50if3208699eer.295 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1371, <> line 97.
Mail::IMAPClient::_get_response('Mail::IMAPClient=HASH(0xa8571a4)', 4, '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1318
Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0xa8571a4)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1217
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0xa8571a4)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1112
Mail::IMAPClient::idle('Mail::IMAPClient=HASH(0xa8571a4)') called at ./FHEM/32_mailcheck.pm line 110
main::mailcheck_Connect('HASH(0xa5dcc34)') called at ./FHEM/32_mailcheck.pm line 61
main::mailcheck_Define('HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396
ERROR: 4 BAD Unknown command f50if3208699eer.295 at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1266, <> line 97.
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0xa8571a4)', 'IDLE', '+') called at /usr/local/share/perl/5.14.2/Mail/IMAPClient.pm line 1112
Mail::IMAPClient::idle('Mail::IMAPClient=HASH(0xa8571a4)') called at ./FHEM/32_mailcheck.pm line 110
main::mailcheck_Connect('HASH(0xa5dcc34)') called at ./FHEM/32_mailcheck.pm line 61
main::mailcheck_Define('HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 2598
main::CallFn('STATUS_MailCheck', 'DefFn', 'HASH(0xa5dcc34)', 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 1394
main::CommandDefine(undef, 'STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'define STATUS_MailCheck mailcheck imap.gmail.com fhemmail...') called at fhem.pl line 955
main::CommandInclude(undef, '/opt/fhem/config/test.cfg') called at fhem.pl line 827
main::AnalyzeCommand(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 715
main::AnalyzeCommandChain(undef, 'include /opt/fhem/config/test.cfg') called at fhem.pl line 955
main::CommandInclude(undef, 'fhem.cfg') called at fhem.pl line 396


Noch ergänzend, ich nutze Mailcheck mit dem Attribut delete_message 1 und gebe kein Folder an.

Gruß
Svenson
Raspberry PI, Cubietruck, Fhem 5.8, COC & CUL, FS20, HomeMatic, KNX, mySensors