(item)
| 126 | } |
| 127 | |
| 128 | function 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 | |
| 148 | function scheduleEmailCleanup(item, step) { |
| 149 | setTimeout(() => { |
no test coverage detected