11 lines
333 B
Python
11 lines
333 B
Python
#!/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]])
|