Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Folders that contain a & you can't use them #90

Closed
johansmitsnl opened this issue Sep 16, 2023 · 1 comment
Closed

[bug]: Folders that contain a & you can't use them #90

johansmitsnl opened this issue Sep 16, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@johansmitsnl
Copy link

johansmitsnl commented Sep 16, 2023

What happened?

When you have a folder with a & you can't use them in various mail clients.

How can we reproduce the problem?

I can reproduce the problem by doing the following steps:

  1. Connect Blue Mail
  2. Make a mailbox that contains a & like: You & me
  3. Try to move a file into the folder
  4. The folder stays empty

Version

v0.3.7

What database are you using?

SQLite

What blob storage are you using?

Local

Where is your directory located?

LDAP

What operating system are you using?

Linux

Relevant log output

2023-09-16T07:39:00.353411Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="22 NOOP\r\n" size=9
2023-09-16T07:39:00.353768Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="22 OK NOOP completed\r\n" size=22
2023-09-16T07:39:00.356338Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="23 SELECT \"INBOX\"\r\n" size=19
2023-09-16T07:39:00.356749Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="* OK [CLOSED] Closed previous mailbox\r\n* 3 EXISTS\r\n* FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)\r\n* 0 RECENT\r\n* OK [PERMANENTFLAGS (\\Deleted \\Seen \\Answered \\Flagged \\Draft \\*)] All allowed\r\n* OK [UIDVALIDITY 1694717808] UIDs valid\r\n* OK [UIDNEXT 5] Next predicted UID\r\n* OK [MAILBOXID (cyaaaaaa)] Unique Mailbox ID\r\n23 OK [READ-WRITE] SELECT completed\r\n" size=359
2023-09-16T07:39:00.389898Z  INFO session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: utils::listener::listen: context="tls" event="handshake" version=TLSv1_3 cipher=TLS13_AES_256_GCM_SHA384
2023-09-16T07:39:00.393480Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="1 LOGIN \"[email protected]\" \"password\"\r\n" size=47
2023-09-16T07:39:00.397251Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="1 OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE SASL-IR LITERAL+ ID UTF8=ACCEPT IDLE NAMESPACE CHILDREN MULTIAPPEND BINARY UNSELECT ACL UIDPLUS ESEARCH WITHIN SEARCHRES SORT THREAD=REFERENCES LIST-EXTENDED ESORT SORT=DISPLAY SPECIAL-USE CREATE-SPECIAL-USE MOVE CONDSTORE QRESYNC UNAUTHENTICATE STATUS=SIZE OBJECTID PREVIEW] Authentication successful\r\n" size=347
2023-09-16T07:39:00.399752Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="2 STATUS \"test email you &- me\" (UIDVALIDITY)\r\n" size=47
2023-09-16T07:39:00.400256Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="* STATUS \"test email you &- me\" (UIDVALIDITY 1694718505)\r\n2 OK STATUS completed\r\n" size=81
2023-09-16T07:39:00.401881Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="3 NOOP\r\n" size=8
2023-09-16T07:39:00.401977Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="3 OK NOOP completed\r\n" size=21
2023-09-16T07:39:00.404276Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="24 STATUS \"test email you &- me\" (RECENT)\r\n" size=43
2023-09-16T07:39:00.404382Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="* STATUS \"test email you &- me\" (RECENT 0)\r\n24 OK STATUS completed\r\n" size=68
2023-09-16T07:39:00.408752Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="25 UID COPY 3 \"test email you &- me\"\r\n" size=38
2023-09-16T07:39:00.408879Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="25 NO [TRYCREATE] Destination mailbox does not exist.\r\n" size=55
2023-09-16T07:39:00.422153Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="4 NOOP\r\n" size=8
2023-09-16T07:39:00.422240Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="4 OK NOOP completed\r\n" size=21
2023-09-16T07:39:00.425144Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="5 EXAMINE \"test email you &- me\"\r\n" size=34
2023-09-16T07:39:00.425499Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="* 0 EXISTS\r\n* FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)\r\n* 0 RECENT\r\n* OK [PERMANENTFLAGS (\\Deleted \\Seen \\Answered \\Flagged \\Draft \\*)] All allowed\r\n* OK [UIDVALIDITY 1694718505] UIDs valid\r\n* OK [UIDNEXT 1] Next predicted UID\r\n* OK [MAILBOXID (cyaaaaaf)] Unique Mailbox ID\r\n5 OK [READ-ONLY] EXAMINE completed\r\n" size=319
2023-09-16T07:39:00.430804Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::client: event="read" data="6 SEARCH RETURN (COUNT) 1:* UNSEEN NOT DELETED\r\n" size=48
2023-09-16T07:39:00.430987Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=37634}: imap::core::writer: event="write" data="* ESEARCH (TAG \"6\") COUNT 0\r\n6 OK SEARCH completed\r\n" size=52
2023-09-16T07:39:00.447501Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="26 NOOP\r\n" size=9
2023-09-16T07:39:00.447684Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="26 OK NOOP completed\r\n" size=22
2023-09-16T07:39:00.449729Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="27 EXAMINE \"INBOX\"\r\n" size=20
2023-09-16T07:39:00.450123Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="* OK [CLOSED] Closed previous mailbox\r\n* 3 EXISTS\r\n* FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)\r\n* 0 RECENT\r\n* OK [PERMANENTFLAGS (\\Deleted \\Seen \\Answered \\Flagged \\Draft \\*)] All allowed\r\n* OK [UIDVALIDITY 1694717808] UIDs valid\r\n* OK [UIDNEXT 5] Next predicted UID\r\n* OK [MAILBOXID (cyaaaaaa)] Unique Mailbox ID\r\n27 OK [READ-ONLY] EXAMINE completed\r\n" size=359
2023-09-16T07:39:00.455586Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::client: event="read" data="28 SEARCH RETURN (COUNT) 1:* UNSEEN NOT DELETED\r\n" size=49
2023-09-16T07:39:00.455864Z TRACE session{instance="imaptls" protocol=Imap remote.ip="::ffff:11.11.11.11" remote.port=46664}: imap::core::writer: event="write" data="* ESEARCH (TAG \"28\") COUNT 0\r\n28 OK SEARCH completed\r\n" size=54


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@mdecimus
Copy link
Member

I've just committed a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants