pgpewrap(1)

πŸ“¦
this version Β· 2 versions
, in alpine 3.24, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– pgpewrap β€” the NeoMutt command line munging tool πŸ’–

okay bestie, welcome to pgpewrap(1), the littlest C program with the biggest main character energy ✨ she lives in the NeoMutt user manuals and she is so good at her one (1) job.


🌸 SYNTAX 🌸

pgpewrap [ flags ] -- prefix [ recipients ]

like. that's the whole vibe. that's the shape of her. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so, lowkey, pgpewrap is a little C program that does some command line munging β€” yes that's the technical term, no I will not be elaborating, it's iconic πŸ’…

here's the tea:

  • the first argument is a command to be executed πŸ‘‘
  • when pgpewrap runs into a "--" (dash-dash) argument, it takes the next argument and treats it as a prefix πŸŽ€
  • then it puts that prefix in front of all the following arguments ✨

that's it. that's her whole personality. and honestly? she ate.


πŸ”₯ EXAMPLE πŸ”₯

say you type this:

pgpewrap pgpe file -- -r a b c

she will execute:

pgpe file -r a -r b -r c

see how -r got sprinkled in front of every single recipient? that's the prefix doing its thing fr fr 🫢 literally the prefix walked in and said "not me duplicating myself for every single one of you" and we love her for it πŸ’–


πŸ’€ WHY DOES THIS EXIST πŸ’€

ngl this script is needed with PGP 5 and with GPG, because their command line interfaces can't be properly served by neomutt's format mechanism 😭 like they simply cannot be formatted. they refuse. it's giving stubborn. so pgpewrap steps in and does the munging instead 🌈


⭐ reminder bestie: the prefix goes in front of all following arguments, so order matters. put your -- and your prefix exactly where you want them, no cap πŸ’…

that's the whole page, you're officially caught up πŸŽ€ this one's from the Unix manual set, 2013-05 vintage, filed under pgpewrap(1) β€” stay hydrated, run your commands carefully, and slay πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from