Yahoo! (and Google) mail server detection false positives
When creating a new mail account, the Account Summary page offers a section called "Yahoo! Features" if the IMAP server hostname contains the substring ymail.com
. It should probably be checking for equality instead, or perhaps the equivalent of (^|[.])ymail[.]com$
.
Example test case:
- Start creating a new mail account (File -> New -> Mail Account).
- Put in any dummy email address like a@b and skip looking up server details.
- Set the IMAP server to
anymail.company.org
. - Leave Receiving Options at the default; they don't matter.
- Fill in any dummy SMTP server like b, and click Next (not Finish) to go the Account Summary page.
- The Account Summary page shows the Yahoo! Features section even though
anymail.company.org
is clearly not a Yahoo server.
I think the problem is at e-mail-config-yahoo-summary.c:82, which uses e_util_utf8_strstrcase
which says it does case-insensitive search.
That also means it's searching for yahoo.com
and rocketmail.com
, though those are much less likely to occur as substrings in someone else's domain name.
While searching, I also came across essentially the same problem for Google in e-mail-config-google-summary.c, which searches for the substrings gmail.com
or googlemail.com
.