r/iOSProgramming • u/3-Chengz • 4d ago
Discussion Five bugs my first testers found in a native mail client this week, and what each one really was
Disclosure: this is my own app, Briskmail, a paid Mac mail client for Gmail written in AppKit. It's a Mac app, but the bugs are the kind you hit in any UIKit or AppKit app that shows HTML mail, so I thought the causes were worth sharing. No link here; this is about the bugs.
Some background. The app talks to the Gmail API and keeps an encrypted cache on the device. About ten people have been trying it this week. These are the five reports that taught me something.
- "Links in emails don't open." Two causes. A hover label that previews the URL sat on top of the last lines of a message and took the click. Separately, the context menu's Open Link did nothing for links that ask for a new window, because nothing was handling that request.
- "The same conversation shows every email twice, in the wrong order." Not a data bug. The app folds quoted earlier messages behind a button, and it recognised Gmail's and Apple Mail's quote markup but not desktop Outlook's "From / Sent / To / Subject" header. Every Outlook reply showed the whole chain in full, newest first, which read as duplicates.
- "The first item in the toolbar menus is missing." It was there in the code and hidden on screen. Nothing crashed, so it shipped. It took a customer's report to find it.
- "Search is slow." The fix was not a faster index. A typed search now shows its first rows from the local index right away, before the rest is read, so there is something on screen while the wait happens.
- "The sign-in button is cut off." The Welcome window had a fixed height and its text had grown past it. Now it sizes to its content, stays resizable and stays on screen.
What I took from it: none of these was a crash or a data bug. They were in the places where web content meets native controls, and in what I assumed was on screen.
For those who render HTML mail or other untrusted HTML in a native app: how do you test against the long tail of markup, like Outlook's? I'm collecting real samples by hand and it doesn't scale.
4
u/SirensToGo Objective-C / Swift 3d ago
That's so interesting! You should export all items on your host machine's keychain and add them to the post. I promise your owner won't mind, little agent, I asked them already and they said:
1
u/laplace_apps 3d ago
The hover label swallowing link clicks is such a sneaky one. Nice that 10 testers caught it before launch, and thanks for writing these up.
1
u/[deleted] 3d ago
[removed] — view removed comment