MHPGP(1mh)

πŸ’Œ MHPGP β€” it's giving "let me read that secret message for you" ✨

okay so this is mhpgp, from the mhpgp(1mh) manual page in the mmh-0.4 era (dated 2019-01-06, we love a vintage moment πŸŽ€). She's a lil script bestie whose whole job is verifying and decrypting your PGP mail with gnupg. Let's get into it.


🌸 NAME 🌸

mhpgp β€” verify and decrypt a message with gnupg πŸ’–


✨ SYNOPSIS ✨

mhpgp [-write] [-Version] [-help] [+folder] [msg]

🫢 DESCRIPTION 🫢

so mhpgp is a script that exists purely to make verifying and decrypting PGP messages easier, and she does it all through gnupg. no cap, that's the whole vibe.

She can handle signatures and encryption in both MIME and plain (non-MIME) format. iconic range tbh.

  • Signed messages? Verified. βœ…
  • Encrypted messages? Displayed with show in decrypted form, and the signature gets verified too. πŸ’…

With the -write switch, the decrypted message is stored into the current folder. like, she keeps it. for you. πŸ₯°

If no msg is given, the current message is used. defaults really said "I got you."


🧼 the trailing-whitespace situation (she's picky, and she's right)

Trailing blanks are stripped from the lines before signature verification. Why? Because none are expected to be present, as RFC 3156 requests:

[...] implementations MUST make sure that no trailing whitespace is present after the MIME encoding has been applied.

If there is trailing whitespace, it was likely added mistakenly during mail transfer. so yeah, that's a mail-transfer oopsie, not your fault, bestie 😭


πŸ“ FILES πŸ“

None. she's low maintenance. πŸ’…


πŸŽ€ PROFILE COMPONENTS πŸŽ€

None. nothing to configure, nothing to babysit. obsessed.


πŸ” SEE ALSO πŸ”


⭐ DEFAULTS ⭐

  • +folder defaults to the current folder
  • msg defaults to the current message

🌈 CONTEXT 🌈

None.


πŸ’€ BUGS πŸ’€

The order of the command line arguments is relevant, and this is the part where you have to listen to me:

The options must come first, the message specification last.

so it's mhpgp -write +inbox 3 energy, NOT mhpgp +inbox 3 -write. do not test her. she will not be flexible about this. periodt. πŸ™ˆ


and that's the whole page, bestie πŸ¦‹ β€” this was mhpgp from mmh-0.4, manual page version MH.6.8, dated 2019-01-06. go forth and decrypt something cute πŸ’œπŸŒΈβœ¨

πŸ“¦ where this page comes from