fix: imap server (#227)

This commit is contained in:
Dream Hunter
2024-05-12 17:47:01 +08:00
committed by GitHub
parent 3fc8bba234
commit edc110b6ac
4 changed files with 5 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ class SimpleMailbox:
def fetch(self, messages, uid):
start, end = messages.ranges[0]
start = max(start, 1)
if start > self.message_count:
if self.message_count > 0 and start > self.message_count:
return []
res = requests.get(
f"{settings.proxy_url}/api/mails?limit=20&offset={start - 1}", headers={

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -15,6 +15,8 @@ cp .env.example .env.prod
例如: `VITE_API_BASE=https://xxx.xxx.workers.dev`
```bash
# 请修改为你的版本号, 可以不填
# export VITE_VERSION=0.0.0
pnpm build --emptyOutDir
# 根据提示创建 pages
pnpm run deploy

View File

@@ -49,4 +49,6 @@ services:
下载 [Thunderbird](https://www.thunderbird.net/en-US/)
密码填写 `邮箱地址凭证`
![imap](/feature/imap.png)