[英]Testing Gmail Schemas Fails
我正在嘗試測試Gmail模式 ,其中發件人和收件人是自我測試說明后的相同(我的)帳戶
您可以通過向Gmail帳戶發送帶有架構的電子郵件輕松測試您的標記是否正常工作。 發件人和收件人是同一帳戶的所有電子郵件都會忽略注冊要求,並可用於自我測試。
但如果沒有預期的結果,則不會顯示“操作”按鈕。
我嘗試過使用JSON-LD和Microdata而沒有結果。
這是我的Gmail帳戶中電子郵件的“顯示原件”:
Return-Path: <fake-account-email-x@gmail.com>
Received: *****
Message-ID: <fake-email-id@gmail.com>
Date: Tue, 12 Nov 2013 09:41:53 +0100
From: Cristian <fake-account-email-x@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5
MIME-Version: 1.0
To: fake-account-email-x@gmail.com
Subject: test
Content-Type: multipart/alternative;
boundary="------------090703050903040805020509"
This is a multi-part message in MIME format.
--------------090703050903040805020509
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ciao ${FIRSTNAME}$
* punto 1
* punto 2
* punto 3
--------------090703050903040805020509
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Approval request for John's
$10.13 expense for office supplies">
<div itemprop="action" itemscope=""
itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Approve Registration">
<div itemprop="handler" itemscope=""
itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="http://www.example.com/">
</div>
</div>
</div>
<h1>Ciao ${FIRSTNAME}$</h1>
<ul>
<li>punto 1</li>
<li>punto 2</li>
<li>punto 3</li>
</ul>
</body>
</html>
--------------090703050903040805020509--
在這里它是如何從列表中出現的:
在消息里面:
我還通過Markup Tester驗證了我的代碼
我的測試中的錯誤在哪里? 我想不通:(
通過測試Gmail架構發送電子郵件,如Devnook建議,一切正常,但使用我的Thunderbird客戶端(通過SMTP使用我的帳戶)nope。
這里通過“測試Gmail架構”測試的來源
Delivered-To: fake-account-email-x@gmail.com
Received: by 10.224.58.135 with SMTP id g7csp190326qah;
Tue, 12 Nov 2013 22:48:43 -0800 (PST)
X-Google-DKIM-Signature: *********
X-Original-Authentication-Results: ********
Return-Path: <3yyCDUg0JErIYeSad-SUlagfkYeSad.UgeUjaklaSf.hgjlS.UjpYeSad.Uge@2UIX4H7XYGSZ66WEERLQ.apphosting.bounces.google.com>
Received-SPF: pass ********
Authentication-Results: mr.google.com;
spf=pass ********
X-Received: from mr.google.com ([10.224.24.65])
by 10.224.24.65 with SMTP id u1mr35599473qab.6.1384325323511 (num_hops = 1);
Tue, 12 Nov 2013 22:48:43 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.224.24.65 with SMTP id u1mr25556165qab.6.1384325323474; Tue,
12 Nov 2013 22:48:43 -0800 (PST)
X-Google-Appengine-App-Id: s~gmail-actions
X-Google-Appengine-App-Id-Alias: gmail-actions
Message-ID: <fake-email-id@google.com>
Date: Wed, 13 Nov 2013 06:48:43 +0000
Subject: Testing Gmail Actions 2013-11-13 06:48
From: fake-account-email-x@gmail.com
To: fake-account-email-x@gmail.com
Content-Type: multipart/alternative; boundary=001a11c2c63a28cf0504eb095b6e
--001a11c2c63a28cf0504eb095b6e
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Ciao ${FIRSTNAME}$
punto 1
punto 2
punto 3
--001a11c2c63a28cf0504eb095b6e
Content-Type: text/html; charset=ISO-8859-1
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div itemscope="" itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Approval request for John's
$10.13 expense for office supplies">
<div itemprop="action" itemscope=""
itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Approve Registration">
<div itemprop="handler" itemscope=""
itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="http://www.example.com/">
</div>
</div>
</div>
<h1>Ciao ${FIRSTNAME}$</h1>
<ul>
<li>punto 1</li>
<li>punto 2</li>
<li>punto 3</li>
</ul>
</body>
</html>
--001a11c2c63a28cf0504eb095b6e--
“大”的區別在於此電子郵件的標題包含DKIM簽名和SPF,但理論上emails where the sender and the recipient are the same account ignore the registration requirements
它是如何出現“正確”的電子郵件
我測試了你的電子郵件(使用http://gmail-actions.appspot.com/發送給我自己),我的動作出現在我的收件箱中。 所以你的標記很好......你確定你沒有將你的電子郵件轉發到另一個帳戶嗎?
也許嘗試來自gmail-actions.appspot.com的其他示例電子郵件。 如果沒有,也許您的收件箱中啟用了一些實驗室或阻止按鈕出現的主題?
此外,這僅適用於桌面afaik。
當我嘗試DKIM自己簽署消息時,checkmyauth @ auth.returnpath.net返回:
WARNING: The From domain 'gmail.com' does NOT match the DKIM domain
並且gmail省略了標題(我的電子郵件仍然是未簽名的)。
雅虎稱DKIM順便過去了。
這很糟糕,如果自簽名的電子郵件被認為是垃圾郵件,則無法以編程方式測試Gmail操作。
米爾扎
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.