jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.79k stars 497 forks source link

Backup of incoming SMS: "Date" header shows timestamp of local reception instead of sender's time #1032

Open mcg-android opened 3 years ago

mcg-android commented 3 years ago

Using SMS Backup+ version 1.5.11 installed from F-Droid (on /e/OS 0.10-o-2020081968665), I can observe:

In email messages, the "Date" header contains a timestamp representing the point in time a message was written (not the point in time it was received).

So to me this looks like unintended, wrong behaviour. I think the "Date" header in the backup messages should show the time the message was sent, i.e. for incoming SMS messages the value of the "date_sent" column.

In case the current behaviour is intended and/or won't get changed by default, could you make the suggested behaviour an option?

kurahaupo commented 3 years ago

Agreed, but @jberkel will have to make the final call.

I would hope that both timestamps could be encoded in the RFC822 message headers, with the received timestamp for incoming messages and the network-acceptance timestamp for outgoing messages perhaps included in X-Received-Date: headers or even embedded in synthesised Received: headers.