一句话
查看Outlook中HTML格式邮件的HTML源代码:
Windows:Actions > Other Actions > View Source
你需要点开一封邮件到一个单独的窗口
,才能在顶部菜单栏看到Actions菜单。
macOS:鼠标右击要查看的邮件 > View Source
Intro
之前在Windows环境使用Outlook邮件客户端,很容易就能查看某封邮件的HTML源码。搜索结果第一条就是:
如何在Outlook中查看HTML电子邮件正文的源代码?
行动 > 其他行为 > 查看源代码
Actions > Other Actions > View Source
可是换了macOS系统之后,软件界面有所改变,不知道怎么查看一封HTML格式邮件的源码了。
使用搜索引擎也一时没查到有用的结果:
系统及软件版本
macOS 12.6 M1 chip
Outlook 16.67 (22111300)
操作方式
如下:我想查看指定某封邮件内容的HTML源码:
在各个角落的设置/preferences中都找过了,没找到。
突然有一天,在该邮件处右击
,在菜单列表中看到了一项View source/查看源代码
:
迫不及待地点击,并试着搜索邮件正文中的一些文本:
搜索到了,而且看到了熟悉的HTML标签!
Bingo!
不过啊,这个被打开的默认的编辑器界面不是很友好,而且内容的换行也是很魔幻/令人迷惑(其实是保证了每行代码的字符数少于80个。毕竟在之前很长的一个阶段里,用于编程的显示器没有现在这么大)。
将其复制到自己常用的文本编辑器,分析去吧!
邮件正文 demo
主要包含三部分:
-
一些奇怪的key-value对
Received
高频出现 -
常见的HTTP头信息
-
HTML源码内容(格式可以说是非常乱了,而且CSS包含很多你平常不怎么使用,是为了客户端兼容而加的设置)。
以下为全文demo:
Received: from TYCP286MB0654.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:4e::7) by OSZP286MB1941.JPNP286.PROD.OUTLOOK.COM with HTTPS; Fri, 15 Apr 2022 21:58:08 +0000Received: from SN2PR01CA0076.prod.exchangelabs.com (2603:10b6:800::44) by TYCP286MB0654.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:4e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Fri, 15 Apr 2022 21:58:06 +0000Received: from SN1NAM02FT0053.eop-nam02.prod.protection.outlook.com (2603:10b6:800:0:cafe::c5) by SN2PR01CA0076.outlook.office365.com (2603:10b6:800::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.26 via Frontend Transport; Fri, 15 Apr 2022 21:58:05 +0000Authentication-Results: spf=pass (sender IP is 198.37.151.138) smtp.mailfrom=smtp.udacity.com; dkim=pass (signature was verified) header.d=udacity.com;dmarc=pass action=none header.from=udacity.com;compauth=pass reason=100Received-SPF: Pass (protection.outlook.com: domain of smtp.udacity.com designates 198.37.151.138 as permitted sender) receiver=protection.outlook.com; client-ip=198.37.151.138; helo=o1.mailer.udacity.com;Received: from o1.mailer.udacity.com (198.37.151.138) by SN1NAM02FT0053.mail.protection.outlook.com (10.97.4.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.19 via Frontend Transport; Fri, 15 Apr 2022 21:58:05 +0000X-IncomingTopHeaderMarker: OriginalChecksum:B7C0B9E9E8C99CC0AAC3706F37DA8B83D02E453F6BFEB8E859DE8CC841212051;UpperCasedChecksum:E00C8F69CAFF6AFEA98E1DCEDE62A306A60B78A892231CDF176D6916F63E13FD;SizeAsReceived:4462;Count:17DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udacity.com;h=content-transfer-encoding:content-type:from:mime-version:subject:reply-to:list-unsubscribe:to;s=s1; bh=VIm3992YtIrc1X0KSW8oTjGV5CTTvgudT2S5c62trPU=;b=fypPOnaAxdjGgh0XdkL0r61+FeIUTuE6rCltGbl1DTuCpQKLa3PZJFHIEEUGALDERzP/Se4h8O/gbh9dLn3X3PsW30msByyJCp6MUb7cns29zDZ5BC0qy283W7/1ybAJJQZ17QCVu2GwpfEb6K1H6R2zb3qQDbThklLaiiNGLd7RcmIdJY9BmWhNjciIObI9UxAlLxyyHJsWKNDp6CGn6mf8aEUGk7JhJ9SVDuEZeHrPXN6k9ub8cHKDx9Q9jI/35D4kLQXAxBnsg7Qgyz4rYOE9a6sdb5XXK5bJIH0AcfitAut+8IPRY0gQNZJxFQaGurn1ROLm5WJIRExHMTKRtQ==Received: by filterdrecv-canary-86c85f7c87-kdgrd with SMTP id filterdrecv-canary-86c85f7c87-kdgrd-1-6259EA6C-6A 2022-04-15 21:58:04.849215337 +0000 UTC m=+777797.524927796Received: from MzgxNTE0Ng (unknown)by geopod-ismtpd-2-0 (SG) with HTTPid YrvHQg-1Qd6c78KOydE2FQFri, 15 Apr 2022 21:58:04.793 +0000 (UTC)Content-Transfer-Encoding: quoted-printableContent-Type: text/html; charset=utf-8Date: Fri, 15 Apr 2022 21:58:04 +0000 (UTC)From: Udacity <support@udacity.com>Message-ID: <YrvHQg-1Qd6c78KOydE2FQ@geopod-ismtpd-2-0>Subject: FREE Google Workspace course now availableReply-To: noreply@udacity.comList-Unsubscribe: =?us-ascii?Q?=3Cmailto=3Aunsubscribe=40smtp=2Eudacity=2Ecom=3Fsubject=3Dhttps=3A=2F=2Ftclick=2Eud?= =?us-ascii?Q?acity=2Ecom=2Fwf=2Funsubscribe*q*upn=3DTG46AUj0?= =?us-ascii?Q?4py1FcrK8u5uiZMcyDWWLjXe-2B8-2FGqyhNMG2?= =?us-ascii?Q?y0bWGN8VeRi1G-2BgPDfuRZE5EguSKvgiumcs58?= =?us-ascii?Q?SJPK9cqAvbKOy2EHokihTqvemcXovMBTWw0KfQv?= =?us-ascii?Q?coZ5xBwZEHJiIbV8QoJWBjDy-2FmkNCBgeZzEwD?= =?us-ascii?Q?JYWB9fAlCz0-2BGFAo3xX5-2F8Mm-2Bx2AgVO44?= =?us-ascii?Q?uNYA-2BMQpa3xgG1PQN3nYf-2BeqVg6CD2uA-2F?= =?us-ascii?Q?9iQRIH1wT5a-2FwIGWNsj-2BPv1IqNIzUc6YLlU?= =?us-ascii?Q?FbRgPOqB8jeIzJPrPhxLRCeq-2BU-2FPEEjxmJ3?= =?us-ascii?Q?XDC4F44A1PrI0xM-2FnQfceA-2B5O3lT-2F4HqH?= =?us-ascii?Q?caHfCYtQJHG0-2BdWiNk2Ti2DZwF7uIfWH9l2KL?= =?us-ascii?Q?kF12nhbhmis-2BQqE6gS8PnLt2CgauNzf8bHzxe?= =?us-ascii?Q?IsTLvr-2F6-2FO2NOrHoBCvUsHRFVmmQdW-2BcO?= =?us-ascii?Q?hzanBdSMuAVPBZ-2B-2Bk1He-2Fi1tx5HxRGgtu?= =?us-ascii?Q?87DXzTBjFLG1RZO2UYHr6Ost642Mm-2FYtlBDul?= =?us-ascii?Q?Jc5ubwSCJublFMy6mF5-2Be91rYiJaRIq1pT-2B?= =?us-ascii?Q?M3eXYu0Spk2nkFkfvdtj84LS5tFsLbAA3lYfDZ5?= =?us-ascii?Q?sV0iDH-2F5ViqLk9yNUWGOreTflNP-2B6nbG-2B?= =?us-ascii?Q?6H99nTZSP4Sa4YhpUAtYk1w9zr0-2FzRv8cipzN?= =?us-ascii?Q?ypYFijdact5t6yoUkFwrdpOFs71edJbdrgnqssZ?= =?us-ascii?Q?Svb7yGovajDjMYej3UBovxvFUVIuABYljde1NV1?= =?us-ascii?Q?MjnUj8SMd3Z1whM9wYkAeB9X0Vc623v0VQpr5j4?= =?us-ascii?Q?q0nkrlBlYcYalLVISXaCK7Rs-2Bha-2FYSlqDTw?= =?us-ascii?Q?-2BN2nV77ikUCRKiztNqoZUgc6Jrz9JdMoob7aB?= =?us-ascii?Q?t0gLwxsBpCO3u0UEFUSmZiTROF97diGqBDAxzvq?= =?us-ascii?Q?BP0XOjtXUhhWpLIdFjDN4VzvRBdFY7zowQpQcmA?= =?us-ascii?Q?b-2F9vg-3D-3D=3E?=X-campaignid: e4fe4998-1c20-4ef1-b74c-488e71599eecX-SG-EID: =?us-ascii?Q?=2FF3gGeno+zlCG3C71QjIxOhsxTVVGLujCbLl7Au2E0krlJGuH72fHiaOmiwkZ9?= =?us-ascii?Q?0JmBxT3mtPn5QGnqu1dx7Numfl8ibV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X2+nKnDCLZ03dyhfJeQGHGGjvmmPcyidYgC1ik?= =?us-ascii?Q?seOPXN+=2FaF7oJuu=2Fk7gGaOgRo9Y1+0AQOBi12O2?= =?us-ascii?Q?JSAtjuNfWfzHynpR4b?=To: jinjin wu <wuyujin1997@outlook.com>X-Entity-ID: WvJc2OAeTKDw0rDn40uNlg==X-IncomingHeaderCount: 17Return-Path: bounces+3815146-dd19-wuyujin1997=outlook.com@smtp.udacity.comX-MS-Exchange-Organization-ExpirationStartTime: 15 Apr 2022 21:58:05.4043 (UTC)X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmitX-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmitX-MS-Exchange-Organization-Network-Message-Id: ed20632a-ef52-4229-4588-08da1f2b04fcX-EOPAttributedMessage: 0X-EOPTenantAttributedMessage: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa:0X-MS-Exchange-Organization-MessageDirectionality: IncomingX-MS-PublicTrafficType: EmailX-MS-Exchange-Organization-AuthSource: SN1NAM02FT0053.eop-nam02.prod.protection.outlook.comX-MS-Exchange-Organization-AuthAs: AnonymousX-MS-UserLastLogonTime: 4/15/2022 8:53:22 PMX-MS-Office365-Filtering-Correlation-Id: ed20632a-ef52-4229-4588-08da1f2b04fcX-MS-TrafficTypeDiagnostic: TYCP286MB0654:EE_X-MS-Exchange-EOPDirect: trueX-Sender-IP: 198.37.151.138X-SID-PRA: SUPPORT@UDACITY.COMX-SID-Result: PASSX-MS-Exchange-Organization-PCL: 2X-MS-Exchange-Organization-SCL: 2X-Microsoft-Antispam: BCL:0;X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2022 21:58:05.2168 (UTC)X-MS-Exchange-CrossTenant-Network-Message-Id: ed20632a-ef52-4229-4588-08da1f2b04fcX-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaaX-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0053.eop-nam02.prod.protection.outlook.comX-MS-Exchange-CrossTenant-AuthAs: AnonymousX-MS-Exchange-CrossTenant-FromEntityHeader: InternetX-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB0654X-MS-Exchange-Transport-EndToEndLatency: 00:00:02.7866718X-MS-Exchange-Processed-By-BccFoldering: 15.20.5164.020X-Microsoft-Antispam-Mailbox-Delivery:abwl:0;wl:0;pcwl:0;kl:0;iwl:0;ijl:0;dwl:0;dkl:0;rwl:0;ucf:0;jmr:0;ex:0;auth:1;dest:I;ENG:(5062000285)(90000117)(90010023)(91010020)(91040095)(5061607266)(5061608174)(9050020)(9100338)(8300001)(4810004)(4910013)(9910022)(9545005)(10170022)(9320005);X-Message-Info:5vMbyqxGkdds2mdKKpBA9V77rPMbM2VC3SpZvobZZEqFwRdSxzKHhqAJOjXVaVIRGwD106qfeLamfg4uPy4gHl5ctkrW0UQH5sgBC2mYpn01NTSKkmUZmx/QpLdQJFYFgvBoXsNN0Sl3WLAdH96Nk8fmvpnrn5HMG/z88zhyPnfDIS+uEuTh2B2UtGU/36A99Y5RvrDICODlUSDRTuLXLg==X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0tMQ==X-Microsoft-Antispam-Message-Info:=?utf-8?B?eCsvZ3I1aFp3U2xGYXBudUF0SDZQV09Balp5SVRXQmcycFlra1BOR0J6M1lQ?= =?utf-8?B?cE9DMnAzWG5SZUJHZzNlZ1VoQ214UlI4TGptVXhHR09uRlQ0eC9Ma1NKelRW?= =?utf-8?B?OU1lYnNPV2JNcUNqd2F5NVl0Y2VSaHN4bnlPSUsxV01jbmYxTWU0M1pzQ081?= =?utf-8?B?cHQ5Rk45T1labHd0VUpoYWtia3JTeTVPdlh2cXpXb1dDdE9oelgrL0cwd2Fu?= =?utf-8?B?MGFJ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zFHbzRMY01SdnRn?= =?utf-8?B?SCtFK29LWHp3VElFQXZrRHQ5d1E2UExlQ3h2SG94V2JDZWMwVm1EemlmVUtQ?= =?utf-8?B?TWJVQkhKRzNqWjBZTnAxSFJ6L0tzb093ellobmxCc0NDNWRIejBlaytSaUlQ?= =?utf-8?B?cVl3TndGUEQzT1lBVnF0dWFNV1hYNTZ5R21yY2g4V1V1ZXltV3lBTk5GRjAv?= =?utf-8?B?dnUzbUwxYStlb2k5NjVuMGphSERTd2o1NmV6MXVuZ0ptMEFRZkZacFdWOUVx?= =?utf-8?B?OU4vTUJpUXRmQTBXQjEvcUszYXdlcENPQXRkYk5tRU9taFBkU29wSTJnOUpW?= =?utf-8?B?QllSbjF4b1RLWldpWnFWNWJidlh4N1VTTWpsZm5UZTZsdkI3NlRKWVFIT3Fx?= =?utf-8?B?THhvai9CTDJJKzNhbjlaRy9kaEkvcnh5cm1yTGs5dHlHekNsYnRlUU1hdWpX?= =?utf-8?B?a2U3WndrS1M1cm9RaS9YV1djdGhVcWovTnhaTTNFL0wxVEhXcmN3SDNwYkM5?= =?utf-8?Q?fAvjhoRUQ=3D?=MIME-Version: 1.0DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head> <title>Udacitytitle> head> =20