获取邮箱信息(可选实现) Args: email_id: 邮箱服务中的 ID Returns: 邮箱信息字典,如果不存在返回 None
(self, email_id: str)
| 148 | pass |
| 149 | |
| 150 | def get_email_info(self, email_id: str) -> Optional[Dict[str, Any]]: |
| 151 | """ |
| 152 | 获取邮箱信息(可选实现) |
| 153 | |
| 154 | Args: |
| 155 | email_id: 邮箱服务中的 ID |
| 156 | |
| 157 | Returns: |
| 158 | 邮箱信息字典,如果不存在返回 None |
| 159 | """ |
| 160 | # 默认实现:遍历列表查找 |
| 161 | for email_info in self.list_emails(): |
| 162 | if email_info.get("id") == email_id: |
| 163 | return email_info |
| 164 | return None |
| 165 | |
| 166 | def wait_for_email( |
| 167 | self, |
nothing calls this directly
no test coverage detected