我最终试图拉动" X-Mailer"来自电子邮件的标题。所有其他似乎工作正常。关于如何调试/我可能做错的任何想法?
这是我尝试的内容:
return (MCOIMAPMessagesRequestKind)
(MCOIMAPMessagesRequestKindHeaders | MCOIMAPMessagesRequestKindStructure |
MCOIMAPMessagesRequestKindInternalDate | MCOIMAPMessagesRequestKindHeaderSubject |
MCOIMAPMessagesRequestKindGmailThreadID | MCOIMAPMessagesRequestKindFullHeaders |
MCOIMAPMessagesRequestKindGmailLabels | MCOIMAPMessagesRequestKindExtraHeaders |
MCOIMAPMessagesRequestKindFlags);
我要求这些标题:
message.gmailThreadID; => 1504802571269374502
我可以验证是否正在发送正确的RequestKindHeaders,因为我能够提取正确的GmailThreadID:
Delivered-To: vu0tran@xxxxx.com
Received: by 10.70.126.36 with SMTP id mv4csp3102740pdb;
Tue, 23 Jun 2015 14:25:31 -0700 (PDT)
X-Received: by 10.13.219.13 with SMTP id d13mr6638173ywe.22.1435094730675;
Tue, 23 Jun 2015 14:25:30 -0700 (PDT)
Return-Path: <bounce-mc.us6_12976611.827941-vu0tran=gmail.com@mail84.atl31.mcdlv.net>
Received: from mail84.atl31.mcdlv.net (mail84.atl31.mcdlv.net. [205.201.134.84])
by mx.google.com with ESMTP id e184si9259660ywa.76.2015.06.23.14.25.29
for <vu0tran@gmail.com>;
Tue, 23 Jun 2015 14:25:29 -0700 (PDT)
Received-SPF: pass (google.com: domain of bounce-mc.us6_12976611.827941-vu0tran=gmail.com@mail84.atl31.mcdlv.net designates 205.201.134.84 as permitted sender) client-ip=205.201.134.84;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bounce-mc.us6_12976611.827941-vu0tran=gmail.com@mail84.atl31.mcdlv.net designates 205.201.134.84 as permitted sender) smtp.mail=bounce-mc.us6_12976611.827941-vu0tran=gmail.com@mail84.atl31.mcdlv.net;
dkim=pass header.i=@mail84.atl31.mcdlv.net
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=k1; d=mail84.atl31.mcdlv.net;
h=From:Reply-To:To:Date:Message-ID:List-ID:List-Unsubscribe:Sender:Subject:Content-Type; i=vu=XXXXXXXX.com@mail84.atl31.mcdlv.net;
bh=rAP8hOadQtBeDm6jm9/SrnV0Y/o=;
b=pp/7bQcQFZXsajvEDHf+faCrkOg95UyrcpZ1NUVzt3O5dxSWmjhefcytwvQiVbcw8FIyyekpZMke
ezAjhCRqZKyM0xafVQGtqVX2jKmDsgyA5r0cV2FBa8ObFX+mMjHRDYVzXrW+QfKlrc9buaNZwv9Q
VZVWotIxzZKHn9Qu8gE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=k1; d=gmail.mcsv.net;
h=From:Reply-To:To:Date:Message-ID:X-Feedback-ID:List-ID:List-Unsubscribe:Sender:Subject:Content-Type;
bh=rAP8hOadQtBeDm6jm9/SrnV0Y/o=;
b=l5yRKHMnZEW1slk+VOypUZ3r/24fJjff022IE2p9fiOUDBIx+UiHYdWyMdt6jhH85UDDOEHstnDe
OYBJfj80RXqduVRvnaSRDRtZV1W3PCZFLfoLcAS72V0cCHaRZBBojIwlOJFcmXKdBM2TxC5D8yOq
7t4fUwaXmIsLYl6eovg=
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=k1; d=mail84.atl31.mcdlv.net;
b=nLYfHDRQzNRmbnWc8tnSDAZtiWu4E+aGOZBFBUVz44vR+I47xEpuY4ac0KFL+Uc01K66tVX+kj+9
EbocAToElbAndJ6WD6YYnkgBdKz03OaANjesAvwIPe1jH/+Zqfw3eQUHGGTJuYKsPD6a4f+sldll
YNnpCr6MUwStCDm6obU=;
Received: from (127.0.0.1) by mail84.atl31.mcdlv.net id hh77ci1mqrog for <vu0tran@gmail.com>; Tue, 23 Jun 2015 21:25:29 +0000 (envelope-from <bounce-mc.us6_12976611.827941-vu0tran=gmail.com@mail84.atl31.mcdlv.net>)
From: =?utf-8?Q?XXXXXXX?= <vu@XXXXXX.com>
Reply-To: <us6-40dbc13c7a-bf64292c7d@inbound.mailchimp.com>
To: =?utf-8?Q?=3C=3C=20Test=20First=20Name=20=3E=3E?= <vu0tran@gmail.com>
Date: Tue, 23 Jun 2015 21:25:29 +0000
Message-ID: <afe03fcb279af0d81939903e7.20150623212521@mail84.atl31.mcdlv.net>
X-Mailer: MailChimp Mailer - **CID31045d1dc9**
X-Campaign: mailchimpafe03fcb279af0d81939903e7.31045d1dc9
X-campaignid: mailchimpafe03fcb279af0d81939903e7.31045d1dc9
X-Report-Abuse: Please report abuse for this campaign here: http://www.mailchimp.com/abuse/abuse.phtml?u=afe03fcb279af0d81939903e7&id=31045d1dc9&e=
X-MC-User: afe03fcb279af0d81939903e7
X-Feedback-ID: 12976611:12976611.827941:us6:mc
List-ID: afe03fcb279af0d81939903e7mc list <afe03fcb279af0d81939903e7.121893.list-id.mcsv.net>
X-Accounttype: ff
List-Unsubscribe: <mailto:unsubscribe-afe03fcb279af0d81939903e7-31045d1dc9-@mailin1.us2.mcsv.net?subject=unsubscribe>, <http://vutran.us6.list-manage.com/unsubscribe?u=afe03fcb279af0d81939903e7&id=fe48c8ecec&e=&c=31045d1dc9>
Sender: "XXXXXX" <vu=XXXXXX.com@mail84.atl31.mcdlv.net>
x-istest: yes
Subject: =?utf-8?Q?=5BTest=5D=20Introducing=20email=20filtering?=
x-mcda: TRUE
Content-Type: text/plain; charset="us-ascii"
根据Gmail&#34;原始邮件&#34;的电子邮件标题。
echo '<form id="first_form" action="#" method="POST" style="border: 0; margin: 0;">';
echo '<input type="hidden" value="'.$formid.'" name="formid">';
echo '<h1>Season, Patch version & amount of champions</h1>';
echo '<select id="season" onchange="checkseason();">';
echo '<option value="newseasons" selected>Season 3+</option>';
echo '<option value="oldseasons">Season 1, 2</option>';
echo '</select>';
echo '<input id="patch" type="text" name="patch" placeholder="e.g. 4.20" required autofocus><br/>';
echo '<input placeholder="Number of Champions" value="1" type="number" name="champ_number" min="1" max="20" required><br/>';
echo '<input type="submit" value="next">';
echo '</form>';
$.mask.definitions['~'] = "[+-]";
$.mask.definitions['x'] = '[0-9]';
$.mask.definitions['*'] = '[-A-Za-z0-9._\\\/?&=~]';
function checkseason(){
d = document.getElementById("season").value;
if(d==='newseasons'){
$('#first_form').validate({
rules: {
patch: {
required: true,
minlength: 4,
remote: {
url: "../checkpatch.php",
type: "post"
}
}
},
messages: {
patch: {
required: "Please enter patch version.",
remote: "Patch with this number already exists.",
minlength: "Please enter 3 numbers"
}
},
});
$("#patch").mask("x.xx", {
placeholder: ""
});
}
else if(d==='oldseasons'){
$('#first_form').validate({
rules: {
patch: {
required: true,
minlength: 8,
maxlength: 9,
remote: {
url: "../checkpatch.php",
type: "post"
}
}
},
messages: {
patch: {
required: "Please enter patch version.",
remote: "Patch with this number already exists.",
minlength: "Please enter 8 numbers"
}
},
});
$("#patch").mask("x.x.x.xxx", {
placeholder: ""
});
}
}
$(document).ready(function(){
checkseason();
});