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.8k stars 497 forks source link

Multiple labels #948

Open coman4 opened 5 years ago

coman4 commented 5 years ago

Is there a way to apply more than one gmail label?

I've created gmail filters to apply labels automatically but for some reason they are not being applied, it seems that it's only possible to apply labels manually after the emails have arrived.

It would be great to be able to use Inbox label to get the emails to show up in Inbox but also apply other labels such as SMS and Calls.

kurahaupo commented 5 years ago

Unfortunately this will have to go on hold until XOAUTH access to Gmail is re-enabled; IMAP simply doesn't have the notion of a message being in multiple "folders", and writing multiple copies of each message into different IMAP "folders" would be worse than your initial problem - the separate oopies wouldn't share metadata such labels or read-status, and they'd have to be deleted individually.

In the meantime, try writing a filtering rule in Gmail to add the extra labels you want.

coman4 commented 5 years ago

Thanks for the response and suggestion, but unfortunately as I mentioned I did try writing filter rules but for some reason the labels are not being applied automatically. I haven't looked at the code but my understanding is that the app creates email messages rather than actually sends them, I'm guessing it probably has to do with that.