PUBLIC-INBOX-EDIT(1)
π public-inbox-edit(1) β the public-inbox user manual, bestie edition
okay so. you're here because you need to destructively edit messages in a public inbox π and honestly? the name of this tool is doing the absolute most, but it's not lying. let's get into it.
β¨ SYNOPSIS β¨
public-inbox-edit -m MESSAGE-ID --all|INBOX_DIR
public-inbox-edit -F RAW_FILE --all|INBOX_DIR [.. INBOX_DIR]
πΈ DESCRIPTION πΈ
public-inbox-edit lets you edit messages inside a given inbox so you can remove sensitive information from them. that's the whole vibe. π«Ά
but bestie, listen. this is a last resort situation only. the way it literally causes discontiguous git history and draws more attention to the sensitive data in mirrors? yeah. it's giving "loud exit, everyone looks up". π
π OPTIONS π
--allβ edits the message in all inboxes configured in~/.public-inbox/config. it's the alternative to naming individual inbox directories on the command line, so you don't have to type them all out like a peasant. β¨-m MESSAGE-IDβ edits the message matching theMESSAGE-IDyou give it. if thatMESSAGE-IDis ambiguous, you're gonna need--forceor you gotta use the--fileof the original. no shortcuts, sorry. π-F FILEβ edits the message matching theMessage-ID:header and the content given inFILE. this needs the unmodified raw message, and ngl the contents ofFILEwill not itself be modified. super useful when aMessage-IDis ambiguous because of filtering/munging rules or other edits. π--forceβ forcibly performs the edit even if theMessage-IDis ambiguous. main character energy, use responsibly. π₯--rawβ does not perform"From "line escaping. by default it generates an mboxrd variant file to detect unpurged messages in the new mbox. this makes sense if your configuredpublicinbox.mailEditoris a regular editor and not something likemutt -f. π
βοΈ CONFIGURATION βοΈ
publicinbox.mailEditor
the command used to perform the edit. an example would be mutt -f, and then you'd use the facilities in mutt(1) to edit the mail. this is chef's kiss for editing attachments or Base64-encoded emails, which are genuinely so much harder to edit with a normal editor (the one configured via GIT_EDITOR, VISUAL or EDITOR). π§
Default: none
π ENVIRONMENT π
GIT_EDITOR/VISUAL/EDITORβpublic-inbox-editwill fall back to using one of these variables (in that order) ifpublicinbox.mailEditoris unset.PI_CONFIGβ the default config file, normally~/.public-inbox/config. seepublic-inbox-config(5)for the deets. π
π LIMITATIONS π
bestie. read this part. i'm so serious.
- only v2 repositories are supported. that's it, that's the list of supported repos.
- it's safe to run while the normal inbox writing tools are active:
public-inbox-mda(1),public-inbox-watch(1),public-inbox-learn(1). - running this in parallel with
public-inbox-xcpdb(1)orpublic-inbox-index --reindexcan lead to errors or edited data remaining indexed. do not do that. i'm begging. - incremental
public-inbox-index(1)(without--reindex) is fine. β - keep in mind this is a last resort, because it will be disruptive to anyone using
git(1)to mirror the inbox being edited. yeah. sorry to them. π
π¬ CONTACT π¬
feedback welcome via plain-text mail to <mailto:meta@public-inbox.org>
the mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
Β©οΈ COPYRIGHT Β©οΈ
Copyright 2019-2021 all contributors <mailto:meta@public-inbox.org>
License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
π SEE ALSO π
and that's the whole page, bestie!! π this one came from public-inbox.git, dated 1993-10-02, and yes i know that date is lowkey sus for a tool like this but that's literally what the footer said so i'm passing it along verbatim. mwah. πβ¨
π¦ where this page comes from
- fedora 43: public-inbox 2.0.0~20230714git590023f-6.fc43 Β· AGPL-3.0-or-later
- fedora 44: public-inbox 2.0.0~20230714git590023f-6.fc43 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms