Comments (5)
I've experienced the same issue on Windows Phone. You're right, we should be translating 'cell' to 'mobile'. Patches welcome!
from z-push-roundcube.
FYI I found Microsoft's activesync documentation here https://msdn.microsoft.com/en-us/library/cc425499.aspx
In particular this seems to be the relevant schema https://msdn.microsoft.com/en-us/library/dn338914%28v=exchg.80%29.aspx
Here they call it "MobilePhoneNumber", so not sure if we actually need to call it that, or just "Mobile"? Depends if z-push already renames the fields I guess.
from z-push-roundcube.
Well to answer my own question, it seems roundcubecontacts.php line 540 is already doing this:
elseif( in_array( 'cell', $tel['type'] ) )
{
$message->mobilephonenumber = $tel['val'][0];
}
The issue (bug?) actually seems to be with roundcube itself. When you enter a mobile phone number, it for some reason capitalizes the field type within the database:
TEL;TYPE=CELL:xyz
As a workaround I changed line 540 to read:
elseif( in_array( 'cell', $tel['type'] ) or in_array( 'CELL', $tel['type'] ) )
And now its working for me. I guess ideally it should be a case-insensitive search, but I'm not sure the best way to do that.
from z-push-roundcube.
Update: rfc2426.txt says
tel-type = "HOME" / "WORK" / "PREF" / "VOICE" / "FAX" / "MSG"
/ "CELL" / "PAGER" / "BBS" / "MODEM" / "CAR" / "ISDN"
/ "VIDEO" / "PCS" / iana-token / x-name
; Values are case insensitive
So I guess its not a roundcube bug then to use caps. This plugin just needs to ignore case.
from z-push-roundcube.
Good find, we'll try to get that ported in shortly.
from z-push-roundcube.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from z-push-roundcube.