diff --git a/.test.conf.swp b/.test.conf.swp new file mode 100644 index 0000000..927504f Binary files /dev/null and b/.test.conf.swp differ diff --git a/README.md b/README.md index e12733f..e2ba3f9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # backup_imap -Do a backup of an IMAP account in a folder. +Do a backup of an IMAP account in to a local folder. ## Requirements @@ -20,7 +20,7 @@ sudo ./install.sh --destination /usr/local/bin Change your configuration file in "${HOME}/.config/backup_imap.conf" (see the example in the config folder). -### Windows (from PowerShell) +### Windows (from PowerShell, untested) Ensure you have "C:\Users\${env:USERNAME}\AppData\Roaming\Python\Python${python_version}\Scripts\" in your Path environment variable. diff --git a/backup_imap/backup_imap.py b/backup_imap/backup_imap.py index cdec263..3b3dae6 100644 --- a/backup_imap/backup_imap.py +++ b/backup_imap/backup_imap.py @@ -68,7 +68,7 @@ class BackupImap: if mailbox == '': real_mailbox = 'INBOX' else: - real_mailbox = mailbox + real_mailbox = mailbox.decode() self.imap.select(mailbox=f"\"{real_mailbox}\"", readonly=False) self._log.debug( "Searching for all messages in '%s'...",