(accountId)
| 1764 | } |
| 1765 | |
| 1766 | async function verifyHotmailAccount(accountId) { |
| 1767 | const state = await getState(); |
| 1768 | const account = findHotmailAccount(state.hotmailAccounts, accountId); |
| 1769 | if (!account) { |
| 1770 | throw new Error('未找到需要校验的 Hotmail 账号。'); |
| 1771 | } |
| 1772 | |
| 1773 | const result = await fetchHotmailMailboxMessages(account, ['INBOX']); |
| 1774 | return { |
| 1775 | account: result.account, |
| 1776 | messageCount: result.mailboxResults[0]?.count || 0, |
| 1777 | }; |
| 1778 | } |
| 1779 | |
| 1780 | async function testHotmailAccountMailAccess(accountId) { |
| 1781 | const state = await getState(); |
no test coverage detected