TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: open-source project to ingest email into a databae

2 点作者 nodesocket3 个月前
Any recommended open-source project to continuously ingest e-mail (iMAP, POP) into a database? The specific database engine is not important but prefer JSON.

2 条评论

jll293 个月前
How about starting with something like this:<p><pre><code> CREATE TABLE email( id INTEGER AUTOINCREMENT NOT NULL PRIMARY KEY, s_id INTEGER, r_id INTEGER, subject VARCHAR, header VARCHAR, body VARCHAR ); CREATE TABLE contacts( id INTEGER AUTOINCREMENT NOT NULL PRIMARY KEY, email. VARCHAR NOT NULL, name VARCHAR ); CREATE TABLE attachments( id INTEGER AUTOINCREMENT NOT NULL PRIMARY KEY, email_id INTEGER NOT NULL, attachm BLOG NOT NULL ); </code></pre> in SQLite? (But in my opinion, storing in e.g. Lucene as full-text indexed text collection makes more sense for fast &amp; flexible search.)<p>EDIT: Python, PHP and Perl have libraries to read MBOX format and write SQLite easily (= elss than a screen of code).
评论 #43161453 未加载
beardyw3 个月前
I&#x27;ve been playing with emails just recently and what struck me most was the hellish inconsistency of the emails themselves. You will find &quot;body&quot; is a rabbit hole all of its own. Good luck!