replace chars
This commit is contained in:
parent
776f8f4956
commit
7c31dd99c5
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class BackupImap:
|
||||||
data = fetch_data[0][1]
|
data = fetch_data[0][1]
|
||||||
subjects = self._get_mail_header('Subject', data)
|
subjects = self._get_mail_header('Subject', data)
|
||||||
if len(subjects) > 0:
|
if len(subjects) > 0:
|
||||||
subject = subjects[-1]
|
subject = subjects[-1].replace(os.path.sep, '_').replace('\r', '_').replace('\n', '_').replace(':', '_')
|
||||||
message_path = os.path.join(
|
message_path = os.path.join(
|
||||||
mailbox_path,
|
mailbox_path,
|
||||||
subject
|
subject
|
||||||
|
|
Loading…
Reference in a new issue