feat(archive): parse messages into archivable entries
- Decode subject, sender name, date, Message-ID and In-Reply-To - Pick the plain text body from nested multipart, fall back to stripped HTML - Decode transfer encodings and charsets, repair invalid UTF-8, cap at 1 MiB - Synthesize a stable Message-ID when missing - Never expose a sender address domain; add email obfuscation for public pages
This commit is contained in:
parent
d8275aaa1f
commit
4ac967e001
1 changed files with 365 additions and 0 deletions
1
go.mod
1
go.mod
|
|
@ -17,6 +17,7 @@ require (
|
|||
github.com/ncruces/go-strftime v1.1.0 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
golang.org/x/sys v0.49.0 // indirect
|
||||
golang.org/x/text v0.14.0 // indirect
|
||||
modernc.org/libc v1.80.1 // indirect
|
||||
modernc.org/mathutil v1.7.1 // indirect
|
||||
modernc.org/memory v1.12.1 // indirect
|
||||
|
|
|
|||
Loading…
Reference in a new issue