mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-21 12:32:32 +08:00
fix: imap server (#227)
This commit is contained in:
@@ -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 |
@@ -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
|
||||
|
||||
@@ -49,4 +49,6 @@ services:
|
||||
|
||||
下载 [Thunderbird](https://www.thunderbird.net/en-US/)
|
||||
|
||||
密码填写 `邮箱地址凭证`
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user