feed2omb

feed2omb Git Source Tree

Root/sample.config

1
2#The URL of the feed you want to post. Can be Atom or RSS, any version
3feedurl = http://example.com/feed
4
5#The base API URL for the microblogging service you want to post to. Examples:
6#
7# http://identi.ca/api
8# http://micro.ciarang.com/api
9#
10#This can be blank if you don't want to send to an OMB API, which would only
11#make sense if you were using XMPP instead - see below.
12apibaseurl = http://omb.example.com/api
13
14#Replace the following credentials with those for the microblogging service you want to post to
15user = example_user
16password = example_password
17
18
19
20#The XMPP server to use for sending. Leave out, or blank, for no XMPP, which is the default.
21xmpp_server = im.example.com
22
23#The JID for the source of the messages.
24xmpp_jid = from@im.example.com
25
26#The password of the source user
27xmpp_password = 1234
28
29#Where to send the XMPP messages
30xmpp_to = dest@another.example.com
31
32
33#The maximum length of message. Defaults to 140.
34maxlen = 140
35
36#The notice source that is reported when a notice is posted
37source = feed2omb
38
39#URL shortening mode. Possible values are:
40# lilurl - use a lilURL-based shortening service - specify the host
41# below (default)
42# yourls - use a YOURLS-based shortening service - specify the host
43# below
44# bit.ly - shorten the url using the service at http://bit.ly
45# You need a bit.ly API account and API Key, and you need
46# to specify the details under urlshortenlogin and
47# urlshortenkey below.
48# j.mp - shorten the url using the service at http://j.mp (same as
49# bit.ly, but a shorter url.
50# laconica - assume that Laconica will shorten the url automatically
51# none - do not shorten (drastically reducing available message space)
52urlshortener = lilurl
53
54#If using the 'lilurl' or 'yourls' shortening mode, specify the host
55#here. Otherwise this is ignored.
56urlshortenhost = http://ur1.ca
57
58#If using 'bit.ly' shortening mode, you need to specify your login and
59#API key here.
60urlshortenlogin =
61urlshortenkey =
62
63#By default, URL shortening is only used if there isn't room in the message
64#for the full URL. You can set this to 'yes' to force shortening to always
65#happen.
66shortenalways = no
67
68#Specify the 'sent mode'. This determines how we decide if we have already
69#sent an entry from the feed to the OMB service. There are two possible
70#modes:
71# sentlinks - uses the links attached to each entry, and stores a list of
72# all those that have been sent previously (default)
73# timestamp - keeps track of the timestamp of the most recent entry and
74# only sends newer ones
75sentmode = timestamp
76
77#Specify the message mode, i.e. how the OMB message is formed from the
78#available information in the feed entries:
79# title - just the title of the entry (default)
80# authtitle - the author followed by the title
81# summary - use the entry's summary (description in RSS), falling back
82# on the title if there is no summary
83# authsummary - like authtitle, but using the summary instead of the title
84msgmode = title
85
86#Should links be appended to the message? Default is 'yes' - to get rid
87#of them, set it to 'no'...
88includelinks = yes
89
90#The following, if enabled, allow a regular expression search and replace on
91#the message before it is sent. This can be used, for example, to prepend
92#boilerplate text to the message (which might be used if you are directing
93#multiple feeds to the same account) or to remove the same (which might be
94#useful when reposting twitter content to an open account elsewhere)
95#
96#Much more creative things are possible with this, but the following example
97#would remove the text "MarsPhoenix:" from the start of all messages:
98#
99#messageregex = 'MarsPhoenix:(.*)'
100#messagereplace = '\1'
101#
102#On the other hand, this one ADDS 'Example:' to the start of all messages:
103#
104#messageregex = '(.*)'
105#messagereplace = 'Example:\1'
106#
107#You can also have multiple regular expressions and replacements by giving
108#a comma-separated list of each. The number of expressions and replacements
109#must be the same.
110#
111#messageregex = 'red','blue'
112#messagereplace = 'green','yellow'
113#
114
115#
116#Specify the maximum number of items that will be posted in one go. This
117#prevents flooding. Any additional items will be picked up on the next run.
118#You can set this to 0 to always post all available new items.
119#This value can be overridden by the --max command-line option.
120maxpost = 2
121
122#Specify the hashtags mode. If this is set to 'category', then any categories
123#specified in the feed's entries will be appended to the message as hashtags,
124#so long as there is space.
125hashtags = none
126
127#Links that have already been posted will be added to this section if
128#the sentmode option is set to sentlinks.
129[sentlinks]
130
131
132

Archive Download this file

Branches

Tags