mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
c76582194a
Summary: Autolinker is a great open source project but it attempts to parse HTML with regexp, is quite slow, and hangs on specific emails https://github.com/nylas/N1/issues/1540 This is super bad, and also super unnecessary. I think this should do the trick. Note: I changed the urlRegex in our Utils to be much more liberal. It now matches anything that looks like a URL, not just things with the http:// and https:// prefixes. It's used in the LinkEditor and onboarding screen (detecting auth errors with urls) and I think it should be ok? Test Plan: Need to write some tests Reviewers: evan, juan Reviewed By: juan Differential Revision: https://phab.nylas.com/D2725
184 lines
5.7 KiB
HTML
184 lines
5.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<body style="margin: 0; padding: 0;" bgcolor="#FFFFFF">
|
|
<table width="100%" height="100%" style="min-width: 348px;" border=
|
|
"0" cellspacing="0" cellpadding="0">
|
|
<tr height="32px">
|
|
<td></td>
|
|
</tr>
|
|
<tr align="center">
|
|
<td width="32px"></td>
|
|
<td>
|
|
<table border="0" cellspacing="0" cellpadding="0" style=
|
|
"max-width: 600px;">
|
|
<tr>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td align="left"><img width="92px" height="32px" src=
|
|
"cid:google_logo" style="display: block;"></td>
|
|
<td align="right"><img width="32px" height="32px" style=
|
|
"display: block;" src="cid:keyhole"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr height="16">
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table bgcolor="#4184F3" width="100%" border="0" cellspacing="0"
|
|
cellpadding="0" style=
|
|
"min-width: 332px; max-width: 600px; border: 1px solid #E0E0E0; border-bottom: 0; border-top-left-radius: 3px; border-top-right-radius: 3px;">
|
|
<tr>
|
|
<td height="72px" colspan="3"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="32px"></td>
|
|
<td style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 24px; color: #FFFFFF; line-height: 1.25;">
|
|
New sign-in from Chrome on Mac</td>
|
|
<td width="32px"></td>
|
|
</tr>
|
|
<tr>
|
|
<td height="18px" colspan="3"></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table bgcolor="#FAFAFA" width="100%" border="0" cellspacing="0"
|
|
cellpadding="0" style=
|
|
"min-width: 332px; max-width: 600px; border: 1px solid #F0F0F0; border-bottom: 1px solid #C0C0C0; border-top: 0; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;">
|
|
<tr height="16px">
|
|
<td width="32px" rowspan="3"></td>
|
|
<td></td>
|
|
<td width="32px" rowspan="3"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table style="min-width: 300px;" border="0" cellspacing="0"
|
|
cellpadding="0">
|
|
<tr>
|
|
<td style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 13px; color: #202020; line-height: 1.5;">
|
|
Hi Ben,</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 13px; color: #202020; line-height: 1.5;">
|
|
Your Google Account careless@foundry376.com was just used to sign
|
|
in from <span style="white-space:nowrap;">Chrome</span> on
|
|
<span style="white-space:nowrap;">Mac</span>.
|
|
<table border="0" cellspacing="0" cellpadding="0" style=
|
|
"margin-top: 48px; margin-bottom: 48px;">
|
|
<tr valign="middle">
|
|
<td width="32px"></td>
|
|
<td align="center"><img src="cid:profilephoto" width="48px" height=
|
|
"48px" style="display: block; border-radius: 50%;"></td>
|
|
<td width="16px"></td>
|
|
<td style="line-height: 1;"><span style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif;font-size: 20px; color: #202020;">
|
|
Ben Gotow (Careless)</span><br>
|
|
<span style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif;font-size: 13px; color: #727272;">
|
|
careless@foundry376.com</span></td>
|
|
</tr>
|
|
<tr valign="middle">
|
|
<td width="32px" height="24px"></td>
|
|
<td align="center" height="24px"><img src="cid:down_arrow" width=
|
|
"4px" height="10px" style="display: block;"></td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td width="32px"></td>
|
|
<td align="center"><img src="cid:osx" width="48px" height="48px"
|
|
style="display: block;"></td>
|
|
<td width="16px"></td>
|
|
<td style="line-height: 1.5;"><span style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 16px; color: #202020;">
|
|
Mac</span><br>
|
|
<span style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 13px; color: #727272;">
|
|
Monday, July 13, 2015 3:49 PM (Pacific Daylight Time)<br>
|
|
San Francisco, CA, USA*<br>
|
|
Chrome</span></td>
|
|
</tr>
|
|
</table>
|
|
<b>Don't recognize this activity?</b><br>
|
|
Review your <a href=
|
|
"https://accounts.google.com/AccountChooser?Email=careless@foundry376.com&am%E2%80%A6//security.google.com/settings/security/activity/nt/1436827773000?rfn%3D31"
|
|
style="text-decoration: none; color: #4285F4;" target=
|
|
"_blank">recently used devices</a> now.<br>
|
|
<br>
|
|
Why are we sending this? We take security very seriously and we
|
|
want to keep you in the loop on important actions in your
|
|
account.<br>
|
|
We were unable to determine whether you have used this browser or
|
|
device with your account before. This can happen when you sign in
|
|
for the first time on a new computer, phone or browser, when you
|
|
use your browser's incognito or private browsing mode or clear your
|
|
cookies, or when somebody else is accessing your account.</td>
|
|
</tr>
|
|
<tr height="32px">
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 13px; color: #202020; line-height: 1.5;">
|
|
Best,<br>
|
|
The Google Accounts team</td>
|
|
</tr>
|
|
<tr height="16px">
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style=
|
|
"font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 12px; color: #B9B9B9; line-height: 1.5;">
|
|
*The location is approximate and determined by the IP address it
|
|
was coming from.<br>
|
|
This email can't receive replies. To give us feedback on this
|
|
alert, <a href=
|
|
"https://support.google.com/accounts/contact/device_alert_feedback?hl=en"
|
|
style="text-decoration: none; color: #4285F4;" target=
|
|
"_blank">click here</a>.<br>
|
|
For more information, visit the <a href=
|
|
"https://support.google.com/accounts/answer/2733203" style=
|
|
"text-decoration: none; color: #4285F4;" target="_blank">Google
|
|
Accounts Help Center</a>.</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr height="32px">
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr height="16">
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td style=
|
|
"max-width: 600px; font-family: Roboto-Regular,Helvetica,Arial,sans-serif; font-size: 10px; color: #BCBCBC; line-height: 1.5;">
|
|
You received this mandatory email service announcement to update
|
|
you about important changes to your Google product or account.<br>
|
|
<div style="direction: ltr; text-align: left">© 2015 Google Inc.,
|
|
1600 Amphitheatre Parkway, Mountain View, CA 94043, USA</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td width="32px"></td>
|
|
</tr>
|
|
<tr height="32px">
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|