github-actions[bot]
commited on
Commit
·
9dbf793
1
Parent(s):
025b1cc
Update from GitHub Actions
Browse files
index.ts
CHANGED
@@ -257,7 +257,7 @@ async function checkEmailsForNewMessages(env: Env) {
|
|
257 |
// 获取最新邮件的时间戳
|
258 |
const latestEmailTime = new Date(latestEmail.date.received || latestEmail.date.created || latestEmail.date.sent || latestEmail.date.modified).getTime();
|
259 |
const lastEmailTime = monitor.lastEmailTimestamp ? new Date(monitor.lastEmailTimestamp).getTime() : 0;
|
260 |
-
console.log(JSON.stringify(latestEmail),latestEmailTime,lastEmailTime)
|
261 |
// 如果最新邮件的时间戳大于用户设置的时间戳,且ID不同,则认为有新邮件
|
262 |
if (latestEmailTime > lastEmailTime && (!monitor.lastEmailId || monitor.lastEmailId !== latestEmail.id)) {
|
263 |
// 只更新最新邮件ID,不更新lastEmailTimestamp(该值由用户手动设置)
|
|
|
257 |
// 获取最新邮件的时间戳
|
258 |
const latestEmailTime = new Date(latestEmail.date.received || latestEmail.date.created || latestEmail.date.sent || latestEmail.date.modified).getTime();
|
259 |
const lastEmailTime = monitor.lastEmailTimestamp ? new Date(monitor.lastEmailTimestamp).getTime() : 0;
|
260 |
+
//console.log(JSON.stringify(latestEmail),latestEmailTime,lastEmailTime)
|
261 |
// 如果最新邮件的时间戳大于用户设置的时间戳,且ID不同,则认为有新邮件
|
262 |
if (latestEmailTime > lastEmailTime && (!monitor.lastEmailId || monitor.lastEmailId !== latestEmail.id)) {
|
263 |
// 只更新最新邮件ID,不更新lastEmailTimestamp(该值由用户手动设置)
|