jakegustafson / android-sms

Automatically exported from code.google.com/p/android-sms
1 stars 0 forks source link

Spaces in telephone number generates invalid email address #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It is sometimes the case that phone numbers have spaces or other characters
in them (these may have been added manually or when syncing from another
address book). This does not work properly when the android-sms app
generates the email address for a number.
e.g. phone number "+61 412345678" (note the space after +61). The app
generates the following line in the email source:

From: "Name Of Person" <+61 412345678@unknown.email>

This does not work properly in gmail, and spaces in email addresses are
invalid anyway.
The same bug would occur for the To:.

Can you add some code to simply replace spaces and any other invalid email
address characters in a phone number with, e.g. underscores (_), when
generating the email address from/to line.

Original issue reported on code.google.com by eugene.a...@gmail.com on 17 Feb 2010 at 3:48