SFEED_MBOX(1)

πŸ“¦
version 2.4 Β· 3 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’Œ SFEED_MBOX β€” okay bestie, let's turn your feeds into mail πŸ’Œ

This is the sfeed_mbox manual page, and she's giving mailbox glow-up energy. Buckle up πŸŽ€


✨ SYNOPSIS ✨

sfeed_mbox [file ...]

🌸 DESCRIPTION 🌸

So here's the tea, bestie: sfeed_mbox takes feed data (that's TSV, the tab-separated situation) from sfeed(1) β€” either off of stdin or from each file you hand it β€” and formats it to stdout in the mboxrd format. Slay. πŸ’…

A couple things to know about how the feed name works, and this is lowkey important:

  • If you pass one or more file arguments, then the basename of the file becomes the feed name in the output. Iconic.
  • If you pass no file arguments and the data just comes from stdin, then the feed name is empty. She's mysterious. She's giving nothing.

And then? That mbox data can get further processed by tools like procmail(1) or fdm(1), for example. The README file has some examples if you wanna peek πŸ‘€


🏷️ CUSTOM HEADERS 🏷️

To make further filtering simpler, some custom headers get set. It's giving organized. Periodt:

  • X-Feedname β€” the feed name, which is the basename of the feed file. πŸ—‚οΈ
  • X-RSS-Author β€” the item author, if it is set.
  • X-RSS-Enclosure β€” the item, first enclosure, if it is set.
  • X-RSS-ID β€” the RSS item GUID or Atom id, if it is set.
  • X-RSS-TAGS β€” the category field, where the '|' separator is replaced by a comma (','). No cap.
  • X-RSS-URL β€” the item link, if it is set. πŸ”—

🌈 ENVIRONMENT VARIABLES 🌈

  • SFEED_MBOX_CONTENT β€” include the content. ⚠️ Now listen: this can be insecure for some of the mail clients that interpret HTML code in an unsafe way. By default this is set to "0".
  • SFEED_MBOX_FROM β€” override the "From" header. The default is the author of the item (if it has one) plus the e-mail "<anonymous@localhost>". Some unsafe characters are removed from the author field. 🧼
  • SFEED_MBOX_TO β€” override the "To" header. The default is "<anonymous@localhost>".
🫢 bestie please read the SFEED_MBOX_CONTENT one again. Insecure mail clients + HTML = chaos. She said what she said.

🚦 EXIT STATUS 🚦

The sfeed_mbox utility exits 0 on success, and >0 if an error occurs. Simple as that. πŸ’–


πŸ“ EXAMPLES πŸ“

Example:

sfeed_mbox ~/.sfeed/feeds/*

Below is an example to include the content. This can be insecure for some of the mail clients that interpret HTML code in an unsafe way:

SFEED_MBOX_CONTENT=1 sfeed_mbox ~/.sfeed/feeds/*

πŸ‘€ SEE ALSO πŸ‘€

fdm(1), procmail(1), sfeed(1), sfeed(5)

Go read them, they're the supporting cast and they ate. 🌟


πŸ‘‘ AUTHORS πŸ‘‘

Hiltjo Posthuma <hiltjo@codemadness.org>


And that's the whole page, bestie β€” Debian edition, dated December 26, 2025. SFEED_MBOX(1), main character of the General Commands Manual. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from