mirror of
https://github.com/samsonjs/imapbackup.git
synced 2026-03-25 08:45:53 +00:00
Quote the foldername to prevent issues with spaces #28
This commit is contained in:
parent
c042085427
commit
167c927d46
2 changed files with 2 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ def scan_file(filename, compress, overwrite, nospinner):
|
|||
def scan_folder(server, foldername, nospinner):
|
||||
"""Gets IDs of messages in the specified folder, returns id:num dict"""
|
||||
messages = {}
|
||||
foldername = '"{}"'.format(foldername)
|
||||
spinner = Spinner("Folder %s" % foldername, nospinner)
|
||||
try:
|
||||
typ, data = server.select(foldername, readonly=True)
|
||||
|
|
|
|||
|
|
@ -259,6 +259,7 @@ def scan_file(filename, overwrite, nospinner, basedir):
|
|||
def scan_folder(server, foldername, nospinner):
|
||||
"""Gets IDs of messages in the specified folder, returns id:num dict"""
|
||||
messages = {}
|
||||
foldername = '"{}"'.format(foldername)
|
||||
spinner = Spinner("Folder %s" % foldername, nospinner)
|
||||
try:
|
||||
typ, data = server.select(foldername, readonly=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue