We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941bae9 commit 2849eb0Copy full SHA for 2849eb0
gyb.py
@@ -2031,10 +2031,11 @@ def main(argv):
2031
vault_label_map[fileid] = labels
2032
elem.clear() # keep memory usage down on very large files
2033
# Look for and restore mbox files
2034
+ mbox_extensions = ['mbx', 'mbox', 'eml']
2035
for path, subdirs, files in os.walk(options.local_folder):
2036
for filename in files:
- if filename[-4:].lower() != '.mbx' and \
2037
- filename[-5:].lower() != '.mbox':
+ file_extension = filename.split('.')[-1]
2038
+ if file_extension not in mbox_extensions:
2039
continue
2040
file_path = os.path.join(path, filename)
2041
print("\nRestoring from %s file %s..." % (humansize(file_path), file_path))
0 commit comments