]> git.notmuchmail.org Git - notmuch/commit
CLI/insert: escape envelope from
authorDavid Bremner <david@tethera.net>
Sat, 12 Feb 2022 02:47:03 +0000 (22:47 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 20 Feb 2022 02:11:35 +0000 (22:11 -0400)
commitb320d3fb59d80b071459a0b2f28c4340ac687327
treef8973b6e7b59b91c40006ddcf676eebab1b4793a
parent329bb4ddf4278edb14e3ff335d7547c0e0396b8e
CLI/insert: escape envelope from

The idea is to do as little parsing and modification of the delivered
message as possible. Luckily the position of the "envelope header"
lets us escape it by replacing the first 5 characters of the stream
with a regular header name (with ':').
notmuch-insert.c
test/T070-insert.sh