Hi Joey,

There seems to be a version discrepancy.

On Sun, Mar 21, 2021 at 01:30:09PM -0400, Joey Hess wrote:
> Package: offlineimap
> Version: 7.3.3+dfsg1-1+0.0~git20210225.1e7ef9e+dfsg-3

This is new version of offlineimap.

> Severity: normal
> 
>  Copy message UID -347 (1/347) local: -> kite:INBOX
>  ERROR: Copying message -347 [acc: joey]
>   'utf-8' codec can't decode byte 0xa0 in position 3278: invalid start byte
>  ERROR: while syncing  [account joey]
>   'utf-8' codec can't decode byte 0xa0 in position 3278: invalid start byte
>  ERROR: ERROR in syncfolder for joey folder : Traceback (most recent call 
> last):
>   File "/usr/share/offlineimap3/offlineimap/accounts.py", line 666, in 
> syncfolder
>     localfolder.syncmessagesto(remotefolder, statusfolder)
>   File "/usr/share/offlineimap3/offlineimap/folder/Base.py", line 1186, in 
> syncmessagesto
>     action(dstfolder, statusfolder)
>   File "/usr/share/offlineimap3/offlineimap/folder/Base.py", line 1013, in 
> __syncmessagesto_copy
>     self.copymessageto(uid, dstfolder, statusfolder, register=0)
>   File "/usr/share/offlineimap3/offlineimap/folder/Base.py", line 902, in 
> copymessageto
>     message = self.getmessage(uid)
>   File "/usr/share/offlineimap3/offlineimap/folder/Maildir.py", line 262, in 
> getmessage
>     retval = file.read()

But old code which is not present in the new version.


>   File "/usr/lib/python3.9/codecs.py", line 322, in decode
>     (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 3278: 
> invalid start byte
> 

<snip>

> 
> Versions of packages offlineimap depends on:
> ii  offlineimap3  0.0~git20210105.00d395b+dfsg-3

offlineimap3 is still old and thats the reason you still have that old stack 
trace.
I think, for now just doing "apt-get update && apt-get install offlineimap3" 
should fix your issue.

Also, can you please let me know the steps you used to upgrade, and I will try 
to reproduce the error and check if I have done something wrong in the 
transitional package.


--
Regards
Sudip

Reply via email to