[sync] Error while Syncing Emails via ActiveSync

Jan Schneider jan at horde.org
Mon Oct 29 11:57:04 UTC 2012


Zitat von Silvester Plank <silvester.plank at web.de>:

> Hello,
>
> i installed a clean Horde 5 beta last week. Everything worked as i  
> expected except syncing Mails via ActiveSync. I Updated to RC1  
> hoping that it works now, but the error is still the same.
> I can Sync Calendars, Tasks and Contacts, so ActiveSync itself works.
> The ActiveSync log just shows me:
>
>
> 2012-10-26T23:45:40+00:00 DEBUG: Updating state during change
> 2012-10-26T23:45:40+00:00 DEBUG: Horde::getMessage(INBOX, 5160)
> 2012-10-26T23:45:40+00:00 ERR: Der E-Mail-Server hat die Verbindung  
> unerwartet unterbrochen.
> 2012-10-26T23:45:40+00:00 ERR: Unknown backend error skipping  
> message: Der E-Mail-Server hat die Verbindung unerwartet unterbrochen.
>
>
> for every message i try to recive.
> Next i tried to activate the IMP log in my IMAP Configuration:
>
>
> S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN  
> AUTH=LOGIN SASL-IR] *mailserver* Cyrus IMAP v2.4.16 server ready
> C: [LOGIN Command - username: *user*]
> S: 118 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte  
> QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT  
> CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT  
> SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES  
> ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH  
> URLAUTH=BINARY LOGINDISABLED AUTH=PLAIN AUTH=LOGIN COMPRESS=DEFLATE  
> IDLE] User logged in SESSIONID=<*mailserver*-27835-1351169094-1>
> C: 119 EXAMINE "INBOX"
> S: * 4575 EXISTS
> S: * 0 RECENT
> S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen XOPL-1 $NotJunk  
> $Junk JunkRecorded $Forwarded NotJunk)
> S: * OK [PERMANENTFLAGS ()] Ok
> S: * OK [UIDVALIDITY 1203324865] Ok
> S: * OK [UIDNEXT 5174] Ok
> S: * OK [HIGHESTMODSEQ 842] Ok
> S: * OK [URLMECH INTERNAL] Ok
> S: 119 OK [READ-ONLY] Completed
> C: 120 UID FETCH 5160 (BODYSTRUCTURE FLAGS)
> S: * 4562 FETCH (FLAGS (\Seen $NotJunk NotJunk) UID 5160  
> BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "utf-8" "FORMAT" "flowed"  
> "DELSP" "Yes") NIL NIL "BASE64" 756 10 NIL ("INLINE" NIL) NIL NIL))
> S: 120 OK Completed (0.000 sec)
> C: 121 UID FETCH 5160 (ENVELOPE)
> S: * 4562 FETCH (UID 5160 ENVELOPE ("Wed, 24 Oct 2012 13:04:39
> *envelope*
> S: 121 OK Completed (0.000 sec)
> C: 122 UID FETCH 5160 (BINARY.PEEK[1]<0.500> BINARY.SIZE[1])
> S: >> ERROR: IMAP read/timeout error.
> C: 123 LOGOUT
>>> ERROR: Server closed the connection.
>
>
> Though accessing mails with the IMP Backend itself works, so i  
> Accesed the the Email above to find out what is different:
>
>
>>> Timestamp: Fri, 26 Oct 2012 08:19:35 +0000
> S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN  
> AUTH=LOGIN SASL-IR] *mailserver* Cyrus IMAP v2.4.16 server ready
> C: [LOGIN Command - username: *user*]
> S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte  
> QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT  
> CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT  
> SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES  
> ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH  
> URLAUTH=BINARY LOGINDISABLED AUTH=PLAIN AUTH=LOGIN COMPRESS=DEFLATE  
> IDLE] User logged in SESSIONID=<*mailserver*-6720-1351239575-1>
> C: 2 SELECT "INBOX"
> S: * 4579 EXISTS
> S: * 0 RECENT
> S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen XOPL-1 $NotJunk  
> $Junk JunkRecorded $Forwarded NotJunk)
> S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen  
> XOPL-1 $NotJunk $Junk JunkRecorded $Forwarded NotJunk \*)] Ok
> S: * OK [UIDVALIDITY 1203324865] Ok
> S: * OK [UIDNEXT 5178] Ok
> S: * OK [HIGHESTMODSEQ 862] Ok
> S: * OK [URLMECH INTERNAL] Ok
> S: 2 OK [READ-WRITE] Completed
> C: 3 UID FETCH 5160 (BODYSTRUCTURE)
> S: * 4562 FETCH (UID 5160 BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET"  
> "utf-8" "FORMAT" "flowed" "DELSP" "Yes") NIL NIL "BASE64" 756 10 NIL  
> ("INLINE" NIL) NIL NIL))
> S: 3 OK Completed (0.010 sec)
> C: 4 UID FETCH 5160 (ENVELOPE)
> S: * 4562 FETCH (UID 5160 ENVELOPE ("Wed, 24 Oct 2012 13:04:39
> *envelope*
> S: 4 OK Completed (0.000 sec)
> C: 5 UID FETCH 5160 (BODY[HEADER])
> S: * 4562 FETCH (UID 5160 BODY[HEADER] {3713}
> S:
> *header*
> S: )
> S: 5 OK Completed (0.000 sec)
> C: 6 UID FETCH 5160 (BINARY.PEEK[1])
> S: * 4562 FETCH (UID 5160 BINARY[1] {550}
> S:
> *body*
> S: 6 OK Completed (0.000 sec)
> C: 7 SEARCH RETURN (COUNT) UNSEEN
> S: * ESEARCH (TAG "7") COUNT 0
> S: 7 OK Completed (0 msgs in 0.010 secs)
> C: 8 LOGOUT
> S: * BYE LOGOUT received
> S: 8 OK Completed
>
>
> Now i can Tell, that the ActiveSync Session is trying to skip the  
> Mail Headers and directly accessing the Body. But i also have no  
> idea what i could do next to fix that. I Tried to access a different  
> IMAP Account, so there is nothing wrong with my IMAP Account. The  
> logs above come from a sync with a iOS6 device, though i also tested  
> it with a HTC One S (i forgot to look up the installed Android  
> version) and the errors are the same.

This is a crash bug in Cyrus, fixed for version 2.4.17.
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the sync mailing list