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

micalg: convert raw micalg to lowercase for map lookup #13

Merged
merged 1 commit into from Jun 26, 2022

Conversation

rockorager
Copy link
Contributor

Some mail clients send micalg values in uppercase. The current
implementation doesn't allow for anything other than lowercase.

The referenced table (RFC4880 9.4) lists the algorithms in uppercase, so
it's reasonable that a client would send a micalg in something other
than lowercase.

This patch converts the raw micalg to lowercase, and modifies a test
case to have an uppercase micalg.

Signed-off-by: Tim Culverhouse tim@timculverhouse.com

Some mail clients send micalg values in uppercase. The current
implementation doesn't allow for anything other than lowercase.

The referenced table (RFC4880 9.4) lists the algorithms in uppercase, so
it's reasonable that a client would send a micalg in something other
than lowercase.

This patch converts the raw micalg to lowercase, and modifies a test
case to have an uppercase micalg.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
@emersion emersion merged commit 215482a into emersion:master Jun 26, 2022
@emersion
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants