diff --git a/README.md b/README.md index 5d2e6fc..b951742 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
@@ -18,7 +18,7 @@ - 前端显示电子邮件(remix) - 邮件存储(sqlite) -发件原理 +发件原理: - 手打中... @@ -30,152 +30,13 @@ - [turso](https://turso.tech) sqlite 数据库(个人免费计划足够) - [Vercel](https://vercel.com) 或 [fly.io](https://fly.io) 账号部署前端用户界面 -### 接收邮件步骤 +### 接收邮件教程 -**1.注册一个 [turso](https://turso.tech) 账户,创建数据库,并创建一个`emails`表** +查看 [receive-tutorial.md](/docs/receive-tutorial.md) -注册后,系统会提示您创建一个数据库。在这里我将其命名为 `vmail`, +### 发送邮件教程 - - -然后,创建一个名为 `emails` 的表。 - -选择您的数据库,您会看到“编辑表”按钮,点击并进入: - - - -> ⚠️ 注意:**左上角有一个加号按钮,我尝试点击它没有任何提示或效果,所以我使用了 turso 提供的 cli 来初始化表。** - -Cli 文档:https://docs.turso.tech/cli/introduction - -Linux (或 mac/windows) 终端执行: - -```bash -# 安装(安装后记得重启终端生效) -curl -sSfL https://get.tur.so/install.sh | bash - -# 登录账户 -turso auth login - -# 连接到您的Turso数据库 -turso db shellCREATE TABLE `emails` (
- `id` text PRIMARY KEY NOT NULL,
- `message_from` text NOT NULL,
- `message_to` text NOT NULL,
- `headers` text NOT NULL,
- `from` text NOT NULL,
- `sender` text,
- `reply_to` text,
- `delivered_to` text,
- `return_path` text,
- `to` text,
- `cc` text,
- `bcc` text,
- `subject` text,
- `message_id` text NOT NULL,
- `in_reply_to` text,
- `references` text,
- `date` text,
- `html` text,
- `text` text,
- `created_at` integer NOT NULL,
- `updated_at` integer NOT NULL
-);
-
-CREATE TABLE `emails` (
+ `id` text PRIMARY KEY NOT NULL,
+ `message_from` text NOT NULL,
+ `message_to` text NOT NULL,
+ `headers` text NOT NULL,
+ `from` text NOT NULL,
+ `sender` text,
+ `reply_to` text,
+ `delivered_to` text,
+ `return_path` text,
+ `to` text,
+ `cc` text,
+ `bcc` text,
+ `subject` text,
+ `message_id` text NOT NULL,
+ `in_reply_to` text,
+ `references` text,
+ `date` text,
+ `html` text,
+ `text` text,
+ `created_at` integer NOT NULL,
+ `updated_at` integer NOT NULL
+);
+
+