mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-08 17:08:59 +08:00
fix: imap server (#227)
This commit is contained in:
@@ -103,7 +103,7 @@ class SimpleMailbox:
|
|||||||
def fetch(self, messages, uid):
|
def fetch(self, messages, uid):
|
||||||
start, end = messages.ranges[0]
|
start, end = messages.ranges[0]
|
||||||
start = max(start, 1)
|
start = max(start, 1)
|
||||||
if start > self.message_count:
|
if self.message_count > 0 and start > self.message_count:
|
||||||
return []
|
return []
|
||||||
res = requests.get(
|
res = requests.get(
|
||||||
f"{settings.proxy_url}/api/mails?limit=20&offset={start - 1}", headers={
|
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`
|
例如: `VITE_API_BASE=https://xxx.xxx.workers.dev`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# 请修改为你的版本号, 可以不填
|
||||||
|
# export VITE_VERSION=0.0.0
|
||||||
pnpm build --emptyOutDir
|
pnpm build --emptyOutDir
|
||||||
# 根据提示创建 pages
|
# 根据提示创建 pages
|
||||||
pnpm run deploy
|
pnpm run deploy
|
||||||
|
|||||||
@@ -49,4 +49,6 @@ services:
|
|||||||
|
|
||||||
下载 [Thunderbird](https://www.thunderbird.net/en-US/)
|
下载 [Thunderbird](https://www.thunderbird.net/en-US/)
|
||||||
|
|
||||||
|
密码填写 `邮箱地址凭证`
|
||||||
|
|
||||||

|

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