What I’ve learned building an email app from scratch