Parse Email for Authentication Code

The Problem

Sometimes services send authentication emails, where I must copy and paste an alphanumeric code into their website. It’s tedious to have to open the email in order to copy the code.

Proposed Solution

To solve this problem, you can (with user permission of course) parse authentication emails and allow it to be copied straight from the toast notification without even opening the email. For bonus points, you can include an option to copy the code and archive/mark the message at the same time.

Alternative Solutions

Instead of having the feature in the toast notification, you can have it on the top bar of the email.

Context

Google does this for Messages and I believe on Gmail mobile as well.