MAILSNARF(8)

πŸ’Œ MAILSNARF πŸ’Œ

okay bestie, so this one's mailsnarf, and it lives in section 8 of the System Manager's Manual β€” yes, the big scary admin section, don't be intimidated, she's sweet actually πŸŽ€


✨ NAME ✨

mailsnarf</purole> β€” sniff mail messages in Berkeley mbox format πŸ’–

✨ SYNOPSIS ✨

mailsnarf [-i interface | -p pcapfile] [[-v] pattern [expression]]

🌸 DESCRIPTION 🌸

okay so picture this: mailsnarf literally outputs e-mail messages sniffed from SMTP and POP traffic in Berkeley mbox format. and why do we care?? because that format is chef's kiss β€” it's suitable for offline browsing with your favorite mail reader (mail(1), pine(1), etc.) πŸ¦‹

it's giving "dump it in a file and read it later like a little detective" energy, ngl. main character forensics. πŸ‘‘

πŸ’… OPTIONS πŸ’…

  • -i interface β€” specify the interface to listen on. that's it, that's the vibe. pick your network card, queen 🌈
  • -p pcapfile β€” process packets from the specified PCAP capture file instead of the network. so if you already saved the tea earlier, you can sip it now πŸ“
  • -v β€” "Versus" mode. it inverts the sense of matching, to select non-matching messages. so like, everything EXCEPT the thing. iconic behavior honestly πŸ’…
  • pattern β€” specify regular expression for message header/body matching. regex girlies rise up 😭
  • expression β€” specify a tcpdump(8) filter expression to select traffic to sniff. yes, we're borrowing tcpdump's whole filter language, we're fancy like that ✨
🫢 quick reminder bestie: -i and -p are an either/or situation (that's what the | in the synopsis is telling you), and -v only does its little flip when it's hanging out with a pattern.

πŸ”₯ SEE ALSO πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Dug Song <dugsong@monkey.org> πŸ’œ


and that's the whole page, no cap πŸ’€βœ¨ mailsnarf(8), straight outta the System Manager's Manual β€” go forth and browse your snarfed mail in peace, bestie πŸ§šπŸ’–

πŸ“¦ where this page comes from