Properly decode Unicode folder names; fix #5217
Previously, we were taking folder names as they came off the wire. Turns out IMAP specifies that folder names with 8 bit code points are encoded in a crazy scheme unique to IMAP. Now, we properly decode that scheme to the correct UTF-8 folder names to be displayed to the user. There's also now a database upgrade path that converts all existing mailboxes to the decoded version, so your existing database should just keep working.
This commit is contained in:
parent
8d4761461f
commit
cee5a81df1
13 changed files with 413 additions and 47 deletions
7
sql/version-006.sql
Normal file
7
sql/version-006.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--
|
||||
-- Dummy database upgrade to fix folder names being stored in encoded form.
|
||||
-- Before this version, all folder names are stored as they came off the wire.
|
||||
-- After this version, all folder names are stored in canonical UTF-8 form.
|
||||
-- See src/engine/imap-db/imap-db-database.vala in post_upgrade() for the code
|
||||
-- that runs the upgrade.
|
||||
--
|
||||
Loading…
Add table
Add a link
Reference in a new issue