Comments (2)
The attached patch in the Debian bug fixes the issue for me and also for the reporter. Also copied here for your convenience.
From 4f5d97e91e6c0b732120a1c02b6e728068c77e23 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Mon, 25 Jan 2021 12:44:06 -0800
Subject: [PATCH] Do not encode password in UTF-8 when reading from
"remotepassfile".
https://bugs.debian.org/981063
---
offlineimap/repository/IMAP.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py
index b732243..6fb7f4a 100644
--- a/offlineimap/repository/IMAP.py
+++ b/offlineimap/repository/IMAP.py
@@ -590,7 +590,7 @@ class IMAPRepository(BaseRepository):
encoding='utf-8')
password = file_desc.readline().strip()
file_desc.close()
- return password.encode('UTF-8')
+ return password
# 4. Read password from ~/.netrc.
try:
netrcentry = netrc.netrc().authenticators(self.gethost())
--
2.29.2
from offlineimap3.
Same issue happens on my system. The patch provided by @sudipm-mukherjee which removes the UTF-8 encoding from the remotepassfile fixes the issue for me too.
Although I'm not sure this is the root cause
from offlineimap3.
Related Issues (20)
- HeaderParseError on mailbox sync HOT 4
- ERROR: command: APPEND => no response after x secs HOT 1
- RFC6331: Moving DIGEST-MD5 to Historic HOT 1
- SCRAM-SHA-1(-PLUS) + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) + SCRAM-SHA3-512(-PLUS) supports
- feature: support user flags HOT 1
- Feture Request: Support reading password from stdout
- 'int' object is not subscriptable (when password file is not found)
- v8.0.0 requirements HOT 1
- Gmail migration article improvements
- Empty Remote folders must be created with createfolders=True
- Handle "Mailbox already exists" on folder creation HOT 1
- unknown error (_ssl.c:3063) HOT 1
- Question/Feature request: force refetching all new
- offlineimap fails with error: ID command error: BAD [b'invalid command']. Data: b'OOOK2 ID ("name" "OfflineIMAP" "version" "8.0.0")\r\n' HOT 8
- Error handling of invalid date headers produces more errors HOT 1
- Python 3.11 breaks sqlite multi-threading check HOT 1
- command: FETCH => socket error: <class 'OSError'> - Too many read 0 #726
- [LIMIT] Too many identical emails HOT 3
- False error about being not multithreading safe on OS X HOT 3
- Message too big
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offlineimap3.