Skip to content

Use case-insensitive comparison for a few IMAP keywords - #2013

Merged
jstedfast merged 1 commit into
jstedfast:masterfrom
arnt:master
Aug 19, 2026
Merged

Use case-insensitive comparison for a few IMAP keywords#2013
jstedfast merged 1 commit into
jstedfast:masterfrom
arnt:master

Conversation

@arnt

@arnt arnt commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Most were already case-insensitive, but a few weren't. This change brings those into line.

This fixes s1t5/mail-archiver#511

Most were already case-insensitive, but a few weren't. This change brings
those into line.

This fixes s1t5/mail-archiver#511
@arnt

arnt commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

I am compelled to admit that I don't actually know the language and don't have either a compiler or enough of a runtime to run any unit tests. I sincerely hope the use of StringComparison is correct. It is at least stunningly similar to other code in the same file.

FYI there's another suspicious-looking case in ImapImplementation.cs near line 50, a Dictionary that looks case-sensitive and I think might better be case-insensitive. But I still don't know the language ;)

@jstedfast
jstedfast merged commit 7fd6e96 into jstedfast:master Aug 19, 2026
@jstedfast

Copy link
Copy Markdown
Owner

Yikes! I'm embarrassed I somehow missed those! Thanks for the patch and I'll look into the ImapImplementation code as well.

jstedfast added a commit that referenced this pull request Aug 19, 2026
@jstedfast jstedfast added the bug Something isn't working label Aug 19, 2026
@arnt

arnt commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Ahem. You realise that I, too, missed the same things in my code? ;)

Let's go weep into our beer together at some appropriate time.

salamiGeek pushed a commit to salamiGeek/MailKit that referenced this pull request Aug 25, 2026
Most were already case-insensitive, but a few weren't. This change brings
those into line.

This fixes s1t5/mail-archiver#511
salamiGeek pushed a commit to salamiGeek/MailKit that referenced this pull request Aug 25, 2026
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

Successfully merging this pull request may close these issues.

[Bug]: No messages picked up with Archiveopteryx IMAP server

2 participants