Skip to content

Cardbook: Lookup fails when replied email address has mixed case #278

Description

@RealRaven2000

reported over at #257 by @richanl:

One problem left: If mail-addresses in my Cardbook are stored with capitals as Hans.Mayer@, Smart template doesn't recognize it in the Mail with %recipient(addressbook,nickname)%. Do I change it to hans.mayer@, it works on my system. Same Problem with "answer": If the senders mail-address is transmitted with capitals, ST4 doesn't recognize it. The letters must be in lower case. Can you fix this behaviour?

After I talked with the author of Cardbook this morning and raised an issue on his Gitlab, It turns out that he stores all emails in lowercase (according to standard) so this means that I can safely convert the email from any AB variable to lowercase when I look up addresses from the Cardbook database. New version will follow below.

I already made a full patch where the switch (conversion to lowercase) was optional and disabled, and I also already made a UI and full translations across all languages in the advanced preferences. I guess I can throw that work away.... it would have just been a one-liner change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcardbookIntegration with the Cardbook Add-on

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions