fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
134 stars 61 forks source link

Missing body in sending email. #261

Open bladyy opened 8 years ago

bladyy commented 8 years ago

I used d-push and working perfectly, but I care about synchronization of contacts and calendar. I configured with a z-push contrib and everything works well only when I send email only headers are send withoud message body.

`Return-Path: xxx@xxx.xx Delivered-To: xxx@xxx.xx Received: from xxx.xxx.xx by xxx.xxx.xx (Dovecot) with LMTP id MdnqFqSqzFYMSwAAxAQK3A for xxx@xxx.xx; Tue, 23 Feb 2016 19:53:24 +0100 Received: from localhost (localhost [127.0.0.1]) by xxx.xxx.xx (Postfix) with ESMTP id 4640A2FC0BF for xxx@xxx.xx; Tue, 23 Feb 2016 19:53:24 +0100 (CET) Mime-Version: 1.0 To: xxx@xxx.xx Subject: Test Importance: Normal From: xxx@xxx.xx Content-Type: multipart/mixed; boundary="=_d2c81cd3806cc7069b94edb9eb761b2b" Message-Id: 20160223185324.4640A2FC0BF@xxx.xxx.xx Date: Tue, 23 Feb 2016 19:53:24 +0100 (CET) X-Virus-Scanned: clamav-milter 0.98.7 at mail X-Virus-Status: Clean

This is a multi-part message in MIME format. --=_d2c81cd3806cc7069b94edb9eb761b2b Content-Type: multipart/alternative; boundary="=_90b331fb40c44ad2fe270740a95bc4ab"

--=_d2c81cd3806cc7069b94edb9eb761b2b-- ` And this is the end. No message body. I have no errors in the logs and can not find the cause. Please help diagnose the problem.

fmbiete commented 8 years ago

Set log level to WBXML and look at the full SendMessage logs. There we will see the message sent by the mobile and the transformed message by the backend.

bladyy commented 8 years ago

I found in the logs

BackendIMAP->SendMail(): We get the new message BackendIMAP->SendMail(): We get the From and To BackendIMAP->getFromHeaderValue(): No From address defined, we try for a default one BackendIMAP->SendMail(): To defined: xxx@xxx.xx BackendIMAP->setReturnPathValue(): No Return-Path address defined, we use From BackendIMAP->SendMail(): is a new message or we are replacing mime BackendIMAP->SendMail(): Copying new headers BackendIMAP->SendMail(): Final mail to send:

before this is all ok, but after this log mail does not have a full body. The entire log is joined in the attached file z-push.txt

bladyy commented 8 years ago

Hello I will be very grateful for any tips to help me solve this problem .