|
@ -21,8 +21,6 @@ import pathlib |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_for(path, color=None, end_on=None, mt=False, imap=False): |
|
|
def test_for(path, color=None, end_on=None, mt=False, imap=False): |
|
|
if imap: |
|
|
|
|
|
import miniimap |
|
|
|
|
|
|
|
|
|
|
|
cwd = os.getcwd(); |
|
|
cwd = os.getcwd(); |
|
|
os.chdir(path) |
|
|
os.chdir(path) |
|
@ -106,6 +104,9 @@ if __name__ == "__main__": |
|
|
help="use imap instead of minimail") |
|
|
help="use imap instead of minimail") |
|
|
options, args = optParser.parse_args() |
|
|
options, args = optParser.parse_args() |
|
|
|
|
|
|
|
|
|
|
|
if options.imap: |
|
|
|
|
|
import miniimap |
|
|
|
|
|
|
|
|
if options.cleanall: |
|
|
if options.cleanall: |
|
|
options.clean = True |
|
|
options.clean = True |
|
|
|
|
|
|
|
@ -133,7 +134,6 @@ if __name__ == "__main__": |
|
|
if options.third: |
|
|
if options.third: |
|
|
setup("Pad") |
|
|
setup("Pad") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elif options.backup: |
|
|
elif options.backup: |
|
|
rmrf("Backup") |
|
|
rmrf("Backup") |
|
|
|
|
|
|
|
@ -147,6 +147,7 @@ if __name__ == "__main__": |
|
|
os.mkdir("Backup/TestInbox") |
|
|
os.mkdir("Backup/TestInbox") |
|
|
except FileExistsError: |
|
|
except FileExistsError: |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
miniimap.backup_inbox() |
|
|
miniimap.backup_inbox() |
|
|
else: |
|
|
else: |
|
|
shutil.copytree("Phone", "Backup/Phone", symlinks=True, copy_function=shutil.copy2) |
|
|
shutil.copytree("Phone", "Backup/Phone", symlinks=True, copy_function=shutil.copy2) |
|
|