GithubHelp home page GithubHelp logo

Comments (5)

kitserve avatar kitserve commented on July 17, 2024

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.

bo0ohXae avatar bo0ohXae commented on July 17, 2024

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.

bo0ohXae avatar bo0ohXae commented on July 17, 2024

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.

bo0ohXae avatar bo0ohXae commented on July 17, 2024

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.

kitserve avatar kitserve commented on July 17, 2024

Good find, we'll try to get that ported in shortly.

from z-push-roundcube.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.