tacruc / gpgmailer

Send encryped emails to registered users
GNU Affero General Public License v3.0
17 stars 4 forks source link

added case insensitivity to the uploaduserkey #4

Closed Luticus closed 4 years ago

Luticus commented 4 years ago

Added case insensitivity to the uploaduserkey function to allow gpgkey and valid email to ignore case. This will allow it to import keys for email addresses that have varying capitalization. This should work fine as email addresses are not case sensitive, and other email clients tend to handle this just fine.

Not sure if you're interested in this functionality or not per our prior conversation about it, but so far I have tested it and everything seems fine. I'll probably maintain this change on my server, as long as is possible, because I feel it alleviates confusion for my users.

Luticus commented 4 years ago

yes, in my ldap server i switched my email to be uppercase so like User@Example.com which previously did not work due to the pgp being registered to user@example.com. I logged out of nextcloud completely and logged back in so it showed the altered email address in the email field, just to be sure. Upon testing I was able to upload my key successfully, and then I sent a test email from my server, which I could then read via kmail.

tacruc commented 4 years ago

Nice seams to work.