add scripts for managing sms on pinephone
This commit is contained in:
10
sms/dump_sms
Normal file
10
sms/dump_sms
Normal 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]])
|
Reference in New Issue
Block a user