URI:
       sfeed_mbox.1 - sfeed - RSS and Atom parser
  HTML git clone git://git.codemadness.org/sfeed
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
       sfeed_mbox.1 (2016B)
       ---
            1 .Dd December 26, 2025
            2 .Dt SFEED_MBOX 1
            3 .Os
            4 .Sh NAME
            5 .Nm sfeed_mbox
            6 .Nd format feed data to mboxrd
            7 .Sh SYNOPSIS
            8 .Nm
            9 .Op Ar
           10 .Sh DESCRIPTION
           11 .Nm
           12 formats feed data (TSV) from
           13 .Xr sfeed 1
           14 from stdin or for each
           15 .Ar file
           16 to stdout in the mboxrd format.
           17 If one or more
           18 .Ar file
           19 arguments are specified then the basename of the
           20 .Ar file
           21 is used as the feed name in the output.
           22 If no
           23 .Ar file
           24 arguments are specified and so the data is read from stdin then the feed name
           25 is empty.
           26 The mbox data can be further processed by tools like
           27 .Xr procmail 1
           28 or
           29 .Xr fdm 1
           30 for example.
           31 See the README file for some examples.
           32 .Sh CUSTOM HEADERS
           33 To make further filtering simpler some custom headers are set:
           34 .Bl -tag -width Ds
           35 .It X-Feedname
           36 The feed name, this is the basename of the feed
           37 .Ar file .
           38 .It X-RSS-Author
           39 Item author, if it is set.
           40 .It X-RSS-Enclosure
           41 Item, first enclosure, if it is set.
           42 .It X-RSS-ID
           43 RSS item GUID or Atom id, if it is set.
           44 .It X-RSS-TAGS
           45 Category field, the '|' separator is replaced by a comma (',').
           46 .It X-RSS-URL
           47 Item link, if it is set.
           48 .El
           49 .Sh ENVIRONMENT VARIABLES
           50 .Bl -tag -width Ds
           51 .It Ev SFEED_MBOX_CONTENT
           52 Include the content.
           53 This can be insecure for some of the mail clients that interpret HTML code in
           54 an unsafe way.
           55 By default this is set to "0".
           56 .It Ev SFEED_MBOX_FROM
           57 Override the "From" header.
           58 The default is the author of the item (if it has one) and
           59 the e-mail "<anonymous@localhost>".
           60 Some unsafe characters are removed from the author field.
           61 .It Ev SFEED_MBOX_TO
           62 Override the "To" header.
           63 The default is "<anonymous@localhost>".
           64 .El
           65 .Sh EXIT STATUS
           66 .Ex -std
           67 .Sh EXAMPLES
           68 Example:
           69 .Bd -literal -offset 4n
           70 sfeed_mbox ~/.sfeed/feeds/*
           71 .Ed
           72 .Pp
           73 Below is an example to include the content.
           74 This can be insecure for some of the mail clients that interpret HTML code in
           75 an unsafe way:
           76 .Bd -literal -offset 4n
           77 SFEED_MBOX_CONTENT=1 sfeed_mbox ~/.sfeed/feeds/*
           78 .Ed
           79 .Sh SEE ALSO
           80 .Xr fdm 1 ,
           81 .Xr procmail 1 ,
           82 .Xr sfeed 1 ,
           83 .Xr sfeed 5
           84 .Sh AUTHORS
           85 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org