Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a real parser to extract headers instead of regexes #3

Open
n-peugnet opened this issue Oct 16, 2023 · 0 comments
Open

Use a real parser to extract headers instead of regexes #3

n-peugnet opened this issue Oct 16, 2023 · 0 comments

Comments

@n-peugnet
Copy link
Member

n-peugnet commented Oct 16, 2023

For instance formail(1), or, more likely reformail(1), or maybe even a custom one, maybe based on eml-codec.

Why reformail more than formail, see this article : https://anarc.at/blog/2022-03-02-procmail-considered-harmful/

formail(1) is similar: the courier maildrop package ships reformail(1) which is, presumably, a rewrite of formail. It's unclear if it's a drop-in replacement, but it should probably possible to port uses of formail to it easily.

But there is still an inconvenience:

Update: the maildrop package ships a SUID root binary (two, even). [...] It would be perhaps better to have reformail(1) as a separate package, see bug 1006903 for that discussion.

Hence the idea to create a simple CLI program based on eml-codec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant