flnews_post_proc 1.73 → 1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +17 -18
- data/doc/fr/html/flnews_post_proc.html +92 -80
- data/doc/fr/man/flnews_post_proc.1.gz +0 -0
- data/doc/fr/pdf/flnews_post_proc.pdf +0 -0
- data/doc/fr/rst/flnews_post_proc.rst +80 -82
- data/doc/html/flnews_post_proc.html +170 -240
- data/doc/man/flnews_post_proc.1.gz +0 -0
- data/doc/pdf/flnews_post_proc.pdf +0 -0
- data/doc/rst/flnews_post_proc.rst +174 -241
- data/lib/basic_logging.rb +1 -1
- data/lib/body.rb +1 -1
- data/lib/configuration.rb +1 -1
- data/lib/flnews_post_proc.conf +3 -3
- data/lib/flnews_post_proc.rb +1 -1
- data/lib/headers.rb +3 -10
- data/lib/newsgroups.rb +4 -30
- data/lib/override.rb +1 -1
- data/lib/version.rb +2 -2
- metadata +6 -5
@@ -1,342 +1,275 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
===========================
|
2
|
+
flnews_post_proc
|
3
|
+
===========================
|
4
4
|
------------------------------------------
|
5
|
-
|
5
|
+
Post-Processor for the flnews Newsreader
|
6
6
|
------------------------------------------
|
7
7
|
|
8
8
|
SYNOPSIS
|
9
|
-
|
9
|
+
===========================
|
10
|
+
The post-processor is invoked by piping an article into it. This typically occurs
|
11
|
+
automatically when the "post_proc" variable is set to `flnews_post_proc` in the
|
12
|
+
flnews configuration file.
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
file is set to the flnews_post_proc.
|
14
|
-
|
15
|
-
Locally stored articles can be piped in to the post-processor, as needed
|
16
|
-
for testing purposes, with a command-line like the following:
|
14
|
+
For testing purposes, you can also pipe locally stored articles into the post-processor
|
15
|
+
using a command like:
|
17
16
|
|
18
17
|
**flnews_post_proc < article**
|
19
18
|
|
20
19
|
DESCRIPTION
|
21
|
-
|
22
|
-
The flnews newsreader
|
23
|
-
articles from
|
24
|
-
|
25
|
-
When
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
The flnews_post_proc can
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
Dialog to override settings
|
86
|
-
---------------------------
|
87
|
-
ATTN! As of version 1.72, YAD or Zenity cannot be used for the dialog.
|
88
|
-
|
89
|
-
You can have a dialog displayed just before the post-processor is invoked, to
|
90
|
-
**disable** some configuration options. Provided that Whiptail or only xterm
|
91
|
-
are available on your computer, you can choose from the following options. You
|
92
|
-
**cannot** use the dialog to enable options which have not yet been set in the
|
93
|
-
configuration.
|
94
|
-
|
95
|
-
* Signatures, as set in the configuration **can be ignored**. Either
|
96
|
-
a default signature will appear as set in flnews or none.
|
97
|
-
* Custom Headers, if configured, can be **omitted**.
|
98
|
-
* The Archive- and X-No-Archive headers, if set for the current newsgroup,
|
99
|
-
**can be ignored**.
|
100
|
-
* Logging can be **switched off**, if set.
|
101
|
-
|
102
|
-
Pushing Esc or the cancle-button of the dialog interrupts the process, flnews
|
20
|
+
===========================
|
21
|
+
The flnews newsreader fully supports Usenet access, enabling the reception and reading
|
22
|
+
of articles from newsgroups, as well as composing and posting them.
|
23
|
+
|
24
|
+
When comparing various news clients, differences will often influence your choice of
|
25
|
+
preferred client. Flnews distinguishes itself by not only offering control over its
|
26
|
+
internal behavior, but also by allowing you to modify outgoing posts just before they
|
27
|
+
are sent to the configured NNTP server.
|
28
|
+
|
29
|
+
The `flnews_post_proc` program can be used to modify and enhance a post in ways that
|
30
|
+
flnews alone cannot. It is configurable and may meet the needs of some Usenet users,
|
31
|
+
though it is primarily intended as a starting point for creating your own custom solutions.
|
32
|
+
|
33
|
+
Limitations of Basic Newsreaders
|
34
|
+
--------------------------------------------------------
|
35
|
+
While flnews creates posts that are generally complete and ready for submission, there are
|
36
|
+
instances where users might find the output unsatisfactory for arbitrary reasons:
|
37
|
+
|
38
|
+
* If you're posting to different newsgroups in multiple languages, the introductory line
|
39
|
+
referencing a prior post can only be set once in the flnews configuration file. As a
|
40
|
+
result, posts to a French newsgroup, for example, may start with an introduction in
|
41
|
+
English. The post-processor can address this by setting specific introductory lines
|
42
|
+
for each newsgroup.
|
43
|
+
|
44
|
+
* Similar issues arise when you set a standard signature and want it to vary based on
|
45
|
+
the newsgroup. The post-processor allows different signatures to be used for different
|
46
|
+
newsgroups, and you can even randomize the selection from a list of signatures stored
|
47
|
+
in a file.
|
48
|
+
|
49
|
+
* Custom headers, such as GnuPG key IDs or your language proficiency, can also be added
|
50
|
+
to posts, though signatures may be a better alternative. Custom headers can be defined
|
51
|
+
in the configuration file and will be added to outgoing posts.
|
52
|
+
|
53
|
+
* Headers like "Archive" and "X-No-Archive" are sometimes set to prevent an article from
|
54
|
+
being indexed by search engines (e.g., Google). For example, test posts likely don't need
|
55
|
+
to be included in search results. The post-processor can apply both headers to all posts
|
56
|
+
sent to certain newsgroups.
|
57
|
+
|
58
|
+
**NOTE**: As of 2024, the "X-No-Archive" header has limited effectiveness, and it is
|
59
|
+
up to server operators whether or not to honor it.
|
60
|
+
|
61
|
+
* Posts that include many references to other posts or URLs can become cluttered. The
|
62
|
+
post-processor can convert marked text into footnotes, similar to the <ref/> link format
|
63
|
+
used in Wikipedia, with the delimiter configurable in the configuration file.
|
64
|
+
Example (using %=):
|
65
|
+
"This is an object %=and this becomes the footnote, describing the object further=%"
|
66
|
+
|
67
|
+
Dialog for Overriding Settings
|
68
|
+
------------------------------
|
69
|
+
**IMPORTANT**: As of version 1.72, YAD or Zenity cannot be used for the dialog interface.
|
70
|
+
|
71
|
+
Before the post-processor runs, a dialog can be displayed to allow users to **disable**
|
72
|
+
certain configuration options. If Whiptail or xterm are available, you can choose to
|
73
|
+
disable the following options. You **cannot** enable options that haven't already been set
|
74
|
+
in the configuration.
|
75
|
+
|
76
|
+
* Signatures (if set in the configuration) can be **ignored**. A default signature will
|
77
|
+
be used, or no signature at all.
|
78
|
+
* Custom headers can be **omitted**.
|
79
|
+
* The "Archive" and "X-No-Archive" headers can be **ignored** if set for the current
|
80
|
+
newsgroup.
|
81
|
+
* Logging can be **disabled**, if enabled.
|
82
|
+
|
83
|
+
Pressing Esc or the Cancel button on the dialog will interrupt the process, and flnews
|
103
84
|
will not post the article.
|
104
85
|
|
105
|
-
|
106
|
-
|
107
|
-
OVERRIDE_CONFIG).
|
86
|
+
To disable the dialog entirely (and apply all configured options without further interaction),
|
87
|
+
set the **OVERRIDE_CONFIG** option.
|
108
88
|
|
109
89
|
CONFIGURATION
|
110
90
|
===============
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
recreated, on the next occasion, but your own changes will be lost.
|
91
|
+
Upon first execution of the program, a copy of the original configuration file is created
|
92
|
+
in */home/[user]/.flnews_post_proc.conf*. This file is used thereafter. Deleting it will
|
93
|
+
cause the file to be recreated, but any custom changes will be lost.
|
115
94
|
|
116
|
-
The configuration file
|
117
|
-
|
118
|
-
categories:
|
95
|
+
The configuration file uses YAML syntax and includes detailed explanations. The variables
|
96
|
+
within it fall into two categories:
|
119
97
|
|
120
|
-
|
121
|
-
|
98
|
+
1. Variables that represent values originally set by flnews, which can be used or replaced.
|
99
|
+
These elements are typically captured using regular expressions.
|
100
|
+
2. Variables that define new or modified content.
|
122
101
|
|
123
|
-
|
102
|
+
Example Configuration Variables
|
103
|
+
-------------------------------
|
124
104
|
|
125
105
|
**FUP_NAME**
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
from *GROUP_INTRO*, below. The Regexp-format is that of the Regexp class in
|
130
|
-
Ruby, noted as a String. Beware to mask a backslash '\\' by another one,
|
131
|
-
like in the example. A capture-group '()' serves to extract the name from the
|
132
|
-
match result.
|
133
|
-
|
134
|
-
Leave this field empty to keep the default from the FLNews configuration
|
135
|
-
intact.
|
106
|
+
A regular expression that matches the name of the previous poster in a quoted post. This
|
107
|
+
string is recognized in the original article and used with the matching element from
|
108
|
+
*GROUP_INTRO*.
|
136
109
|
|
137
|
-
|
110
|
+
Leave this field empty to retain the default value from the FLNews configuration.
|
138
111
|
|
139
|
-
|
112
|
+
CONTENT: A string representing a regular expression.
|
140
113
|
|
141
|
-
|
114
|
+
DEFAULT: EMPTY
|
142
115
|
|
143
|
-
|
116
|
+
EXAMPLE1: "On \\\\d+.\\\\d+.\\\\d{2,4} at \\\\d+:\\\\d+ **(.*)** wrote:"
|
144
117
|
|
118
|
+
EXAMPLE2: "**(.*)** wrote:"
|
145
119
|
|
146
120
|
**FUP_GROUP**
|
147
|
-
|
148
|
-
where the previous post, that you are referring to in the followup, had been
|
149
|
-
published.
|
121
|
+
A regular expression that matches the newsgroup where the quoted post was published.
|
150
122
|
|
151
|
-
|
123
|
+
Leave this field empty to ignore the exact group.
|
152
124
|
|
153
|
-
|
125
|
+
CONTENT: A string representing a regular expression.
|
154
126
|
|
155
|
-
|
127
|
+
DEFAULT: EMPTY
|
156
128
|
|
157
|
-
|
129
|
+
EXAMPLE: "wrote in **(.*)**:"
|
158
130
|
|
159
131
|
**GROUP_INTROS**
|
160
|
-
|
161
|
-
|
162
|
-
use these variables in the result.
|
163
|
-
Currently only %fup_name% and %fup_group% are reproduced in the resulting
|
164
|
-
introductory string.
|
132
|
+
Introductory strings referring to the previous poster in a quoted post. When the newsgroup
|
133
|
+
matches *FUP_GROUP*, these variables are used in the resulting introduction.
|
165
134
|
|
166
|
-
|
135
|
+
CONTENT: A newsgroup or regular expression per line, followed by a colon, space, and string.
|
167
136
|
|
168
|
-
|
169
|
-
|
170
|
-
|
137
|
+
DEFAULT: As configured in FLNews.
|
138
|
+
|
139
|
+
EXAMPLE: alt.test: "Thus spoke %fup_name% on that baleful %fup_date%:"
|
171
140
|
|
172
141
|
**GROUP_SIGS**
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
additional signatures should be picked from the named file, like in:
|
178
|
-
. /home/user/.other_signature_file
|
179
|
-
This works only in the file named in the configuration, not in the sourced files.
|
180
|
-
Remember to separate lines sourcing a file by an empty line, also separate several
|
181
|
-
such lines by an empty line between them.
|
142
|
+
Signature lines for each newsgroup or a path to a file containing signatures, which should be
|
143
|
+
formatted and separated by one empty line. A random signature is picked from the file for each
|
144
|
+
newsgroup. You can also source another file within the signature file by starting a line with
|
145
|
+
". /path/to/other/file".
|
182
146
|
|
183
|
-
|
147
|
+
CONTENT: A newsgroup or regular expression per line, followed by a colon, space, and string.
|
184
148
|
|
185
|
-
|
149
|
+
DEFAULT: As configured in flnews.
|
186
150
|
|
187
|
-
|
188
|
-
|
189
|
-
EXAMPLE: comp.*: /home/[user]/.my_sigs
|
151
|
+
EXAMPLE: alt.test: "Signature for alt.test\\r\\nsecond line"
|
152
|
+
EXAMPLE: comp.*: /home/[user]/.my_sigs
|
190
153
|
|
191
154
|
**CUSTOM_HEADERS**
|
192
|
-
|
193
|
-
|
194
|
-
CONTENT: 1 line per header : a dash and space, then a String, comprising the
|
195
|
-
name of the header, ending in a colon and the value of the header.
|
155
|
+
Additional custom headers to be added to outgoing articles.
|
196
156
|
|
197
|
-
|
157
|
+
CONTENT: One line per header, starting with a dash and space, followed by the header name and value.
|
198
158
|
|
199
|
-
|
200
|
-
| - 'X-My-Header: nothing fancy'
|
201
|
-
| - 'X-Another-Header: care not!'
|
159
|
+
DEFAULT: Undefined
|
202
160
|
|
203
|
-
|
204
|
-
|
205
|
-
|
161
|
+
EXAMPLE:
|
162
|
+
- 'X-My-Header: nothing fancy'
|
163
|
+
- 'X-Another-Header: care not!'
|
206
164
|
|
207
|
-
|
165
|
+
**NO_ARCHIVE_GROUPS**
|
166
|
+
Newsgroups where the "Archive: no" and "X-No-Archive: YES" headers should be set.
|
208
167
|
|
209
|
-
|
168
|
+
CONTENT: A line with a dash and space, followed by the group name or a regular expression.
|
210
169
|
|
211
|
-
|
212
|
-
| - "alt.test"
|
213
|
-
| - "^news.*"
|
170
|
+
DEFAULT: Empty
|
214
171
|
|
172
|
+
EXAMPLE:
|
173
|
+
- "alt.test"
|
174
|
+
- "^news.*"
|
215
175
|
|
216
176
|
**DEBUG_LOG**
|
217
|
-
|
218
|
-
|
177
|
+
The name of the file where debug messages are logged. If specified, logging will be enabled.
|
178
|
+
If empty, logging is disabled.
|
219
179
|
|
220
|
-
|
221
|
-
and overwritten if need be.
|
180
|
+
CONTENT: The name of a writable file, which will be created if it doesn't exist and overwritten if necessary.
|
222
181
|
|
223
|
-
|
182
|
+
DEFAULT: Empty
|
224
183
|
|
225
|
-
|
184
|
+
EXAMPLE: '/tmp/a_log-file.txt'
|
226
185
|
|
227
186
|
**LOG LEVEL**
|
228
|
-
|
187
|
+
One of: debug, fatal, error, info, warn.
|
229
188
|
|
230
189
|
**REFERENCES_SEPARATOR**
|
231
|
-
|
232
|
-
|
233
|
-
the original message-body contains text marked for use as such a footnote.
|
234
|
-
See *REFERENCES_DELIMITER*.
|
190
|
+
A symbol or sequence marking the end of the message body and the beginning of a footnote list.
|
191
|
+
If not defined, footnotes are appended directly after the message body.
|
235
192
|
|
236
|
-
|
237
|
-
below the last line of the message body and no separator will be inserted.
|
193
|
+
CONTENT: A quoted symbol or sequence.
|
238
194
|
|
239
|
-
|
195
|
+
DEFAULT: Empty
|
240
196
|
|
241
|
-
|
242
|
-
|
243
|
-
EXAMPLE: '---------'
|
197
|
+
EXAMPLE: '---------'
|
244
198
|
|
245
199
|
**REFERENCES_DELIMITER**
|
246
|
-
|
247
|
-
|
248
|
-
mark the end of the text. The presence of this sequence or symbol in the
|
249
|
-
original message body will cause the enclosed text to be moved below the
|
250
|
-
message body. The *REFERENCES_SEPARATOR*, if defined, will separate the
|
251
|
-
message from the list of footnotes.
|
252
|
-
If this option is not defined or empty, footnotes are not created.
|
200
|
+
A sequence marking the beginning and end of text to be used as a footnote or reference. The reversed
|
201
|
+
sequence is used to mark the end.
|
253
202
|
|
254
|
-
|
203
|
+
CONTENT: A quoted symbol or sequence.
|
255
204
|
|
256
|
-
|
205
|
+
DEFAULT: None (empty)
|
257
206
|
|
258
|
-
|
207
|
+
EXAMPLE: '%?'
|
259
208
|
|
260
209
|
**REFERENCE_FORMAT**
|
261
|
-
|
262
|
-
text in the message body.
|
263
|
-
|
264
|
-
DEFAULT: " %s)" -> becomes 1) ... 2) ... 3)
|
210
|
+
A format string using `%s` for a number to replace the reference text in the body.
|
265
211
|
|
266
|
-
|
212
|
+
DEFAULT: " %s)" → becomes 1) ... 2) ... 3)
|
267
213
|
|
268
|
-
|
269
|
-
A Boolean constant. It determines if the program shall verify and possibly
|
270
|
-
try to correct URLs. Even if URLs are identified as such, only a few
|
271
|
-
manipulations are attempted :
|
272
|
-
* Angular brackets '<' and '>' are added, if missing
|
273
|
-
* Slashes are added, if they are found missing after "http(s):"
|
214
|
+
EXAMPLE: "(%s)" → becomes (1) ... (2) ... (3)
|
274
215
|
|
275
|
-
|
216
|
+
**VFY_URLS**
|
217
|
+
A boolean constant determining whether URLs should be verified and corrected if necessary.
|
218
|
+
URL manipulations include adding angular brackets ('<', '>') and slashes after "http(s):".
|
276
219
|
|
277
|
-
|
220
|
+
CONTENT: One of YES, yes, NO, no (case insensitive).
|
278
221
|
|
279
|
-
|
222
|
+
DEFAULT: yes
|
280
223
|
|
281
|
-
|
224
|
+
EXAMPLE: ... I leave this to your discretion.
|
282
225
|
|
283
226
|
**OVERRIDE_CONFIG**
|
284
|
-
|
285
|
-
options before an article is posted: GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS,
|
286
|
-
DEBUG_LOG and VFY_URLS. A dialog may be displayed which allows you to disable
|
287
|
-
any of these five options, so that the defaults from flnews prevail.
|
227
|
+
A boolean constant that controls whether configuration options can be overridden before posting.
|
288
228
|
|
289
|
-
|
290
|
-
Flnews will not post the article.
|
229
|
+
Set this to "no" to disable the dialog.
|
291
230
|
|
292
|
-
|
231
|
+
DEFAULT: yes
|
293
232
|
|
294
|
-
|
295
|
-
|
296
|
-
EXAMPLE: No
|
233
|
+
EXAMPLE: No
|
297
234
|
|
298
235
|
Other Information
|
299
|
-
|
236
|
+
========================
|
300
237
|
|
301
238
|
Testing
|
302
239
|
-------
|
303
|
-
|
304
|
-
verified in two ways:
|
240
|
+
You can verify the post-processor’s effect by using one of two methods:
|
305
241
|
|
306
|
-
1.
|
242
|
+
1. Pipe a saved post into the program:
|
307
243
|
|
308
244
|
**:~$ /usr/local/bin/[post-processor] < [test-article]**
|
309
245
|
|
310
|
-
This will show the
|
311
|
-
can also pipe the output into another file. This is a great way to test a
|
312
|
-
program during development or to test your own configuration of the program.
|
313
|
-
2. By posting directly into a test-newsgroup (like alt.test or similar). This
|
314
|
-
is mandatory before you really post to thematic newsgroups and when the
|
315
|
-
settings of the post-processor will affect the article.
|
246
|
+
This will show the modified article, and you can pipe it into another file for further testing.
|
316
247
|
|
248
|
+
2. Post directly to a test newsgroup (e.g., alt.test). This is essential before posting to
|
249
|
+
real newsgroups, especially when the post-processor will alter the article.
|
317
250
|
|
318
|
-
Source
|
251
|
+
Source Code
|
319
252
|
-----------
|
320
|
-
The gem
|
321
|
-
|
322
|
-
its content, you must
|
253
|
+
The gem file for the program, available via the gem utility or rubygems.org, contains all
|
254
|
+
the source code and documentation (this page included). To extract it, do the following:
|
323
255
|
|
324
|
-
1.
|
325
|
-
2.
|
326
|
-
3.
|
256
|
+
1. Extract the gem file: `tar -xf flnews_post_proc-0.1.gem`
|
257
|
+
2. Uncompress the data archive: `gunzip data.gz`
|
258
|
+
3. Extract the data archive: `tar -xf data.tar`
|
327
259
|
|
328
|
-
This
|
260
|
+
This will create the directories `bin`, `doc`, and `lib`.
|
329
261
|
|
330
262
|
License
|
331
263
|
-------
|
332
|
-
flnews_post_proc is distributed under the
|
333
|
-
|
334
|
-
directory of the gem
|
264
|
+
The flnews_post_proc is distributed under the WTFPL-2.0 or later License.
|
265
|
+
For more details, visit http://www.wtfpl.net/txt/copying/ or refer to the license file in the
|
266
|
+
documentation directory of the gem.
|
335
267
|
|
336
268
|
Author
|
337
269
|
------
|
338
|
-
|
339
|
-
|
270
|
+
flnews_post_proc has been developed by
|
271
|
+
Michael Uplawski <michael.uplawski@uplawski.eu>
|
340
272
|
|
341
273
|
Ω
|
342
274
|
==
|
275
|
+
|
data/lib/basic_logging.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#encoding: UTF-8
|
3
3
|
=begin
|
4
4
|
/***************************************************************************
|
5
|
-
* 2023-
|
5
|
+
* 2023-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
6
6
|
* This program is free software; you can redistribute it and/or modify *
|
7
7
|
* it under the terms of the WTFPL 2.0 or later, see *
|
8
8
|
* http://www.wtfpl.net/about/ *
|
data/lib/body.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
=begin
|
4
4
|
/***************************************************************************
|
5
|
-
* 2023-
|
5
|
+
* 2023-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
6
6
|
* This program is free software; you can redistribute it and/or modify *
|
7
7
|
* it under the terms of the WTFPL 2.0 or later, see *
|
8
8
|
* http://www.wtfpl.net/about/ *
|
data/lib/configuration.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#encoding: UTF-8
|
2
2
|
=begin
|
3
3
|
/***************************************************************************
|
4
|
-
* 2023-
|
4
|
+
* 2023-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
5
5
|
* This program is free software; you can redistribute it and/or modify *
|
6
6
|
* it under the terms of the WTFPL 2.0 or later, see *
|
7
7
|
* http://www.wtfpl.net/about/ *
|
data/lib/flnews_post_proc.conf
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#/***************************************************************************
|
2
|
-
# * 2023-
|
2
|
+
# * 2023-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
3
3
|
# * *
|
4
4
|
# * This program is free software; you can redistribute it and/or modify *
|
5
5
|
# * it under the terms of the DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE *
|
@@ -123,7 +123,7 @@ REFERENCES_SEPARATOR: "──────────────────"
|
|
123
123
|
# REFERENCE_DELIMITER
|
124
124
|
# A symbol or sequence of symbols marking the beginning of a text which will
|
125
125
|
# serve as footnote (or reference). The reversed sequence musst be used to mark
|
126
|
-
# the end of the text. The presence of this sequence or symbol in the
|
126
|
+
# the end of the text. The presence of this sequence or symbol in the original
|
127
127
|
# message body will cause the enclosed text to be moved below the message body.
|
128
128
|
# The REFERENCES_SEPARATOR, if defined, will separate the message from the list
|
129
129
|
# of footnotes.
|
@@ -136,7 +136,7 @@ REFERENCES_DELIMITER: "%="
|
|
136
136
|
# REFERENCE_FORMAT
|
137
137
|
# A format-string, using %s for a number, replacing the reference-
|
138
138
|
# text in the message body.
|
139
|
-
# DEFAULT: " %s
|
139
|
+
# DEFAULT: " %s)" -> becomes 1) ... 2) ... 3)
|
140
140
|
# EXAMPLE: "(%s)" -> becomes (1) ... (2) ... (3)
|
141
141
|
REFERENCE_FORMAT: " ➤%s"
|
142
142
|
|
data/lib/flnews_post_proc.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#encoding: UTF-8
|
2
2
|
=begin
|
3
3
|
/***************************************************************************
|
4
|
-
* 2023-
|
4
|
+
* 2023-2025, Michael Uplawski <michael.uplawski@uplawski.eu> *
|
5
5
|
* This program is free software; you can redistribute it and/or modify *
|
6
6
|
* it under the terms of the WTFPL 2.0 or later, see *
|
7
7
|
* http://www.wtfpl.net/about/ *
|