mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Connect to configured inbox instead of hardcoded one.
Now the retrieving of emails from the inbox set in the config file works as expected.
This commit is contained in:
parent
9d4c90199f
commit
a9425b5e97
@ -219,7 +219,7 @@ class MailFetcher(Loggable):
|
||||
if not login[0] == "OK":
|
||||
raise MailFetcherError("Can't log into mail: {}".format(login[1]))
|
||||
|
||||
inbox = self._connection.select("INBOX")
|
||||
inbox = self._connection.select(self._inbox)
|
||||
if not inbox[0] == "OK":
|
||||
raise MailFetcherError("Can't find the inbox: {}".format(inbox[1]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user