owios7 / android-sms

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

Use contact's email address if available #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if both "from:" and "to:" headers would be set
always when messages are being backup-ed. The email address of
the sender could be fetched from the phone's address book.

In this way a search for "recent conversions with my friend" in
gmail would result in the complete list of related mails, chats
and sms's --- which would be a great feature! :-)

Anyway, thanks for this very useful app!

Original issue reported on code.google.com by pssss...@gmail.com on 9 Sep 2009 at 9:36

GoogleCodeExporter commented 8 years ago
This should be working. For sent messages, the from field is populated from the 
Gmail login you entered and the 
address book is scanned to extract the e-mail address of the recipient (Gmail 
addresses are prioritized). For 
received messages it works the other way around.

What to/from headers do you see?

Original comment by chstu...@gmail.com on 9 Sep 2009 at 9:42

GoogleCodeExporter commented 8 years ago
My friend's headers are empty... Oh, now I see, the header is there
but incorrectly encoded when the contact's name contains non-ascii
characters:

Subject: =?UTF-8?Q?SMS_with_Magda_=C5=A0ruba=C5=99ov=C3=A1?=
From: =?UTF-8?Q?=22Magda_=C5=A0ruba=C5=99ov=C3=A1=22_=3Cmagd?=
=?UTF-8?Q?alena=2Esrubarova=40gmail=2Ecom=3E?=
To: psssssss

Can you have look at that? Seems like the actual email address has
been =?UTF-8?Q?-encoded as well... and distorted in this way...
Thanks!

Original comment by pssss...@gmail.com on 9 Sep 2009 at 9:58

GoogleCodeExporter commented 8 years ago

Original comment by chstu...@gmail.com on 9 Sep 2009 at 10:32