z-push and faulty headers

Trouble installing? Post questions and find answers.

z-push and faulty headers

Postby HansMeiser » Thu Jun 28, 2012 7:47 am

Hello,

iam having an issue which seems not to be directly a bug of z-push, but its affected by faulty header created by other Applications.
Z-Push logs:
06/27/12 14:50:04 [7847] [myusername] IMAP-errors: Unexpected characters at end of address: <>
Correspondig Part in Mailheader seems to be:
From: "example@example.com" <>

There is no address between the <> in From Line, z-push stops syncing, imap-server itself has no problem with this.
I informed webmaster of sending system and telled that they create faulty headers but may be it is also a good idea to add a kind of fix in z-push to avoid errors caused by other Applications.

Thanks,
Hans
HansMeiser
 
Posts: 4
Joined: Wed Jun 27, 2012 2:03 pm

Re: z-push and faulty headers

Postby mku » Thu Jun 28, 2012 1:54 pm

Hi Hans,

which backend exactly are you using?

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: z-push and faulty headers

Postby HansMeiser » Thu Jun 28, 2012 2:01 pm

Hello,

it is BackendIMAP, no special settings.

Hans
HansMeiser
 
Posts: 4
Joined: Wed Jun 27, 2012 2:03 pm

Re: z-push and faulty headers

Postby mku » Thu Jun 28, 2012 2:08 pm

Hi Hans,

I can't find any piece of code in Z-Push which outputs "IMAP-errors:", only in kolab.php. Which Z-Push version are you using? Can you post more of the log?

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: z-push and faulty headers

Postby HansMeiser » Thu Jun 28, 2012 2:16 pm

Hello,

i can locate it in backend/imap.php line 92: foreach ($errors as $e) debugLog("IMAP-errors: $e");

this is full significant part:

Code: Select all
06/27/12 14:50:04 [7847] [myusername] IMAP connection opened sucessfully
06/27/12 14:50:04 [7847] [myusername] POST cmd: Sync
06/27/12 14:50:04 [7847] [myusername] Sync folder:Email
06/27/12 14:50:04 [7847] [myusername] Initializing message diff engine
06/27/12 14:50:04 [7847] [myusername] 22 messages in state
06/27/12 14:50:04 [7847] [myusername] IMAP-GetMessageList: (fid: 'INBOX'  cutdate: '1340715004' )
06/27/12 14:50:04 [7847] [myusername] Found 2 message changes
06/27/12 14:50:04 [7847] [myusername] IMAP-StatMessage: (fid: 'INBOX'  id: '46842' )
06/27/12 14:50:04 [7847] [myusername] IMAP-GetMessage: (fid: 'INBOX'  id: '46842'  truncsize: 512)
06/27/12 14:50:04 [7847] [myusername] IMAP-StatMessage: (fid: 'INBOX'  id: '46842' )
06/27/12 14:50:04 [7847] [myusername] IMAP-StatMessage: (fid: 'INBOX'  id: '46840' )
06/27/12 14:50:04 [7847] [myusername] IMAP-GetMessage: (fid: 'INBOX'  id: '46840'  truncsize: 512)
06/27/12 14:50:04 [7847] [myusername] IMAP-StatMessage: (fid: 'INBOX'  id: '46840' )
06/27/12 14:50:04 [7847] [myusername] IMAP-errors: Connection failed to localhost,143: Connection refused
06/27/12 14:50:04 [7847] [myusername] IMAP-errors: Unexpected characters at end of address: <>
06/27/12 14:50:04 [7847] [myusername] IMAP connection closed
06/27/12 14:50:04 [7847] [myusername] end
06/27/12 14:50:04 [7847] [myusername] --------
06/27/12 14:52:46 [9779] [myusername] Start
06/27/12 14:52:46 [9779] [myusername] Z-Push version: 1.5.10-1262
06/27/12 14:52:46 [9779] [myusername] Client IP: ip.ip.1p.ip
06/27/12 14:52:46 [9779] [myusername] Client supports version 2.5



Thanks,
Hans
HansMeiser
 
Posts: 4
Joined: Wed Jun 27, 2012 2:03 pm

Re: z-push and faulty headers

Postby mku » Thu Jun 28, 2012 2:55 pm

Hi Hans,

yes, indeed. However this error is from the IMAP extension for PHP, there is nothing we can do about it. I think your problem is rather the line above:

IMAP-errors: Connection failed to localhost,143: Connection refused


You should check your imap server's log.

Were these 2 messages retrieved by your mobile?

Greets, Manfred
Try using forum search as well!
Please do not PN me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1239
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: z-push and faulty headers

Postby HansMeiser » Thu Jun 28, 2012 3:46 pm

Hello,

this line is always shown at every new Mail arrives. Maillog is ok, no Problem logging in.

Code: Select all
Jun 28 16:40:23 myhost dovecot: imap-login: Login: user=<myusername>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
Jun 28 16:40:23 myhost dovecot: IMAP(myusername): Disconnected: Logged out bytes=305/11564


Iam surprised that message "connections refused" always occurs after sucessfully login and syncing mails:

Code: Select all
06/28/12 16:40:23 [9476] [myusername] IMAP connection opened sucessfully
06/28/12 16:40:23 [9476] [myusername] POST cmd: Sync
06/28/12 16:40:23 [9476] [myusername] Sync folder:Email
06/28/12 16:40:23 [9476] [myusername] Initializing message diff engine
06/28/12 16:40:23 [9476] [myusername] 1 messages in state
06/28/12 16:40:23 [9476] [myusername] IMAP-GetMessageList: (fid: 'INBOX'  cutdate: '1340808023' )
06/28/12 16:40:23 [9476] [myusername] Found 0 message changes
06/28/12 16:40:23 [9476] [myusername] IMAP-errors: Connection failed to localhost,143: Connection refused
06/28/12 16:40:23 [9476] [myusername] IMAP connection closed
06/28/12 16:40:23 [9476] [myusername] end
06/28/12 16:40:23 [9476] [myusername] --------
06/28/12 16:40:25 [9477] [myusername] Start
06/28/12 16:40:25 [9477] [myusername] Z-Push version: 1.5.10-1262
06/28/12 16:40:25 [9477] [myusername] Client IP: ip.ip.ip.ip
06/28/12 16:40:25 [9477] [myusername] Client supports version 2.5



Thanks,
Hans
HansMeiser
 
Posts: 4
Joined: Wed Jun 27, 2012 2:03 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron