flnews_post_proc 1.55 → 1.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -7
- data/bin/flnews_post_proc +5 -3
- data/doc/fr/html/flnews_post_proc.html +6 -7
- 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 +6 -7
- data/doc/html/flnews_post_proc.html +6 -10
- 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 +7 -12
- data/lib/body.rb +3 -1
- data/lib/configuration.rb +2 -0
- data/lib/flnews_post_proc.conf +2 -1
- data/lib/flnews_post_proc.rb +16 -2
- data/lib/override.rb +1 -2
- data/lib/ruby_dlg +14 -31
- data/lib/version.rb +4 -2
- data/lib/whiptail_dlg +2 -4
- data/lib/yad_dlg +6 -13
- data/lib/zenity_dlg +6 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b1429b1ae2eb519f5e35c6f12a6cb56705a4b24b87a33111af776f3759addd9
|
4
|
+
data.tar.gz: 33009debfaadea2a4e1c2868d3eac2c74ff1216601bb511fc418702a51966511
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07ae7873e4f1786ee8b12b0b3b38be2f9e3245714de8675495ba6ca0b037828dbfae9c232f72ee44ed906fa38d4e0a8edae4d5f5c39428d9237287e08be549df
|
7
|
+
data.tar.gz: 897130b05216307f37d67143e0875179745fbd8bed256821075b6236619e99977e7143597d308be13fdad449c550e53c1e7b59109d3d8109f120c3415da5bff2
|
data/README.md
CHANGED
@@ -115,8 +115,8 @@ some users may not always agree with the result and for arbitrary reasons:
|
|
115
115
|
|
116
116
|
* The program can attempt to correct ill formatted references. This is an
|
117
117
|
option, you can disable it by setting the option VFY_URLS to “no” in the
|
118
|
-
configuration.
|
119
|
-
|
118
|
+
configuration. Only URLs starting with http or https are currently
|
119
|
+
handled.
|
120
120
|
|
121
121
|
Dialog to override settings
|
122
122
|
---------------------------
|
@@ -302,15 +302,11 @@ the original message-body contains text marked for use as such a footnote. See
|
|
302
302
|
**VFY_URLS**
|
303
303
|
A Boolean constant. It determines if the program shall verify and possibly
|
304
304
|
try to correct URLs. Even if URLs are identified as such, only a few
|
305
|
-
manipulations are attempted :
|
305
|
+
manipulations are attempted :
|
306
306
|
|
307
307
|
* Angular brackets '<' and '>' are added, if missing
|
308
|
-
* Article-references are prepended with "news:", if missing
|
309
308
|
* Slashes are added, if they are found missing after "http(s):"
|
310
309
|
|
311
|
-
ATTN! The program is unable to discern "mailto:" and "news:" references. If
|
312
|
-
neither is given, but '@' is present, "news:" is automatically prepended.
|
313
|
-
|
314
310
|
If the variable is not set, a value 'yes' is assumed.
|
315
311
|
|
316
312
|
CONTENT: One of YES, yes, NO, no, and other variations of case.
|
data/bin/flnews_post_proc
CHANGED
@@ -22,8 +22,10 @@ if ! /linux/ =~ RUBY_PLATFORM
|
|
22
22
|
exit false
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
# needs the ruby-filemagic gem
|
26
26
|
require 'filemagic'
|
27
|
+
require 'tempfile'
|
28
|
+
|
27
29
|
require_relative '../lib/override'
|
28
30
|
require_relative '../lib/flnews_post_proc'
|
29
31
|
require_relative '../lib/basic_logging'
|
@@ -59,7 +61,7 @@ if (!STDIN.tty?)
|
|
59
61
|
if !artext.strip.empty?
|
60
62
|
mime = FileMagic.mime.buffer artext
|
61
63
|
debug('mime is ' << mime)
|
62
|
-
if mime.start_with?('message/
|
64
|
+
if ['news', 'rfc822'].any? {|m| mime.start_with?('message/' << m) }
|
63
65
|
#----------->
|
64
66
|
# Allow to override the configuration,
|
65
67
|
# if not disabled (default is true)
|
@@ -90,7 +92,7 @@ if (!STDIN.tty?)
|
|
90
92
|
# whatever.
|
91
93
|
exit false
|
92
94
|
else
|
93
|
-
error ("Input is of wrong mime-type" << mime)
|
95
|
+
error ("Input is of wrong mime-type " << mime)
|
94
96
|
end
|
95
97
|
else
|
96
98
|
error( "Cannot read the article, no content" )
|
@@ -621,11 +621,10 @@ remplace le texte d'une future note du pied de page dans le corps du message.</p
|
|
621
621
|
</dd>
|
622
622
|
<dt><strong>VFY_URLS</strong></dt>
|
623
623
|
<dd><p class="first">Une constante booléen. Elle détermine si le programme doit essayer de corriger
|
624
|
-
des
|
624
|
+
des URLs. Même si les URLs sont identifiables, seulement quelques manipulations
|
625
625
|
sont temptées :</p>
|
626
626
|
<ul class="simple">
|
627
627
|
<li>'<' et '>' sont ajoutés, si manquants</li>
|
628
|
-
<li>"news:" est ajouté au début des références à d'autres articles</li>
|
629
628
|
<li>Des slashes sont insérés, s'ils manquent après "http(s):"</li>
|
630
629
|
</ul>
|
631
630
|
<p>ATTN! Le programme ne peut pas différencier entre "mailto:" et "news:". Si ni l'un
|
@@ -636,11 +635,11 @@ ni l'autre est donné, mais '@' est présent, "news:" est ajouté
|
|
636
635
|
<p class="last">EXEMPLE: No</p>
|
637
636
|
</dd>
|
638
637
|
<dt><strong>OVERRIDE_CONFIG</strong></dt>
|
639
|
-
<dd><p class="first">Une constante booléenne. Vous pouvez décider d'ignorer les options
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
638
|
+
<dd><p class="first">Une constante booléenne. Vous pouvez décider d'ignorer les options suivantes
|
639
|
+
avant qu'un article est posté : GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS,
|
640
|
+
VFY_URLS et DEBUG_LOG. Un dialogue peut être affiché, qui permet la
|
641
|
+
désactivation de chacune de ces options. Les valeurs par défaut, définis pour
|
642
|
+
flnews, vont donc prévaloir.</p>
|
644
643
|
<p>ATTN ! En poussant Esc ou le bouton « Annuler » du dialogue, vous interrompez
|
645
644
|
le programme et flnews ne va rien envoyer.</p>
|
646
645
|
<p>Notez la valeur 'no', 'NO' ou pareil pour désactiver le dialogue.</p>
|
Binary file
|
Binary file
|
@@ -297,11 +297,10 @@ variables définis dans ce fichier peuvent être classées en deux catégories :
|
|
297
297
|
|
298
298
|
**VFY_URLS**
|
299
299
|
Une constante booléen. Elle détermine si le programme doit essayer de corriger
|
300
|
-
des
|
300
|
+
des URLs. Même si les URLs sont identifiables, seulement quelques manipulations
|
301
301
|
sont temptées :
|
302
302
|
|
303
303
|
* '<' et '>' sont ajoutés, si manquants
|
304
|
-
* "news:" est ajouté au début des références à d'autres articles
|
305
304
|
* Des slashes sont insérés, s'ils manquent après "http(s):"
|
306
305
|
|
307
306
|
ATTN! Le programme ne peut pas différencier entre "mailto:" et "news:". Si ni l'un
|
@@ -316,11 +315,11 @@ variables définis dans ce fichier peuvent être classées en deux catégories :
|
|
316
315
|
EXEMPLE: No
|
317
316
|
|
318
317
|
**OVERRIDE_CONFIG**
|
319
|
-
Une constante booléenne. Vous pouvez décider d'ignorer les options
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
318
|
+
Une constante booléenne. Vous pouvez décider d'ignorer les options suivantes
|
319
|
+
avant qu'un article est posté : GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS,
|
320
|
+
VFY_URLS et DEBUG_LOG. Un dialogue peut être affiché, qui permet la
|
321
|
+
désactivation de chacune de ces options. Les valeurs par défaut, définis pour
|
322
|
+
flnews, vont donc prévaloir.
|
324
323
|
|
325
324
|
ATTN ! En poussant Esc ou le bouton « Annuler » du dialogue, vous interrompez
|
326
325
|
le programme et flnews ne va rien envoyer.
|
@@ -579,23 +579,19 @@ text in the message body.</p>
|
|
579
579
|
try to correct URLs. Even if URLs are identified as such, only a few
|
580
580
|
manipulations are attempted :
|
581
581
|
* Angular brackets '<' and '>' are added, if missing
|
582
|
-
* Article-references are prepended with "news:", if missing
|
583
582
|
* Slashes are added, if they are found missing after "http(s):"</p>
|
584
|
-
<p>ATTN! The program is unable to discern "mailto:" and "news:" references. If
|
585
|
-
neither is given, but '@' is present, "news:" is automatically prepended.</p>
|
586
583
|
<p>If the variable is not set, a value 'yes' is assumed.</p>
|
587
584
|
<p>CONTENT: One of YES, yes, NO, no, and other variations of case.</p>
|
588
585
|
<p>DEFAULT: yes</p>
|
589
586
|
<p class="last">Example: ... I let you guess.</p>
|
590
587
|
</dd>
|
591
588
|
<dt><strong>OVERRIDE_CONFIG</strong></dt>
|
592
|
-
<dd><p class="first">A Boolean constant. You can choose to override the following
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
the process. Flnews will not post the article.</p>
|
589
|
+
<dd><p class="first">A Boolean constant. You can choose to override the following configuration
|
590
|
+
options before an article is posted: GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS,
|
591
|
+
DEBUG_LOG and VFY_URLS. A dialog may be displayed which allows you to disable
|
592
|
+
any of these five options, so that the defaults from flnews prevail.</p>
|
593
|
+
<p>ATTN! Canceling the dialog or pushing the Esc-key does interrupt the process.
|
594
|
+
Flnews will not post the article.</p>
|
599
595
|
<p>Set this option to no, NO or similar to disable the dialog.</p>
|
600
596
|
<p>DEFAULT: yes</p>
|
601
597
|
<p class="last">EXAMPLE: No</p>
|
Binary file
|
Binary file
|
@@ -258,12 +258,8 @@ categories:
|
|
258
258
|
try to correct URLs. Even if URLs are identified as such, only a few
|
259
259
|
manipulations are attempted :
|
260
260
|
* Angular brackets '<' and '>' are added, if missing
|
261
|
-
* Article-references are prepended with "news:", if missing
|
262
261
|
* Slashes are added, if they are found missing after "http(s):"
|
263
262
|
|
264
|
-
ATTN! The program is unable to discern "mailto:" and "news:" references. If
|
265
|
-
neither is given, but '@' is present, "news:" is automatically prepended.
|
266
|
-
|
267
263
|
If the variable is not set, a value 'yes' is assumed.
|
268
264
|
|
269
265
|
CONTENT: One of YES, yes, NO, no, and other variations of case.
|
@@ -273,14 +269,13 @@ categories:
|
|
273
269
|
Example: ... I let you guess.
|
274
270
|
|
275
271
|
**OVERRIDE_CONFIG**
|
276
|
-
A Boolean constant. You can choose to override the following
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
the process. Flnews will not post the article.
|
272
|
+
A Boolean constant. You can choose to override the following configuration
|
273
|
+
options before an article is posted: GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS,
|
274
|
+
DEBUG_LOG and VFY_URLS. A dialog may be displayed which allows you to disable
|
275
|
+
any of these five options, so that the defaults from flnews prevail.
|
276
|
+
|
277
|
+
ATTN! Canceling the dialog or pushing the Esc-key does interrupt the process.
|
278
|
+
Flnews will not post the article.
|
284
279
|
|
285
280
|
Set this option to no, NO or similar to disable the dialog.
|
286
281
|
|
data/lib/body.rb
CHANGED
@@ -153,6 +153,7 @@ class Body
|
|
153
153
|
@lines.each_with_index do | l, i |
|
154
154
|
# leave cited lines as they are.
|
155
155
|
if !l.start_with?( '>')
|
156
|
+
=begin
|
156
157
|
# IMPORTANT --------------------------------->
|
157
158
|
# IT IS HENCEFORTH PROHIBITED TO WRITE AN EMAIL-ADDRESS
|
158
159
|
# IN THE BODY OF A NEWS-POST AND TO NOT PREPEND IT WITH
|
@@ -164,6 +165,7 @@ class Body
|
|
164
165
|
# BUGFIX : Urls with @
|
165
166
|
# BUGFIX : email address in the intro
|
166
167
|
new_line = handle_news(l) if !@intro || l.strip != @intro.strip
|
168
|
+
=end
|
167
169
|
# http(s)
|
168
170
|
if l.include?('http')
|
169
171
|
new_line = handle_http(l)
|
@@ -173,7 +175,7 @@ class Body
|
|
173
175
|
end # @lines.each_with_index
|
174
176
|
end # if verify
|
175
177
|
end
|
176
|
-
|
178
|
+
#
|
177
179
|
# extract URL or other stuff, if configured for footnotes,
|
178
180
|
def handle_references()
|
179
181
|
# a symbol or string to mark the beginning an ending of a future footnote.
|
data/lib/configuration.rb
CHANGED
data/lib/flnews_post_proc.conf
CHANGED
@@ -145,11 +145,12 @@ REFERENCE_FORMAT: " ➤%s"
|
|
145
145
|
# try to correct URLs. Even if URLs are identified as such, only a few
|
146
146
|
# manipulations are attempted :
|
147
147
|
# * Angular brackets '<' and '>' are added, if missing
|
148
|
+
# -----> handling <news:/> is disabled
|
148
149
|
# * Article-references are prepended with "news:", if missing
|
149
150
|
# * Slashes are added, if they are found missing after "http(s):"
|
150
151
|
# ATTN! The program is unable to discern "mailto:" and "news:" references. If
|
151
152
|
# neither is given, but '@' is present, "news:" is automatically prepended.
|
152
|
-
#
|
153
|
+
# <-----
|
153
154
|
# If the variable is not set, a value 'yes' is assumed.
|
154
155
|
# CONTENT: One of YES, yes, NO, no, and other variations of case.
|
155
156
|
# DEFAULT: No
|
data/lib/flnews_post_proc.rb
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
require 'yaml'
|
17
17
|
require 'ostruct'
|
18
|
+
|
18
19
|
# --needs the Diffy gem
|
19
20
|
require 'diffy'
|
20
21
|
|
@@ -55,8 +56,21 @@ class PostProcessor
|
|
55
56
|
body.set_signature(newsgroups.signature)
|
56
57
|
|
57
58
|
# verify and eventually correct URIs.
|
58
|
-
#
|
59
|
-
|
59
|
+
# Will only handle http(s) for the time.
|
60
|
+
body.handle_uris
|
61
|
+
|
62
|
+
=begin
|
63
|
+
require 'gpgme'
|
64
|
+
|
65
|
+
debug('signing')
|
66
|
+
if ENV['GPG_AGENT_INFO']
|
67
|
+
crypto = GPGME::Crypto.new
|
68
|
+
data = GPGME::Data.new(body)
|
69
|
+
signature = crypto.clearsign(data, {
|
70
|
+
:output => File.new("/tmp/crypt_out.asc", 'w+')
|
71
|
+
})
|
72
|
+
end
|
73
|
+
=end
|
60
74
|
|
61
75
|
# get the headers and the body as a string.
|
62
76
|
# Assemble.
|
data/lib/override.rb
CHANGED
@@ -40,8 +40,7 @@ class OverrideDlg
|
|
40
40
|
@@LIBDIR = File::dirname(__FILE__)
|
41
41
|
# The configuration variables that can be unset.
|
42
42
|
# This class instance variable is exposed via a getter.
|
43
|
-
@cvars = [:GROUP_SIGS, :CUSTOM_HEADERS, :NO_ARCHIVE_GROUPS, :DEBUG_LOG]
|
44
|
-
# @cvars = [:GROUP_SIGS, :CUSTOM_HEADERS, :NO_ARCHIVE_GROUPS, :VFY_URLS, :DEBUG_LOG]
|
43
|
+
@cvars = [:GROUP_SIGS, :CUSTOM_HEADERS, :NO_ARCHIVE_GROUPS, :VFY_URLS, :DEBUG_LOG]
|
45
44
|
|
46
45
|
# ... here
|
47
46
|
# For the record: this is rather cool.
|
data/lib/ruby_dlg
CHANGED
@@ -50,35 +50,20 @@ if !ARGV.empty? && ARGV.length > 0
|
|
50
50
|
|
51
51
|
opt_array = []
|
52
52
|
message = ''
|
53
|
-
|
54
53
|
menu ||= %=
|
55
54
|
1 Unset Signature GROUP_SIGS
|
56
55
|
2 Unset Custom headers CUSTOM_HEADERS
|
57
56
|
3 Unset No Archive NO_ARCHIVE_GROUPS
|
58
|
-
4
|
57
|
+
4 Do not correct URLs VFY_URLS
|
58
|
+
5 Disable log DEBUG_LOG
|
59
59
|
––––––––––––––––––––––––––––––––––––––––––––––
|
60
|
-
|
60
|
+
6 Summary
|
61
61
|
––––––––––––––––––––––––––––––––––––––––––––––
|
62
62
|
0 Okay, use settings.
|
63
63
|
––––––––––––––––––––––––––––––––––––––––––––––––
|
64
|
-
|
64
|
+
{bold("Esc, Ctrl+C and 'q'")} terminate the Post-processor
|
65
65
|
and no changes will be applied.
|
66
|
-
|
67
|
-
|
68
|
-
# menu ||= %=
|
69
|
-
# 1 Unset Signature GROUP_SIGS
|
70
|
-
# 2 Unset Custom headers CUSTOM_HEADERS
|
71
|
-
# 3 Unset No Archive NO_ARCHIVE_GROUPS
|
72
|
-
# 4 Do not correct URLs VFY_URLS
|
73
|
-
# 5 Disable log DEBUG_LOG
|
74
|
-
# ––––––––––––––––––––––––––––––––––––––––––––––
|
75
|
-
# 6 Summary
|
76
|
-
# ––––––––––––––––––––––––––––––––––––––––––––––
|
77
|
-
# 0 Okay, use settings.
|
78
|
-
#––––––––––––––––––––––––––––––––––––––––––––––––
|
79
|
-
##{bold("Esc, Ctrl+C and 'q'")} terminate the Post-processor
|
80
|
-
#and no changes will be applied.
|
81
|
-
# =
|
66
|
+
=
|
82
67
|
|
83
68
|
loop do
|
84
69
|
system 'clear'
|
@@ -126,16 +111,15 @@ and no changes will be applied.
|
|
126
111
|
message = "X-No-Archive #{active ? 'removed' : 'is added'}!"
|
127
112
|
menu.sub!("Unset X-No-Archive", "Add X-No-Archive ") if active
|
128
113
|
menu.sub!("Add X-No-Archive ", "Unset X-No-Archive") if !active
|
129
|
-
# when 4
|
130
|
-
# active = !opt_array.include?(:VFY_URLS)
|
131
|
-
# opt_array << :VFY_URLS if active
|
132
|
-
# opt_array.delete(:VFY_URLS) if !active
|
133
|
-
#
|
134
|
-
# message = "URLS will #{active ? 'not ' : ''}" << "be verified!"
|
135
|
-
# menu.sub!("Do not correct URLs", "Correct URLs ") if active
|
136
|
-
# menu.sub!("Correct URLs ", "Do not correct URLs") if !active
|
137
|
-
# when 5
|
138
114
|
when 4
|
115
|
+
active = !opt_array.include?(:VFY_URLS)
|
116
|
+
opt_array << :VFY_URLS if active
|
117
|
+
opt_array.delete(:VFY_URLS) if !active
|
118
|
+
|
119
|
+
message = "URLS will #{active ? 'not ' : ''}" << "be verified!"
|
120
|
+
menu.sub!("Do not correct URLs", "Correct URLs ") if active
|
121
|
+
menu.sub!("Correct URLs ", "Do not correct URLs") if !active
|
122
|
+
when 5
|
139
123
|
active = !opt_array.include?(:DEBUG_LOG)
|
140
124
|
opt_array << :DEBUG_LOG if active
|
141
125
|
opt_array.delete(:DEBUG_LOG) if !active
|
@@ -143,8 +127,7 @@ and no changes will be applied.
|
|
143
127
|
message = "Log is #{ active ? 'not ' : ''} " << "written!"
|
144
128
|
menu.sub!("Disable log", "Enable log ") if active
|
145
129
|
menu.sub!("Enable log ", "Disable log") if !active
|
146
|
-
|
147
|
-
when 5
|
130
|
+
when 6
|
148
131
|
message = "Summary of " << bold('disabled') << " options: " << opt_array.join(' ')
|
149
132
|
end
|
150
133
|
end
|
data/lib/version.rb
CHANGED
@@ -14,8 +14,10 @@
|
|
14
14
|
=end
|
15
15
|
|
16
16
|
PROGNAME = 'flnews_post_proc'
|
17
|
-
PROGVERSION = "1.
|
17
|
+
PROGVERSION = "1.57"
|
18
18
|
AUTHORS = "Michael Uplawski"
|
19
19
|
EMAIL = "michael.uplawski@uplawski.eu"
|
20
20
|
YEARS = "2023 - 2024"
|
21
|
-
SUMMARY = "
|
21
|
+
SUMMARY = "Better error-handling when interpreting the configuration."
|
22
|
+
SUMMARY << " README updated"
|
23
|
+
|
data/lib/whiptail_dlg
CHANGED
@@ -30,12 +30,10 @@ TITLE="Override post-processor configuration"
|
|
30
30
|
CHECKTITLE="Deselect to disable. Esc or Cancel close the dialog and no changes will be applied."
|
31
31
|
|
32
32
|
# These are the configuration variables which can be unset.
|
33
|
-
|
34
|
-
VARS=(GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS DEBUG_LOG)
|
33
|
+
VARS=(GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS VFY_URLS DEBUG_LOG)
|
35
34
|
|
36
35
|
# Checklist options
|
37
|
-
|
38
|
-
options=(GROUP_SIGS 'Signatures' ON CUSTOM_HEADERS 'Custom headers' ON NO_ARCHIVE_GROUPS 'No Archive' ON DEBUG_LOG 'Log' ON)
|
36
|
+
options=(GROUP_SIGS 'Signatures' ON CUSTOM_HEADERS 'Custom headers' ON NO_ARCHIVE_GROUPS 'No Archive' ON VFY_URLS 'Correct URLs' ON DEBUG_LOG 'Log' ON)
|
39
37
|
|
40
38
|
# show dialog and store results
|
41
39
|
result=$(whiptail --title "$TITLE" --checklist "$CHECKTITLE" 13 55 5 "${options[@]}" 3>&1 1>&2 2>&3)
|
data/lib/yad_dlg
CHANGED
@@ -22,20 +22,13 @@ NO_ARCHIVE_GROUPS=3
|
|
22
22
|
#VFY_URLS=4
|
23
23
|
DEBUG_LOG=4
|
24
24
|
|
25
|
-
#CONF=$(yad --item-separator=" " --title "$TITLE" --image="" --window-icon="" --form \
|
26
|
-
# --field="Uncheck to disable options\n<b>Esc and Cancel</b> terminate the post-processor.":LBL ""\
|
27
|
-
# --field="Signature":CHK 'true' \
|
28
|
-
# --field="Custom-headers":CHK 'true' \
|
29
|
-
# --field="No Archive":CHK 'true' \
|
30
|
-
# --field="URL Correction":CHK 'true' \
|
31
|
-
# --field="Log":CHK 'true')
|
32
|
-
|
33
25
|
CONF=$(yad --item-separator=" " --title "$TITLE" --image="" --window-icon="" --form \
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
26
|
+
--field="Uncheck to disable options\n<b>Esc and Cancel</b> terminate the post-processor.":LBL ""\
|
27
|
+
--field="Signature":CHK 'true' \
|
28
|
+
--field="Custom-headers":CHK 'true' \
|
29
|
+
--field="No Archive":CHK 'true' \
|
30
|
+
--field="URL Correction":CHK 'true' \
|
31
|
+
--field="Log":CHK 'true')
|
39
32
|
|
40
33
|
if [ $? == 0 ]
|
41
34
|
then
|
data/lib/zenity_dlg
CHANGED
@@ -16,21 +16,13 @@
|
|
16
16
|
TITLE="Override post-processor configuration"
|
17
17
|
# The options are the configuration variables which can be unset.
|
18
18
|
|
19
|
-
#CONF=$(zenity --title "$TITLE" --text "Deselect options to disable.\n<b>Esc and Cancel</b> terminate the post-processor."\
|
20
|
-
# --height 450 --list --checklist --column 'set' --column 'Option' --column '' \
|
21
|
-
# TRUE GROUP_SIGS Signature\
|
22
|
-
# TRUE CUSTOM_HEADERS "Custom Headers"\
|
23
|
-
# TRUE NO_ARCHIVE_GROUPS "No Archive"\
|
24
|
-
# TRUE VFY_URLS "Correct URLs"\
|
25
|
-
# TRUE DEBUG_LOG Log)
|
26
|
-
|
27
19
|
CONF=$(zenity --title "$TITLE" --text "Deselect options to disable.\n<b>Esc and Cancel</b> terminate the post-processor."\
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
20
|
+
--height 450 --list --checklist --column 'set' --column 'Option' --column '' \
|
21
|
+
TRUE GROUP_SIGS Signature\
|
22
|
+
TRUE CUSTOM_HEADERS "Custom Headers"\
|
23
|
+
TRUE NO_ARCHIVE_GROUPS "No Archive"\
|
24
|
+
TRUE VFY_URLS "Correct URLs"\
|
25
|
+
TRUE DEBUG_LOG Log)
|
34
26
|
|
35
27
|
if [ $? == 0 ]
|
36
28
|
then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flnews_post_proc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.57'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Uplawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diffy
|
@@ -105,5 +105,5 @@ requirements: []
|
|
105
105
|
rubygems_version: 3.5.3
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
|
-
summary:
|
108
|
+
summary: Better error-handling when interpreting the configuration. README updated
|
109
109
|
test_files: []
|