add scripts for managing sms on pinephone

This commit is contained in:
2021-03-15 02:17:29 -05:00
parent 650dba86b9
commit 5dd15d255b
4 changed files with 33 additions and 0 deletions

10
sms/dump_sms Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
from sms import get_sms
from subprocess import call
from os.path import basename
for sms in get_sms():
print(sms)
out_file = "{}.{}.sms".format(basename(sms[0]), sms[1])
print(">> dump to {}".format(out_file))
call(["mmcli", "-m", "any", "--create-file-with-data", out_file, "--sms", sms[0]])