MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getMailTimestamp

Function getMailTimestamp

content/mail-163.js:128–146  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

126}
127
128function getMailTimestamp(item) {
129 const candidates = [];
130 const timeCell = item.querySelector('.e00[title], [title*="年"][title*=":"]');
131 if (timeCell?.getAttribute('title')) candidates.push(timeCell.getAttribute('title'));
132 if (timeCell?.textContent) candidates.push(timeCell.textContent);
133
134 const titledNodes = item.querySelectorAll('[title]');
135 titledNodes.forEach((node) => {
136 const title = node.getAttribute('title');
137 if (title) candidates.push(title);
138 });
139
140 for (const candidate of candidates) {
141 const parsed = parseMail163Timestamp(candidate);
142 if (parsed) return parsed;
143 }
144
145 return null;
146}
147
148function scheduleEmailCleanup(item, step) {
149 setTimeout(() => {

Callers 1

handlePollEmailFunction · 0.85

Calls 1

parseMail163TimestampFunction · 0.85

Tested by

no test coverage detected