sfeed_mbox.1 - sfeed - RSS and Atom parser
(HTM) git clone git://git.codemadness.org/sfeed
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
sfeed_mbox.1 (1925B)
---
1 .Dd October 10, 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 host for the "From" header.
58 The default is "anonymous@localhost".
59 .It Ev SFEED_MBOX_TO
60 Override the user for the "To" header.
61 The default is "anonymous@localhost".
62 .El
63 .Sh EXIT STATUS
64 .Ex -std
65 .Sh EXAMPLES
66 Example:
67 .Bd -literal -offset 4n
68 sfeed_mbox ~/.sfeed/feeds/*
69 .Ed
70 .Pp
71 Below is an example to include the content.
72 This can be insecure for some of the mail clients that interpret HTML code in
73 an unsafe way:
74 .Bd -literal -offset 4n
75 SFEED_MBOX_CONTENT=1 sfeed_mbox ~/.sfeed/feeds/*
76 .Ed
77 .Sh SEE ALSO
78 .Xr fdm 1 ,
79 .Xr procmail 1 ,
80 .Xr sfeed 1 ,
81 .Xr sfeed 5
82 .Sh AUTHORS
83 .An Hiltjo Posthuma Aq Mt hiltjo@codemadness.org