-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CardDAV support for owncloud / sabredav plus external IMAP provider #83
Conversation
to use IMAP of 3rd party providers with, email address as login name
use 3rd party IMAP privider with email address as login name
changes to work with ownCloud on qnap agains Samsung Galaxy Note2
updated to work with owncloud 5.0.7 on qnap 4.0.1 with Samsung Galaxy Note 2
updated to work with owncloud 5.0.7 on qnap 4.0.1 with Samsung Galaxy Note 2 Signed-off-by: arved <[email protected]>
Changes on device shoud now be replicated correctly
because of $type = strtolower(array_shift($fieldparts)); $types can never be "CATEGORIES"
added code by justbrain slightly adopted to the structure of the section to make things more readable
Using built in function to create FN, found in utils.php to use the FILEAS_ORDER Setting in config.php Introducing a new Switch to always override FN according to the Setting in config.php
Using built in function to create FN, found in utils.php to use the FILEAS_ORDER Setting in config.php Introducing a new Switch to always override FN according to the Setting in config.php
Android and ownCloud uses this format by default if you are creating a new contact.
Changed URLs and names.
Yep, was fixed in efb7729 |
changed line 1303 to 'NOTE:'."\n "
the fix you provided is making problems in my environment. So I reveted the changes you made, and changed line 1303 to $data .= 'NOTE:'."\n " . str_replace('\n' , '\n ' , $message->body). "\n "; |
@justbrain will check and test it |
According to rfc2426 there should not be a \n after NOTE:, and commas and semicolons should be escaped. Though, I haven't tried to see if this breaks in this implementation. Type example:
|
@exiva ...and the colon must be escaped in all content fields. this is valid for all content. Obviously these special caracters are needed in some structured or multi valued fields, like CATEGORIES, ADR, ORG. to be honest I did some reverse engeneering on ownclouds CardDAV / vCard behavior, because this did not behave like described in the rfcs. There are so many differenz CardDAV / vCard implementations out there, which behave slightly different, I not sure if anyone can be covered ... I think it would be better to continue this here: https://github.com/arved/PHP-Push-2-owncloud. |
adding addition of ;:, with escape character (\) (line 1304)for baking vCard NOTE. Removal of esc characters in Body for sync back via AS (line 1173)
adding addition of ;:, with escape character (\) (line 1304)for baking vCard NOTE. Removal of esc characters in Body for sync back via AS (line 1173)
I Haven't tried the new changes, but there's a typo that breaks address support. carddav_oc5.php line 1265. should be
Also, can you talk about why there's a cachesync folder? This seems to break syncing on my Windows Phone (I don't have another device to test.) and duplicate contacts when enabled. When I disable it and leave it to the script can't write to the directory it works fine. I don't see it in the original carddav either. |
some additional fixes
this folder is because of a missing implemtation of "sync-collection" in sabredav |
…ML mails Tested for 2 Weeks agains qnap 4.0.2 without any warranty you will loose data
Hi First of all thank you for your work on this.
If this can be fixed, i'll be happy to merge your commit! |
Hi, |
Hi I guess there can be a way to detect if its sabredav/owncloud, and then use some workarounds in the same carddav class? Cause now we would have alot of duplicate code as most of the carddav code can just be used for both. |
Hi, |
what about doing it in two steps:
I can try this; but since my time is limited I cannot promise... |
remove "missing cahrs in Email" problem for non standard compliant devices
within the nex few daxs I will address nafets227 first point by reworking an resubmitting a singe push request. |
Hi, I'm struggeling with the usage of github :-( But I have no idea how to realize a pull request for only this without loosing everything else. Can someone help me out? |
Hi, I have no clean solution (maybe someone else), but to workaround this I
if it helps I can try this for you and you can check the results before |
replaced by new pull request #91 with only the changes for sabeDAV / CardDAV / owncloud |
redone to not replace the original carddav.php, but to use as an alternative
Based on the CardDAV code of ziirish there is an working CardDAV backend for owncloud / SabreDAV.
(see issue #80 / #76 / #47/ #71 )
to support my szenario there is a need to support external email provider with complete email address as loginname
Owncloud, can not handle Email adresses as usernamens. To use PHP-Push-2 in this requirement I've added some code