Re: [SOGo] sogosync and html email

2013-03-10 Thread Michael

Hi again,

I have defined CALDAV_URL, CALDAV_READONLY, CARDDAV_URL, 
CARDDAV_PERSONAL and CARDDAV_READONLY manually in config.php as a 
band-aid solution but still having issues - still no contacts and 
calendar and more strange errors being logged. Strangely, html email is 
no longer working, even though it was working previously with PHP-Push-2 
and BackendIMAP. Any chance you could send me your config files Sven 
just so that I can compare?


I have a feeling something is all messed up. I have tried clearing out 
the PHP-Push-2 directory, merging using git again and reconfiguring the 
config files but I still get the same issues.


My next step is to try your recommendation about using the original 
z-push 2 with sogosync config files. I am very keen to get this working!


Regards, Michael.



On 10/03/2013 2:17 PM, Michael wrote:
Hi Sven, I have fixed the 'Unable to verify account information.' 
error when trying to connect the iPhone - the problem was:


09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/include/caldav-client-v2.php:13 
require_once(XMLDocument.php): failed to open stream: No such file or 
directory (2)


error causing apache to give a 500 type page when testing the 
activesync URL with a browser. To fix I created symbolic links to 
point the includes to the right place:


ln -s /usr/share/awl/inc/XMLDocument.php /usr/share/php/XMLDocument.php
ln -s /usr/share/awl/inc/XMLElement.php /usr/share/php/XMLElement.php
ln -s /usr/share/awl/inc/iCalendar.php /usr/share/php/iCalendar.php

Interestingly the same errors where logged with sogosync but they 
didn't stop it from working.


Anyway, I still have a problem with the SOGo Contacts and Calendar's 
not showing up as an option on the iPhone. They are advertised as 
being available when first connecting but when trying to find the 
'Exchange' Contacts group or 'Exchange' Calendar it simply isn't there.


These errors are still being logged:

10/03/2013 14:12:43 [23167] [INFO] [mich...@example.com] 
Version='2.0.7-1690' method='POST' from='101.170.127.248' cmd='Ping' 
getUser='mich...@example.com' devId='ApplC34JGWD4DTWG' devType='iPhone'
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_URL - assumed 'CALDAV_URL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_READONLY - assumed 'CALDAV_READONLY' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_URL - assumed 'CARDDAV_URL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_PERSONAL - assumed 'CARDDAV_PERSONAL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_READONLY - assumed 'CARDDAV_READONLY' (8)


No errors in the z-push logs either.

Thanks again.

Michael.


 Original Message 
Subject:Re: [SOGo] sogosync and html email
Date:   Sat, 09 Mar 2013 23:35:10 +1100
From:   Michael mich...@los-pollos.co
To: users@sogo.nu



Hi Sven, Thanks for this but I had the config you suggest and I also 
tried copying and using the config.inc.php which comments out all but 
the imap, cardav and caldav. Still the same problem - the iThings wont 
connect and say 'Unable to verify account information.'


Errors are being logged in z-push.log:

09/03/2013 23:31:59 [26147] [INFO] [mich...@example.com] 
Version='2.0.7-1690' method='OPTIONS' from='101.170.127.231' cmd='' 
getUser='mich...@example.com' devId='' devType=''
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_URL - assumed 'CALDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_READONLY - assumed 'CALDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_URL - assumed 'CARDDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_PERSONAL - assumed 'CARDDAV_PERSONAL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_READONLY - assumed 'CARDDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/include/caldav-client-v2.php:13 
require_once(XMLDocument.php): failed to open stream: No such file or 
directory (2)


Its so weird because apart from the lack HTML email support the old 
sogosync was working

Re: [SOGo] sogosync and html email

2013-03-09 Thread Michael
Hi Sven, Thanks for this but I had the config you suggest and I also 
tried copying and using the config.inc.php which comments out all but 
the imap, cardav and caldav. Still the same problem - the iThings wont 
connect and say 'Unable to verify account information.'


Errors are being logged in z-push.log:

09/03/2013 23:31:59 [26147] [INFO] [mich...@example.com] 
Version='2.0.7-1690' method='OPTIONS' from='101.170.127.231' cmd='' 
getUser='mich...@example.com' devId='' devType=''
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_URL - assumed 'CALDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_READONLY - assumed 'CALDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_URL - assumed 'CARDDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_PERSONAL - assumed 'CARDDAV_PERSONAL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_READONLY - assumed 'CARDDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/include/caldav-client-v2.php:13 
require_once(XMLDocument.php): failed to open stream: No such file or 
directory (2)


Its so weird because apart from the lack HTML email support the old 
sogosync was working fine.


Your help is very much appreciated :)

Regards, Michael.


On 9/03/2013 10:28 AM, Sven Auhagen wrote:

Hi Michael,

sorry for the late answer.

You have to use the BackendCombined option for CalDAV and CardDAV to 
work too.
Can you make sure that you just activated BackendIMAP, BackendCalDAV 
and BackendCardDAV in backend/combined/config.php?


It has to look like this:

public static function GetBackendCombinedConfig() {
//use a function for it because php does not allow
//assigning variables to the class members (expecting T_STRING)
return array(
//the order in which the backends are loaded.
//login only succeeds if all backend return true on login
//sending mail: the mail is sent with first backend that is able to 
send the mail

'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
// 'name' = 'BackendZarafa',
// 'config' = self::$BackendZarafa_config
//),
//'m' = array(
// 'name' = 'BackendMaildir',
// 'config' = self::$BackendMaildir_config,
//),
//'v' = array(
// 'name' = 'BackendVCardDir',
// 'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
// 'name' = 'BackendLDAP',
// 'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),

Best,
Sven

On Mar 6, 2013, at 7:57 AM, Michael mich...@los-pollos.co 
mailto:mich...@los-pollos.co wrote:


Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
config.php and email works fine but CalDAV and CardDAV doesn't.


When I set  ('BACKEND_PROVIDER', BackendCombined);

the devices fail to set up/initialise.

However when I set define('BACKEND_PROVIDER', BackendIMAP); the 
devices set up but no calendar or contacts.


Here is the config.php for caldav and carddav:

// **
//  BackendCalDAV settings
// **
define('CALDAV_SERVER', 'https://sogo.example.com');
define('CALDAV_PORT', '443');
define('CALDAV_PATH', '/SOGo/dav/%u/');
define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder

// **
//  BackendCardDAV settings
// **
define('CARDDAV_SERVER', 'https://sogo.example.com');
define('CARDDAV_PORT', '443');
define('CARDDAV_PATH', '/SOGo/dav/%u/');
define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder


Did you manage to get contacts and calendar working with PHP-Push-2 
and SOGo ?


Regards, Michael.

On 4/03/2013 10:21 PM, Sven Auhagen wrote:

Hi Michael,

sure. Let me know if you have more questions, I also had the same problems than 
you :)

Best,
Sven

On Mar 4, 2013, at 10:08 AM, Michaelmich...@los-pollos.co  wrote:


Hi Sven, thanks so much for this. I will look into php-push

Regards, Michael.

On 4/03/2013 7:18 PM, Sven Auhagen wrote:

Hi Michael,

sogosync hasn't been updated in 4 month so the support for HTML emails is not 
integrated.
It was released with zpush 

Re: [SOGo] sogosync and html email

2013-03-09 Thread Michael
Hi Sven, I have fixed the 'Unable to verify account information.' error 
when trying to connect the iPhone - the problem was:


09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/include/caldav-client-v2.php:13 
require_once(XMLDocument.php): failed to open stream: No such file or 
directory (2)


error causing apache to give a 500 type page when testing the activesync 
URL with a browser. To fix I created symbolic links to point the 
includes to the right place:


ln -s /usr/share/awl/inc/XMLDocument.php /usr/share/php/XMLDocument.php
ln -s /usr/share/awl/inc/XMLElement.php /usr/share/php/XMLElement.php
ln -s /usr/share/awl/inc/iCalendar.php /usr/share/php/iCalendar.php

Interestingly the same errors where logged with sogosync but they didn't 
stop it from working.


Anyway, I still have a problem with the SOGo Contacts and Calendar's not 
showing up as an option on the iPhone. They are advertised as being 
available when first connecting but when trying to find the 'Exchange' 
Contacts group or 'Exchange' Calendar it simply isn't there.


These errors are still being logged:

10/03/2013 14:12:43 [23167] [INFO] [mich...@example.com] 
Version='2.0.7-1690' method='POST' from='101.170.127.248' cmd='Ping' 
getUser='mich...@example.com' devId='ApplC34JGWD4DTWG' devType='iPhone'
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_URL - assumed 'CALDAV_URL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_READONLY - assumed 'CALDAV_READONLY' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_URL - assumed 'CARDDAV_URL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_PERSONAL - assumed 'CARDDAV_PERSONAL' (8)
10/03/2013 14:12:43 [23167] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_READONLY - assumed 'CARDDAV_READONLY' (8)


No errors in the z-push logs either.

Thanks again.

Michael.


 Original Message 
Subject:Re: [SOGo] sogosync and html email
Date:   Sat, 09 Mar 2013 23:35:10 +1100
From:   Michael mich...@los-pollos.co
To: users@sogo.nu



Hi Sven, Thanks for this but I had the config you suggest and I also 
tried copying and using the config.inc.php which comments out all but 
the imap, cardav and caldav. Still the same problem - the iThings wont 
connect and say 'Unable to verify account information.'


Errors are being logged in z-push.log:

09/03/2013 23:31:59 [26147] [INFO] [mich...@example.com] 
Version='2.0.7-1690' method='OPTIONS' from='101.170.127.231' cmd='' 
getUser='mich...@example.com' devId='' devType=''
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_URL - assumed 'CALDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CALDAV_READONLY - assumed 'CALDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_URL - assumed 'CARDDAV_URL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_PERSONAL - assumed 'CARDDAV_PERSONAL' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/backend/combined/config.php:126 Use of undefined 
constant CARDDAV_READONLY - assumed 'CARDDAV_READONLY' (8)
09/03/2013 23:31:59 [26147] [WARN] [mich...@example.com] 
/usr/share/z-push/include/caldav-client-v2.php:13 
require_once(XMLDocument.php): failed to open stream: No such file or 
directory (2)


Its so weird because apart from the lack HTML email support the old 
sogosync was working fine.


Your help is very much appreciated :)

Regards, Michael.


On 9/03/2013 10:28 AM, Sven Auhagen wrote:

Hi Michael,

sorry for the late answer.

You have to use the BackendCombined option for CalDAV and CardDAV to 
work too.
Can you make sure that you just activated BackendIMAP, BackendCalDAV 
and BackendCardDAV in backend/combined/config.php?


It has to look like this:

public static function GetBackendCombinedConfig() {
//use a function for it because php does not allow
//assigning variables to the class members (expecting T_STRING)
return array(
//the order in which the backends are loaded.
//login only succeeds if all backend return true on login
//sending mail: the mail is sent with first backend that is able to 
send the mail


'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config

Re: [SOGo] sogosync and html email

2013-03-08 Thread Mark Madere
Sven,

I managed to get calDAV working with BackendCombined but I cannot make CardDAV 
work.  Can you share your settings?  mine are below.

Thanks,
Mark

in config.php:
...
define('CALDAV_SERVER', 'http://localhost');
define('CALDAV_PORT', '80');
define('CALDAV_PATH', '/SOGo/dav/%u/Calendar/');
define('CALDAV_PERSONAL', '');
...
define('CARDDAV_SERVER', 'http://localhost');
define('CARDDAV_PORT', '80');
define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/');
define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder
...

in backend/combined/config.php
...
'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
//'name' = 'BackendZarafa',
//'config' = self::$BackendZarafa_config
//),
//'m' = array(
//'name' = 'BackendMaildir',
//'config' = self::$BackendMaildir_config,
//),
//'v' = array(
//'name' = 'BackendVCardDir',
//'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
//'name' = 'BackendLDAP',
//'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),
...
'folderbackend' = array(
SYNC_FOLDER_TYPE_INBOX = 'i',
SYNC_FOLDER_TYPE_DRAFTS = 'i',
SYNC_FOLDER_TYPE_WASTEBASKET = 'i',
SYNC_FOLDER_TYPE_SENTMAIL = 'i',
SYNC_FOLDER_TYPE_OUTBOX = 'i',
SYNC_FOLDER_TYPE_TASK = 'c',
SYNC_FOLDER_TYPE_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_CONTACT = 'd',
SYNC_FOLDER_TYPE_NOTE = 'z',
SYNC_FOLDER_TYPE_JOURNAL = 'z',
SYNC_FOLDER_TYPE_OTHER = 'i',
SYNC_FOLDER_TYPE_USER_MAIL = 'i',
SYNC_FOLDER_TYPE_USER_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_USER_CONTACT = 'd',
SYNC_FOLDER_TYPE_USER_TASK = 'c',
SYNC_FOLDER_TYPE_USER_JOURNAL = 'z',
SYNC_FOLDER_TYPE_USER_NOTE = 'z',
SYNC_FOLDER_TYPE_UNKNOWN = 'z',
),
...


 Original Message  
Subject: Re: [SOGo] sogosync and html email 
Date: Wednesday, March 6, 2013 12:57 AM CST 
From: Michael mich...@los-pollos.co 
Reply-To: users@sogo.nu
To: users@sogo.nu 
References: 513453f4.5090...@los-pollos.co 
ebaa2185-bfcb-45be-82bf-00dbcd38d...@voleatech.com 
51346487.40...@los-pollos.co 
2c923e29-c075-41d1-9966-38876c028...@voleatech.com
 
 
 
 Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
 config.php and email works fine but CalDAV and CardDAV doesn't.
 
 When I set  ('BACKEND_PROVIDER', BackendCombined);
 
 the devices fail to set up/initialise.
 
 However when I set define('BACKEND_PROVIDER', BackendIMAP); the 
 devices set up but no calendar or contacts.
 
 Here is the config.php for caldav and carddav:
 
  // **
  //  BackendCalDAV settings
  // **
  define('CALDAV_SERVER', 'https://sogo.example.com');
  define('CALDAV_PORT', '443');
  define('CALDAV_PATH', '/SOGo/dav/%u/');
  define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder
 
  // **
  //  BackendCardDAV settings
  // **
  define('CARDDAV_SERVER', 'https://sogo.example.com');
  define('CARDDAV_PORT', '443');
  define('CARDDAV_PATH', '/SOGo/dav/%u/');
  define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder
 
 
 Did you manage to get contacts and calendar working with PHP-Push-2 and 
 SOGo ?
 
 Regards, Michael.
 
 On 4/03/2013 10:21 PM, Sven Auhagen wrote:
  Hi Michael,
 
  sure. Let me know if you have more questions, I also had the same problems 
  than you :)
 
  Best,
  Sven
 
  On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:
 
  Hi Sven, thanks so much for this. I will look into php-push
 
  Regards, Michael.
 
  On 4/03/2013 7:18 PM, Sven Auhagen wrote:
  Hi Michael,
 
  sogosync hasn't been updated in 4 month so the support for HTML emails is 
  not integrated.
  It was released with zpush 2.0.6 I think.
  You either have to merge a new version of zpush with sogoync, basically 
  just copy the files from the latest zpush release into sogosync and save 
  the files config.php and backend/combined/config.php
  before you do it. After the merge copy

Re: [SOGo] sogosync and html email

2013-03-08 Thread Sven Auhagen
Hi Michael,

sorry for the late answer.

You have to use the BackendCombined option for CalDAV and CardDAV to work too.
Can you make sure that you just activated BackendIMAP, BackendCalDAV and 
BackendCardDAV in backend/combined/config.php?

It has to look like this:

public static function GetBackendCombinedConfig() {
//use a function for it because php does not allow
//assigning variables to the class members (expecting T_STRING)
return array(
//the order in which the backends are loaded.
//login only succeeds if all backend return true on login
//sending mail: the mail is sent with first backend that is able to 
send the mail
'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
//'name' = 'BackendZarafa',
//'config' = self::$BackendZarafa_config
//),
//'m' = array(
//'name' = 'BackendMaildir',
//'config' = self::$BackendMaildir_config,
//),
//'v' = array(
//   'name' = 'BackendVCardDir',
//'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
//'name' = 'BackendLDAP',
//'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),

Best,
Sven

On Mar 6, 2013, at 7:57 AM, Michael mich...@los-pollos.co wrote:

 Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
 config.php and email works fine but CalDAV and CardDAV doesn't. 
 
 When I set  ('BACKEND_PROVIDER', BackendCombined); 
 
 the devices fail to set up/initialise. 
 
 However when I set define('BACKEND_PROVIDER', BackendIMAP); the devices set 
 up but no calendar or contacts. 
 
 Here is the config.php for caldav and carddav: 
 
 // ** 
 //  BackendCalDAV settings 
 // ** 
 define('CALDAV_SERVER', 'https://sogo.example.com'); 
 define('CALDAV_PORT', '443'); 
 define('CALDAV_PATH', '/SOGo/dav/%u/'); 
 define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder 
 
 // ** 
 //  BackendCardDAV settings 
 // ** 
 define('CARDDAV_SERVER', 'https://sogo.example.com'); 
 define('CARDDAV_PORT', '443'); 
 define('CARDDAV_PATH', '/SOGo/dav/%u/'); 
 define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder 
 
 
 Did you manage to get contacts and calendar working with PHP-Push-2 and SOGo 
 ? 
 
 Regards, Michael.
 
 On 4/03/2013 10:21 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sure. Let me know if you have more questions, I also had the same problems 
 than you :)
 
 Best,
 Sven
 
 On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:
 
 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails is 
 not integrated.
 It was released with zpush 2.0.6 I think.
 You either have to merge a new version of zpush with sogoync, basically 
 just copy the files from the latest zpush release into sogosync and save 
 the files config.php and backend/combined/config.php
 before you do it. After the merge copy them back into place.
 Another good alternative which is more up to date is 
 https://github.com/dupondje/PHP-Push-2 .
 It shares the same code but is still maintained.
 
 Best,
 Sven
 
 On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:
 
 Hi All, just wondering if anyone can help me with this problem I am 
 having with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts 
 and calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors 
 on the iphone - 'The connection to the server failed' even though email 
 is downloaded - I suspect it may be related to the HTML not able to 
 download properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile 

Re: [SOGo] sogosync and html email

2013-03-08 Thread Sven Auhagen
Hi Mark,

I think I have the same settings than you but I can check for you tomorrow, 
when I have access to my server.
Do you get any output in the log file for PHP push that indicates what is wrong?

Best,
Sven

On Mar 9, 2013, at 12:06 AM, Mark Madere s...@expandingcommunication.com 
wrote:

 Sven,
 
 I managed to get calDAV working with BackendCombined but I cannot make 
 CardDAV work.  Can you share your settings?  mine are below.
 
 Thanks,
 Mark
 
 in config.php:
 ...
define('CALDAV_SERVER', 'http://localhost');
define('CALDAV_PORT', '80');
define('CALDAV_PATH', '/SOGo/dav/%u/Calendar/');
define('CALDAV_PERSONAL', '');
 ...
define('CARDDAV_SERVER', 'http://localhost');
define('CARDDAV_PORT', '80');
define('CARDDAV_PATH', '/SOGo/dav/%u/Contacts/');
define('CARDDAV_PRINCIPAL', 'personal'); //Personal CardDAV folder
 ...
 
 in backend/combined/config.php
 ...
'backends' = array(
'i' = array(
'name' = 'BackendIMAP',
'config' = self::$BackendIMAP_config,
),
//'z' = array(
//'name' = 'BackendZarafa',
//'config' = self::$BackendZarafa_config
//),
//'m' = array(
//'name' = 'BackendMaildir',
//'config' = self::$BackendMaildir_config,
//),
//'v' = array(
//'name' = 'BackendVCardDir',
//'config' = self::$BackendVCardDir_config,
//),
'c' = array(
'name' = 'BackendCalDAV',
'config' = self::$BackendCalDAV_config,
),
//'l' = array(
//'name' = 'BackendLDAP',
//'config' = self::$BackendLDAP_config,
//),
'd' = array(
'name' = 'BackendCardDAV',
'config' = self::$BackendCardDAV_config,
),
),
 ...
'folderbackend' = array(
SYNC_FOLDER_TYPE_INBOX = 'i',
SYNC_FOLDER_TYPE_DRAFTS = 'i',
SYNC_FOLDER_TYPE_WASTEBASKET = 'i',
SYNC_FOLDER_TYPE_SENTMAIL = 'i',
SYNC_FOLDER_TYPE_OUTBOX = 'i',
SYNC_FOLDER_TYPE_TASK = 'c',
SYNC_FOLDER_TYPE_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_CONTACT = 'd',
SYNC_FOLDER_TYPE_NOTE = 'z',
SYNC_FOLDER_TYPE_JOURNAL = 'z',
SYNC_FOLDER_TYPE_OTHER = 'i',
SYNC_FOLDER_TYPE_USER_MAIL = 'i',
SYNC_FOLDER_TYPE_USER_APPOINTMENT = 'c',
SYNC_FOLDER_TYPE_USER_CONTACT = 'd',
SYNC_FOLDER_TYPE_USER_TASK = 'c',
SYNC_FOLDER_TYPE_USER_JOURNAL = 'z',
SYNC_FOLDER_TYPE_USER_NOTE = 'z',
SYNC_FOLDER_TYPE_UNKNOWN = 'z',
),
 ...
 
 
  Original Message  
 Subject: Re: [SOGo] sogosync and html email 
 Date: Wednesday, March 6, 2013 12:57 AM CST 
 From: Michael mich...@los-pollos.co 
 Reply-To: users@sogo.nu
 To: users@sogo.nu 
 References: 513453f4.5090...@los-pollos.co 
 ebaa2185-bfcb-45be-82bf-00dbcd38d...@voleatech.com 
 51346487.40...@los-pollos.co 
 2c923e29-c075-41d1-9966-38876c028...@voleatech.com
 
 
 
 Hi Sven, Actually I am having a problem with PHP-Push-2; I configured 
 config.php and email works fine but CalDAV and CardDAV doesn't.
 
 When I set  ('BACKEND_PROVIDER', BackendCombined);
 
 the devices fail to set up/initialise.
 
 However when I set define('BACKEND_PROVIDER', BackendIMAP); the 
 devices set up but no calendar or contacts.
 
 Here is the config.php for caldav and carddav:
 
 // **
 //  BackendCalDAV settings
 // **
 define('CALDAV_SERVER', 'https://sogo.example.com');
 define('CALDAV_PORT', '443');
 define('CALDAV_PATH', '/SOGo/dav/%u/');
 define('CALDAV_PERSONAL', 'personal'); //Personal CalDAV folder
 
 // **
 //  BackendCardDAV settings
 // **
 define('CARDDAV_SERVER', 'https://sogo.example.com');
 define('CARDDAV_PORT', '443');
 define('CARDDAV_PATH', '/SOGo/dav/%u/');
 define('CARDDAV_PRINCIPAL', 'Contacts'); //Personal CardDAV folder
 
 
 Did you manage to get contacts and calendar working with PHP-Push-2 and 
 SOGo ?
 
 Regards, Michael.
 
 On 4/03/2013 10:21 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sure. Let me know if you have more questions, I also had the same problems 
 than you :)
 
 Best,
 Sven
 
 On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:
 
 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails

Re: [SOGo] sogosync and html email

2013-03-04 Thread Sven Auhagen
Hi Michael,

sogosync hasn't been updated in 4 month so the support for HTML emails is not 
integrated.
It was released with zpush 2.0.6 I think.
You either have to merge a new version of zpush with sogoync, basically just 
copy the files from the latest zpush release into sogosync and save the files 
config.php and backend/combined/config.php
before you do it. After the merge copy them back into place.
Another good alternative which is more up to date is 
https://github.com/dupondje/PHP-Push-2 .
It shares the same code but is still maintained.

Best,
Sven

On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:

 Hi All, just wondering if anyone can help me with this problem I am having 
 with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts and 
 calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors on 
 the iphone - 'The connection to the server failed' even though email is 
 downloaded - I suspect it may be related to the HTML not able to download 
 properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key
 
 
  # Force all requests to lowercase. Different MUAs, mobile devices etc
  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]
 
  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory
 
  Alias /autodiscover/autodiscover.xml 
 /var/www/autodiscover/autodiscover/autodiscover.php
 
  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
 /VirtualHost
 
 
 Any help is very much appreciated!
 
 -- 
 Regards Michael.
 
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] sogosync and html email

2013-03-04 Thread Michael

Hi Sven, thanks so much for this. I will look into php-push

Regards, Michael.

On 4/03/2013 7:18 PM, Sven Auhagen wrote:

Hi Michael,

sogosync hasn't been updated in 4 month so the support for HTML emails is not 
integrated.
It was released with zpush 2.0.6 I think.
You either have to merge a new version of zpush with sogoync, basically just 
copy the files from the latest zpush release into sogosync and save the files 
config.php and backend/combined/config.php
before you do it. After the merge copy them back into place.
Another good alternative which is more up to date is 
https://github.com/dupondje/PHP-Push-2 .
It shares the same code but is still maintained.

Best,
Sven

On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:


Hi All, just wondering if anyone can help me with this problem I am having with 
sogosync and html emails.

I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts and 
calendar are all downloading. Except HTML emails, the images dont get displayed 
and the HTML does not get rendered.

I have tried on different devices and the same issue. I also get errors on the 
iphone - 'The connection to the server failed' even though email is downloaded 
- I suspect it may be related to the HTML not able to download properly?

I have configured sogosync as per instructions which was very straight forward. 
I am thinking it may be an apache issue?

here is my apache virtualhost config for sogosync:

NameVirtualHost *:443

VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com

  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key


  # Force all requests to lowercase. Different MUAs, mobile devices etc
  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]

  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory

  Alias /autodiscover/autodiscover.xml 
/var/www/autodiscover/autodiscover/autodiscover.php

  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
/VirtualHost


Any help is very much appreciated!

--
Regards Michael.

--
users@sogo.nu
https://inverse.ca/sogo/lists


--
Regards Michael.

--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] sogosync and html email

2013-03-04 Thread Sven Auhagen
Hi Michael,

sure. Let me know if you have more questions, I also had the same problems than 
you :)

Best,
Sven

On Mar 4, 2013, at 10:08 AM, Michael mich...@los-pollos.co wrote:

 Hi Sven, thanks so much for this. I will look into php-push
 
 Regards, Michael.
 
 On 4/03/2013 7:18 PM, Sven Auhagen wrote:
 Hi Michael,
 
 sogosync hasn't been updated in 4 month so the support for HTML emails is 
 not integrated.
 It was released with zpush 2.0.6 I think.
 You either have to merge a new version of zpush with sogoync, basically just 
 copy the files from the latest zpush release into sogosync and save the 
 files config.php and backend/combined/config.php
 before you do it. After the merge copy them back into place.
 Another good alternative which is more up to date is 
 https://github.com/dupondje/PHP-Push-2 .
 It shares the same code but is still maintained.
 
 Best,
 Sven
 
 On Mar 4, 2013, at 8:57 AM, Michael mich...@los-pollos.co wrote:
 
 Hi All, just wondering if anyone can help me with this problem I am having 
 with sogosync and html emails.
 
 I have sogo 2.0.4 and sogosync(latest) up and running and email, contacts 
 and calendar are all downloading. Except HTML emails, the images dont get 
 displayed and the HTML does not get rendered.
 
 I have tried on different devices and the same issue. I also get errors on 
 the iphone - 'The connection to the server failed' even though email is 
 downloaded - I suspect it may be related to the HTML not able to download 
 properly?
 
 I have configured sogosync as per instructions which was very straight 
 forward. I am thinking it may be an apache issue?
 
 here is my apache virtualhost config for sogosync:
 
 NameVirtualHost *:443
 
 VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com
 
  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key
 
 
  # Force all requests to lowercase. Different MUAs, mobile devices 
 etc
  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]
 
  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory
 
  Alias /autodiscover/autodiscover.xml 
 /var/www/autodiscover/autodiscover/autodiscover.php
 
  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
 /VirtualHost
 
 
 Any help is very much appreciated!
 
 -- 
 Regards Michael.
 
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists
 
 -- 
 Regards Michael.
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

[SOGo] sogosync and html email

2013-03-03 Thread Michael
Hi All, just wondering if anyone can help me with this problem I am 
having with sogosync and html emails.


I have sogo 2.0.4 and sogosync(latest) up and running and email, 
contacts and calendar are all downloading. Except HTML emails, the 
images dont get displayed and the HTML does not get rendered.


I have tried on different devices and the same issue. I also get errors 
on the iphone - 'The connection to the server failed' even though email 
is downloaded - I suspect it may be related to the HTML not able to 
download properly?


I have configured sogosync as per instructions which was very straight 
forward. I am thinking it may be an apache issue?


here is my apache virtualhost config for sogosync:

NameVirtualHost *:443

VirtualHost *:443
  ServerName autodiscover.example.com
  ServerAdmin webmas...@example.com

  SSLEngine on
  SSLCertificateFile /etc/ssl/certs/ssl.example.com.crt
  SSLCertificateKeyFile /etc/ssl/private/ssl.example.com.key


  # Force all requests to lowercase. Different MUAs, mobile 
devices etc

  # request the Autodiscover URL in different cases.
  RewriteEngine On
  RewriteMap lc int:tolower
  RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule (.*) ${lc:$1} [R=301,L]

  DocumentRoot /var/www/autodiscover/
  Directory /
   Options +FollowSymLinks -Indexes
   AllowOverride Options Indexes Limit FileInfo AuthConfig
  /Directory

  Alias /autodiscover/autodiscover.xml 
/var/www/autodiscover/autodiscover/autodiscover.php


  ErrorLog /var/www/autodiscover/logs/error.log
  CustomLog /var/www/autodiscover/logs/access.log combined
 /VirtualHost


Any help is very much appreciated!

--
Regards Michael.

--
users@sogo.nu
https://inverse.ca/sogo/lists