flnews_post_proc 1.55 → 1.57

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7893f5a913ec2f1682d699180984ffa61603c01722c7f88edd7840b4f3cce797
4
- data.tar.gz: a71ea92cc87014b4f75cd99e01d6bafd6b368cb076e5f1420a9e1105c95b97ff
3
+ metadata.gz: 1b1429b1ae2eb519f5e35c6f12a6cb56705a4b24b87a33111af776f3759addd9
4
+ data.tar.gz: 33009debfaadea2a4e1c2868d3eac2c74ff1216601bb511fc418702a51966511
5
5
  SHA512:
6
- metadata.gz: 4606de5db3e9f9ea86777e60135f4e80b5d6437380692e446493752d461a8ff0c5e08b042f14ed3de33f52eb6290a89cbd2443c8d0dcb55e36b6819c20e90462
7
- data.tar.gz: 8f9a783124f7ec6a1256488fde0bcead47868621506e8b23a7558aa87cca65881afeb9aa13280257a0bc5a7915917b5c592ee98d5ee2aa4fdd30e0dc25e31208
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. Beware that mailto: links are not recognized and cannot be
119
- corrected. See the explanations for VFY_URLS, below.
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
- require 'tempfile'
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/news')
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 URIs. Même si les URIs sont identifiables, seulement quelques manipulations
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>'&lt;' et '&gt;' sont ajoutés, si manquants</li>
628
- <li>&quot;news:&quot; 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 &quot;http(s):&quot;</li>
630
629
  </ul>
631
630
  <p>ATTN! Le programme ne peut pas différencier entre &quot;mailto:&quot; et &quot;news:&quot;. Si ni l'un
@@ -636,11 +635,11 @@ ni l'autre est donné, mais '&#64;' est présent, &quot;news:&quot; 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
- suivantes avant qu'un article est posté :
641
- GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS, VFY_URLS et DEBUG_LOG.
642
- Un dialogue peut être affiché, qui permet la désactivation de chacune de ces
643
- options. Les valeurs par défaut, définis pour flnews, vont donc prévaloir.</p>
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 URIs. Même si les URIs sont identifiables, seulement quelques manipulations
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
- suivantes avant qu'un article est posté :
321
- GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS, VFY_URLS et DEBUG_LOG.
322
- Un dialogue peut être affiché, qui permet la désactivation de chacune de ces
323
- options. Les valeurs par défaut, définis pour flnews, vont donc prévaloir.
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 '&lt;' and '&gt;' are added, if missing
582
- * Article-references are prepended with &quot;news:&quot;, if missing
583
582
  * Slashes are added, if they are found missing after &quot;http(s):&quot;</p>
584
- <p>ATTN! The program is unable to discern &quot;mailto:&quot; and &quot;news:&quot; references. If
585
- neither is given, but '&#64;' is present, &quot;news:&quot; 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
- configuration options before an article is posted:
594
- GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS and DEBUG_LOG.
595
- A dialog may be displayed which allows you to disable any of these
596
- four options, so that the defaults from flnews prevail.</p>
597
- <p>ATTN! Canceling the dialog or pushing the Esc-key does interrupt
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
- configuration options before an article is posted:
278
- GROUP_SIGS, XNAY_GROUPS, CUSTOM_HEADERS and DEBUG_LOG.
279
- A dialog may be displayed which allows you to disable any of these
280
- four options, so that the defaults from flnews prevail.
281
-
282
- ATTN! Canceling the dialog or pushing the Esc-key does interrupt
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
@@ -128,6 +128,8 @@ class Configuration
128
128
  rescue Exception => ex
129
129
  msg = ex.message
130
130
  error msg
131
+ STDERR.puts("Configuration: cannot use the configuration-file (" << @config_file << ")")
132
+ STDERR.puts("Exception: " << msg)
131
133
  exit false
132
134
  end
133
135
  else
@@ -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
@@ -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
- # ----- DANGEROUS, disabled for the time. ----
59
- # body.handle_uris
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 Disable log DEBUG_LOG
57
+ 4 Do not correct URLs VFY_URLS
58
+ 5 Disable log DEBUG_LOG
59
59
  ––––––––––––––––––––––––––––––––––––––––––––––
60
- 5 Summary
60
+ 6 Summary
61
61
  ––––––––––––––––––––––––––––––––––––––––––––––
62
62
  0 Okay, use settings.
63
63
  ––––––––––––––––––––––––––––––––––––––––––––––––
64
- #{bold("Esc, Ctrl+C and 'q'")} terminate the Post-processor
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
- # when 6
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.55"
17
+ PROGVERSION = "1.57"
18
18
  AUTHORS = "Michael Uplawski"
19
19
  EMAIL = "michael.uplawski@uplawski.eu"
20
20
  YEARS = "2023 - 2024"
21
- SUMMARY = "more checks on the input data, URI corrections disabled"
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
- # VARS=(GROUP_SIGS CUSTOM_HEADERS NO_ARCHIVE_GROUPS VFY_URLS DEBUG_LOG)
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
- # 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)
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
- --field="Uncheck to disable options\n<b>Esc and Cancel</b> terminate the post-processor.":LBL ""\
35
- --field="Signature":CHK 'true' \
36
- --field="Custom-headers":CHK 'true' \
37
- --field="No Archive":CHK 'true' \
38
- --field="Log":CHK 'true')
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
- --height 450 --list --checklist --column 'set' --column 'Option' --column '' \
29
- TRUE GROUP_SIGS Signature\
30
- TRUE CUSTOM_HEADERS "Custom Headers"\
31
- TRUE NO_ARCHIVE_GROUPS "No Archive"\
32
- TRUE DEBUG_LOG Log)
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.55'
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-05 00:00:00.000000000 Z
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: more checks on the input data, URI corrections disabled
108
+ summary: Better error-handling when interpreting the configuration. README updated
109
109
  test_files: []