A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: update Outlook refresh token when refreshed (#11341)
shamoon005ef4fce68c
diff --git a/src/paperless_mail/oauth.py b/src/paperless_mail/oauth.pyindex f2050451b..08b5d9647 100644--- a/src/paperless_mail/oauth.py+++ b/src/paperless_mail/oauth.py@@ -103,6 +103,9 @@ class PaperlessMailOAuth2Manager:refresh_token=account.refresh_token,),)+ if "refresh_token" in result:+ # Outlook returns a new refresh token on refresh, Gmail does not+ account.refresh_token = result["refresh_token"]account.password = result["access_token"]account.expiration = timezone.now() + timedelta(seconds=result["expires_in"],