flnews_post_proc 2.04 → 2.06
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/changes.txt +11 -0
- data/doc/fr/html/flnews_post_proc.html +86 -22
- 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 +50 -12
- data/doc/html/flnews_post_proc.html +47 -6
- 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 +23 -3
- data/lib/body.rb +6 -2
- data/lib/newsgroups.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +120 -114
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b24050d2f4faafefe2d20847a955242244a1155a76ffb7a3917a4dbd00cdb84
|
|
4
|
+
data.tar.gz: 73309c246479aafb0c1363be5bda948fe0d038a4cf1aa60b9dbc97c5c8dc4909
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 845b5c52629caa03db0ee7f926b30803a8b740537d05c29eafcdbcaaee1656ce73e03ea032e9a5ee25a3e1141e6907f57e522d2d8b51063e375a37cb21b673f0
|
|
7
|
+
data.tar.gz: '08d75976972259fb2c3c4e17cf0925b6a06508563f6cef83ab492692a75ad5396b81877b4d7067a347da273864eecce306cb3e31396c722b16e5663adfc1ea3e'
|
data/changes.txt
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
v. 2.06
|
|
2
|
+
*) The content of the signature file is (again) rearranged after
|
|
3
|
+
having picked a random signature, to provide for better randomness.
|
|
4
|
+
It is not proven that this is better but something must be done.
|
|
5
|
+
|
|
6
|
+
*) Ruby 4.1.0 chokes again at an encoding mismatch, when calling
|
|
7
|
+
Array.join('delimiter') before the encoding is enforced. I have
|
|
8
|
+
forced UTF-8 an all Array elements prior join(). This works now.
|
|
9
|
+
|
|
10
|
+
v.2.05
|
|
11
|
+
*) Gemspec: Dependency for io-console added.
|
|
1
12
|
v.2.04
|
|
2
13
|
*) Gemspec: Dependencies added
|
|
3
14
|
-) gem New_rfc_2047 was missing from the specs.
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
<li>
|
|
59
59
|
<p><a class="reference internal" href=
|
|
60
|
-
"#dialogue-pour-desactiver-des-options" id=
|
|
60
|
+
"#dialogue-pour-desactiver-des-options-1" id=
|
|
61
61
|
"toc-entry-4">Dialogue pour désactiver des
|
|
62
62
|
options</a>
|
|
63
63
|
</p>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
<li>
|
|
84
84
|
<p><a class="reference internal" href=
|
|
85
|
-
"#autres-informations" id="toc-entry-7">Autres
|
|
85
|
+
"#autres-informations-1" id="toc-entry-7">Autres
|
|
86
86
|
Informations</a>
|
|
87
87
|
</p>
|
|
88
88
|
|
|
@@ -289,10 +289,19 @@
|
|
|
289
289
|
"#creation-des-notes-de-bas-de-page">Création des notes
|
|
290
290
|
de bas de page</a>)</p>
|
|
291
291
|
</li>
|
|
292
|
+
|
|
293
|
+
<li>
|
|
294
|
+
<p>flnews ne propose actuellement pas la sauvegarde
|
|
295
|
+
d'un article dont vous voulez retarder la publication.
|
|
296
|
+
<strong>flnews_post_proc</strong> vous laisse cette
|
|
297
|
+
option, si un répertoire pour les brouillons a été
|
|
298
|
+
configuré.</p>
|
|
299
|
+
</li>
|
|
292
300
|
</ul>
|
|
293
301
|
</section>
|
|
294
302
|
|
|
295
|
-
<section id="dialogue-pour-desactiver-des-options">
|
|
303
|
+
<section id="dialogue-pour-desactiver-des-options-1">
|
|
304
|
+
<span id="dialogue-pour-desactiver-des-options"></span>
|
|
296
305
|
<h3>Dialogue pour désactiver des options</h3>
|
|
297
306
|
|
|
298
307
|
<p>ATTN! Depuis la version 1.72, YAD et Zenity ne sont plus
|
|
@@ -337,6 +346,24 @@
|
|
|
337
346
|
</li>
|
|
338
347
|
</ul>
|
|
339
348
|
|
|
349
|
+
<p>Il existe une option supplémentaire, désactivée par
|
|
350
|
+
défaut, que vous ne pouvez activer que dans la boîte de
|
|
351
|
+
dialogue et nulle part ailleurs :</p>
|
|
352
|
+
|
|
353
|
+
<ul class="simple">
|
|
354
|
+
<li>
|
|
355
|
+
<p>Le message en cours peut être enregistré comme
|
|
356
|
+
brouillon, au lieu d'être publié sur Usenet.</p>
|
|
357
|
+
</li>
|
|
358
|
+
</ul>
|
|
359
|
+
|
|
360
|
+
<p>Si votre configuration contient le chemin d'accès à un
|
|
361
|
+
répertoire destiné à ces brouillons (option
|
|
362
|
+
<em>DRAFT_DIR</em>), celui-ci sera utilisé pour stocker ces
|
|
363
|
+
brouillons ; sinon, c'est le répertoire temporaire défini
|
|
364
|
+
par la variable d'environnement <em>$TEMP</em> qui sera
|
|
365
|
+
utilisé.</p>
|
|
366
|
+
|
|
340
367
|
<p>En tapant Esc ou en poussant le bouton « Annuler » du
|
|
341
368
|
dialogue, vous pouvez interrompre le processus, flnews ne
|
|
342
369
|
va pas envoyer l'article.</p>
|
|
@@ -673,7 +700,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
673
700
|
|
|
674
701
|
<p>PAR DÉFAUT : yes</p>
|
|
675
702
|
|
|
676
|
-
<p>EXEMPLE: No</p>
|
|
703
|
+
<p>EXEMPLE : No</p>
|
|
677
704
|
</blockquote>
|
|
678
705
|
|
|
679
706
|
<p><strong>USE_OLD</strong>
|
|
@@ -690,14 +717,49 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
690
717
|
<p>Ne changez pas cette variable ou notez la valeur
|
|
691
718
|
'false' afin d'ignorer les changements de l'objet.</p>
|
|
692
719
|
|
|
693
|
-
<p>PAR
|
|
720
|
+
<p>PAR DÉFAUT : false</p>
|
|
694
721
|
|
|
695
|
-
<p>EXEMPLE: yes</p>
|
|
722
|
+
<p>EXEMPLE : yes</p>
|
|
723
|
+
</blockquote>
|
|
724
|
+
|
|
725
|
+
<p id="draft-dir"><strong>DRAFT_DIR</strong>
|
|
726
|
+
</p>
|
|
727
|
+
|
|
728
|
+
<blockquote>
|
|
729
|
+
<p>Chemin d'accès au répertoire contenant les brouillons
|
|
730
|
+
de messages.</p>
|
|
731
|
+
|
|
732
|
+
<p>Vous pouvez activer l'option <em>DRAFT_ONLY</em> dans
|
|
733
|
+
la boîte de <cite>Dialogue pour désactiver des
|
|
734
|
+
options</cite>. Le message en cours sera alors enregistré
|
|
735
|
+
dans ce répertoire, <strong>au lieu d'être
|
|
736
|
+
publié</strong> sur Usenet. Si vous ne renseignez pas
|
|
737
|
+
cette option, un répertoire temporaire ($TEMP) sera
|
|
738
|
+
utilisé à la place. Les fichiers de brouillon seront
|
|
739
|
+
nommés selon le schéma suivant :</p>
|
|
740
|
+
|
|
741
|
+
<blockquote>
|
|
742
|
+
<p>[n][1er_groupe][++].draft</p>
|
|
743
|
+
</blockquote>
|
|
744
|
+
|
|
745
|
+
<p>où <em>n</em> correspond au nombre de fichiers dans ce
|
|
746
|
+
répertoire, <em>1er_groupe</em> au premier groupe de
|
|
747
|
+
discussion auquel le message était adressé et <em>++</em>
|
|
748
|
+
à un suffixe facultatif, indiquant qu’il y a d’autres
|
|
749
|
+
groupes de discussion dans la liste (publication
|
|
750
|
+
croisée). Le contenu d’un fichier brouillon correspond au
|
|
751
|
+
corps actuel du message, précédé de la liste des groupes
|
|
752
|
+
de discussion.</p>
|
|
753
|
+
|
|
754
|
+
<p>PAR DÉFAUT : vide</p>
|
|
755
|
+
|
|
756
|
+
<p>EXEMPLE : ~/flnews_brouillons</p>
|
|
696
757
|
</blockquote>
|
|
697
758
|
</section>
|
|
698
759
|
</section>
|
|
699
760
|
|
|
700
|
-
<section id="autres-informations">
|
|
761
|
+
<section id="autres-informations-1">
|
|
762
|
+
<span id="autres-informations"></span>
|
|
701
763
|
<h2>Autres Informations</h2>
|
|
702
764
|
|
|
703
765
|
<section id="changement-de-l-objet-1">
|
|
@@ -767,16 +829,15 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
767
829
|
<section id="remplacement-avec-signature">
|
|
768
830
|
<h3>Remplacement avec signature</h3>
|
|
769
831
|
|
|
770
|
-
<p>
|
|
771
|
-
signature
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
version de l'article :</p>
|
|
832
|
+
<p>Depuis version 2.0, lors du remplacement d'un article
|
|
833
|
+
existant, la signature est appliquée de la même manière que
|
|
834
|
+
pour d'autres nouvelles articles. Quand même, si vous
|
|
835
|
+
souhaitez garder la signature de l'article que vous
|
|
836
|
+
remplacez, vous pouvez:</p>
|
|
776
837
|
|
|
777
838
|
<ol class="arabic simple">
|
|
778
839
|
<li>
|
|
779
|
-
<p>
|
|
840
|
+
<p>dans flnews, sélectionnez l'intégralité de l'article
|
|
780
841
|
avec la souris – de la première ligne (y compris toute
|
|
781
842
|
introduction) jusqu'à la dernière ligne de la
|
|
782
843
|
signature.</p>
|
|
@@ -795,14 +856,17 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
795
856
|
</li>
|
|
796
857
|
|
|
797
858
|
<li>
|
|
798
|
-
<p>
|
|
859
|
+
<p>Dans le <a class="reference internal" href=
|
|
860
|
+
"#dialogue-pour-desactiver-des-options">Dialogue pour
|
|
861
|
+
désactiver des options</a> désactiver l'option pour les
|
|
862
|
+
signatures.</p>
|
|
799
863
|
</li>
|
|
800
|
-
</ol>
|
|
801
864
|
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
865
|
+
<li>
|
|
866
|
+
<p>Appuyez sur '0' pour valider vos choix et faire
|
|
867
|
+
flnews envoyer l'article.</p>
|
|
868
|
+
</li>
|
|
869
|
+
</ol>
|
|
806
870
|
</section>
|
|
807
871
|
|
|
808
872
|
<section id="tester">
|
|
@@ -897,7 +961,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
897
961
|
"https://creativecommons.org/licenses/by-nd/4.0/deed.fr">CC
|
|
898
962
|
BY-ND 4.0</a></p>
|
|
899
963
|
|
|
900
|
-
<p>Date: 2026-
|
|
964
|
+
<p>Date: 2026-08-24</p>
|
|
901
965
|
|
|
902
966
|
<p><strong>Ω</strong>
|
|
903
967
|
</p>
|
|
@@ -906,7 +970,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
906
970
|
</main>
|
|
907
971
|
|
|
908
972
|
<div id='page_dt'>
|
|
909
|
-
2026-
|
|
973
|
+
2026-08-24
|
|
910
974
|
</div>
|
|
911
975
|
</body>
|
|
912
976
|
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -111,6 +111,12 @@ des raisons parfois arbitraires :
|
|
|
111
111
|
l'objet plus précisément=% » (voir plus bas : `Création des notes de bas
|
|
112
112
|
de page`_)
|
|
113
113
|
|
|
114
|
+
* flnews ne propose actuellement pas la sauvegarde d'un article dont vous voulez
|
|
115
|
+
retarder la publication. |program| vous laisse cette option, si un répertoire
|
|
116
|
+
pour les brouillons a été configuré.
|
|
117
|
+
|
|
118
|
+
.. _Dialogue pour désactiver des options:
|
|
119
|
+
|
|
114
120
|
Dialogue pour désactiver des options
|
|
115
121
|
---------------------------------------
|
|
116
122
|
ATTN! Depuis la version 1.72, YAD et Zenity ne sont plus utilisés pour le
|
|
@@ -136,6 +142,15 @@ Vous **ne pouvez pas** activer des options qui n'ont pas été activées au pré
|
|
|
136
142
|
|
|
137
143
|
* L'écriture d'un protocole peut être arrêtée.
|
|
138
144
|
|
|
145
|
+
Il existe une option supplémentaire, désactivée par défaut, que vous ne pouvez activer que dans la boîte de dialogue et nulle part ailleurs :
|
|
146
|
+
|
|
147
|
+
* Le message en cours peut être enregistré comme brouillon, au lieu d'être publié sur Usenet.
|
|
148
|
+
|
|
149
|
+
Si votre configuration contient le chemin d'accès à un répertoire destiné à ces
|
|
150
|
+
brouillons (option *DRAFT_DIR*), celui-ci sera utilisé pour stocker ces
|
|
151
|
+
brouillons ; sinon, c'est le répertoire temporaire défini par la variable
|
|
152
|
+
d'environnement *$TEMP* qui sera utilisé.
|
|
153
|
+
|
|
139
154
|
En tapant Esc ou en poussant le bouton « Annuler » du dialogue, vous pouvez
|
|
140
155
|
interrompre le processus, flnews ne va pas envoyer l'article.
|
|
141
156
|
|
|
@@ -387,7 +402,7 @@ Options de configuration
|
|
|
387
402
|
|
|
388
403
|
PAR DÉFAUT : yes
|
|
389
404
|
|
|
390
|
-
EXEMPLE: No
|
|
405
|
+
EXEMPLE : No
|
|
391
406
|
|
|
392
407
|
**USE_OLD**
|
|
393
408
|
|
|
@@ -398,10 +413,36 @@ Options de configuration
|
|
|
398
413
|
Ne changez pas cette variable ou notez la valeur 'false' afin d'ignorer
|
|
399
414
|
les changements de l'objet.
|
|
400
415
|
|
|
401
|
-
PAR
|
|
416
|
+
PAR DÉFAUT : false
|
|
402
417
|
|
|
403
|
-
EXEMPLE: yes
|
|
418
|
+
EXEMPLE : yes
|
|
419
|
+
|
|
420
|
+
.. _DRAFT_DIR:
|
|
421
|
+
|
|
422
|
+
**DRAFT_DIR**
|
|
404
423
|
|
|
424
|
+
Chemin d'accès au répertoire contenant les brouillons de messages.
|
|
425
|
+
|
|
426
|
+
Vous pouvez activer l'option *DRAFT_ONLY* dans la boîte de `Dialogue pour
|
|
427
|
+
désactiver des options`. Le message en cours sera alors enregistré dans ce
|
|
428
|
+
répertoire, **au lieu d'être publié** sur Usenet. Si vous ne renseignez pas
|
|
429
|
+
cette option, un répertoire temporaire ($TEMP) sera utilisé à la place. Les
|
|
430
|
+
fichiers de brouillon seront nommés selon le schéma suivant :
|
|
431
|
+
|
|
432
|
+
[n][1er_groupe][++].draft
|
|
433
|
+
|
|
434
|
+
où *n* correspond au nombre de fichiers dans ce répertoire, *1er_groupe* au
|
|
435
|
+
premier groupe de discussion auquel le message était adressé et *++* à un
|
|
436
|
+
suffixe facultatif, indiquant qu’il y a d’autres groupes de discussion dans
|
|
437
|
+
la liste (publication croisée). Le contenu d’un fichier brouillon
|
|
438
|
+
correspond au corps actuel du message, précédé de la liste des groupes de
|
|
439
|
+
discussion.
|
|
440
|
+
|
|
441
|
+
PAR DÉFAUT : vide
|
|
442
|
+
|
|
443
|
+
EXEMPLE : ~/flnews_brouillons
|
|
444
|
+
|
|
445
|
+
.. _Autres Informations:
|
|
405
446
|
|
|
406
447
|
Autres Informations
|
|
407
448
|
===================
|
|
@@ -458,13 +499,11 @@ fois que les marqueurs de notes de bas de page auront remplacé le texte intégr
|
|
|
458
499
|
Remplacement avec signature
|
|
459
500
|
---------------------------
|
|
460
501
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
Pour conserver la signature originale dans la nouvelle version de l'article :
|
|
502
|
+
Depuis version 2.0, lors du remplacement d'un article existant, la signature est appliquée
|
|
503
|
+
de la même manière que pour d'autres nouvelles articles. Quand même, si vous souhaitez
|
|
504
|
+
garder la signature de l'article que vous remplacez, vous pouvez:
|
|
466
505
|
|
|
467
|
-
1.
|
|
506
|
+
1. dans flnews, sélectionnez l'intégralité de l'article avec la souris – de la
|
|
468
507
|
première ligne (y compris toute introduction) jusqu'à la dernière ligne de
|
|
469
508
|
la signature.
|
|
470
509
|
|
|
@@ -474,10 +513,9 @@ Pour conserver la signature originale dans la nouvelle version de l'article :
|
|
|
474
513
|
dans le texte modifiable, contrairement à la situation normale où flnews
|
|
475
514
|
supprime les signatures avant d'ouvrir l'éditeur.
|
|
476
515
|
|
|
477
|
-
4.
|
|
516
|
+
4. Dans le `Dialogue pour désactiver des options`_ désactiver l'option pour les signatures.
|
|
478
517
|
|
|
479
|
-
|
|
480
|
-
n'affecte pas les signatures lors d'un remplacement.
|
|
518
|
+
5. Appuyez sur '0' pour valider vos choix et faire flnews envoyer l'article.
|
|
481
519
|
|
|
482
520
|
Tester
|
|
483
521
|
------
|
|
@@ -257,6 +257,14 @@
|
|
|
257
257
|
"#editing-footnotes">EDITING FOOTNOTES</a>,
|
|
258
258
|
below.</p>
|
|
259
259
|
</li>
|
|
260
|
+
|
|
261
|
+
<li>
|
|
262
|
+
<p>When you decide to postpone the publication of an
|
|
263
|
+
article, flnews does currently not offer a way to
|
|
264
|
+
keep draft messages. The post-processor lets you save
|
|
265
|
+
preliminary versions of your message in a configured
|
|
266
|
+
directory instead of posting them.</p>
|
|
267
|
+
</li>
|
|
260
268
|
</ul>
|
|
261
269
|
</blockquote>
|
|
262
270
|
</section>
|
|
@@ -714,10 +722,43 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
714
722
|
<span id="signatures-in-supersedes"></span>
|
|
715
723
|
<h3>Signatures in Supersedes</h3>
|
|
716
724
|
|
|
717
|
-
<p>Since version 2.0, signatures in supersedes are
|
|
718
|
-
handled differently from other articles
|
|
719
|
-
|
|
720
|
-
|
|
725
|
+
<p>Since version 2.0, signatures in supersedes are by
|
|
726
|
+
default not handled differently from other articles, and
|
|
727
|
+
their signature is assigned in the same way as to a new
|
|
728
|
+
original article. However, if you want to maintain the
|
|
729
|
+
signature from the post that you want to replace, you
|
|
730
|
+
can:</p>
|
|
731
|
+
|
|
732
|
+
<blockquote>
|
|
733
|
+
<ul class="simple">
|
|
734
|
+
<li>
|
|
735
|
+
<p>select the complete message body of the original
|
|
736
|
+
article, including the signature</p>
|
|
737
|
+
</li>
|
|
738
|
+
|
|
739
|
+
<li>
|
|
740
|
+
<p>Trigger the supersedes in flnews.</p>
|
|
741
|
+
</li>
|
|
742
|
+
|
|
743
|
+
<li>
|
|
744
|
+
<p>Write your new version of the article while
|
|
745
|
+
leaving the current signature intact.</p>
|
|
746
|
+
</li>
|
|
747
|
+
|
|
748
|
+
<li>
|
|
749
|
+
<p>In the Override Dialog (see <a class=
|
|
750
|
+
"reference internal" href=
|
|
751
|
+
"#dialog-for-overriding-settings">Dialog for
|
|
752
|
+
Overriding Settings</a>), clear the signature
|
|
753
|
+
option.</p>
|
|
754
|
+
</li>
|
|
755
|
+
|
|
756
|
+
<li>
|
|
757
|
+
<p>Hit '0' to confirm your options and to make flnews
|
|
758
|
+
send the article.</p>
|
|
759
|
+
</li>
|
|
760
|
+
</ul>
|
|
761
|
+
</blockquote>
|
|
721
762
|
</section>
|
|
722
763
|
|
|
723
764
|
<section id="testing-1">
|
|
@@ -825,7 +866,7 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
825
866
|
"https://creativecommons.org/licenses/by-nd/4.0/">CC
|
|
826
867
|
BY-ND 4.0</a></p>
|
|
827
868
|
|
|
828
|
-
<p>Date: 2026-08-
|
|
869
|
+
<p>Date: 2026-08-11</p>
|
|
829
870
|
</blockquote>
|
|
830
871
|
|
|
831
872
|
<p><strong>Ω</strong>
|
|
@@ -835,7 +876,7 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
835
876
|
</main>
|
|
836
877
|
|
|
837
878
|
<div id='page_dt'>
|
|
838
|
-
2026-08-
|
|
879
|
+
2026-08-11
|
|
839
880
|
</div>
|
|
840
881
|
</body>
|
|
841
882
|
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -97,6 +97,11 @@ Limitations of Basic Newsreaders
|
|
|
97
97
|
describing the object further=%". See also the hints under
|
|
98
98
|
`EDITING FOOTNOTES`_, below.
|
|
99
99
|
|
|
100
|
+
* When you decide to postpone the publication of an article, flnews does
|
|
101
|
+
currently not offer a way to keep draft messages. The post-processor lets
|
|
102
|
+
you save preliminary versions of your message in a configured directory
|
|
103
|
+
instead of posting them.
|
|
104
|
+
|
|
100
105
|
.. _Dialog for Overriding Settings:
|
|
101
106
|
|
|
102
107
|
Dialog for Overriding Settings
|
|
@@ -409,9 +414,24 @@ Editing footnotes
|
|
|
409
414
|
|
|
410
415
|
Signatures in Supersedes
|
|
411
416
|
------------------------
|
|
412
|
-
Since version 2.0, signatures in supersedes are not handled
|
|
413
|
-
other articles
|
|
414
|
-
|
|
417
|
+
Since version 2.0, signatures in supersedes are by default not handled
|
|
418
|
+
differently from other articles, and their signature is assigned in the same
|
|
419
|
+
way as to a new original article.
|
|
420
|
+
However, if you want to maintain the signature from the post that you want to
|
|
421
|
+
replace, you can:
|
|
422
|
+
|
|
423
|
+
* select the complete message body of the original article, including the
|
|
424
|
+
signature
|
|
425
|
+
|
|
426
|
+
* Trigger the supersedes in flnews.
|
|
427
|
+
|
|
428
|
+
* Write your new version of the article while leaving the current signature
|
|
429
|
+
intact.
|
|
430
|
+
|
|
431
|
+
* In the Override Dialog (see `Dialog for Overriding Settings`_), clear the
|
|
432
|
+
signature option.
|
|
433
|
+
|
|
434
|
+
* Hit '0' to confirm your options and to make flnews send the article.
|
|
415
435
|
|
|
416
436
|
.. _Testing:
|
|
417
437
|
|
data/lib/body.rb
CHANGED
|
@@ -209,8 +209,12 @@ class Body
|
|
|
209
209
|
ref_delim = @@config.REFERENCES_DELIMITER
|
|
210
210
|
debug('references delimiter is ' << ref_delim)
|
|
211
211
|
references = Array.new
|
|
212
|
-
# avoids a lot of trouble
|
|
213
|
-
|
|
212
|
+
# avoids a lot of trouble.
|
|
213
|
+
# The encoding must be set before calling join().
|
|
214
|
+
# New in Ruby 4.1.0
|
|
215
|
+
@lines.each {|l| l.force_encoding('UTF-8')}
|
|
216
|
+
# -----------------
|
|
217
|
+
body = @lines.join($LN)
|
|
214
218
|
if ref_delim && !ref_delim.strip.empty?
|
|
215
219
|
unless ref_delim == ref_delim.reverse
|
|
216
220
|
ref_delim.strip!
|
data/lib/newsgroups.rb
CHANGED
|
@@ -165,6 +165,7 @@ class Newsgroups
|
|
|
165
165
|
|
|
166
166
|
# srand(Time.now.nsec)
|
|
167
167
|
srand()
|
|
168
|
+
rearrange_sigs(sigfile, all_sigs)
|
|
168
169
|
return all_sigs[rand(numSigs)]
|
|
169
170
|
else
|
|
170
171
|
warn 'cannot find or read signature file: ' << sigfile
|
|
@@ -174,7 +175,6 @@ class Newsgroups
|
|
|
174
175
|
|
|
175
176
|
# write a new rearranged version of the signature file for
|
|
176
177
|
# better hazard.
|
|
177
|
-
# UNUSED
|
|
178
178
|
def rearrange_sigs(sigfile, all_sigs)
|
|
179
179
|
if File.writable?(sigfile)
|
|
180
180
|
new_sigs = Array.new(all_sigs.length)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,139 +1,145 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flnews_post_proc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: '2.06'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
|
|
7
|
+
- Michael Uplawski
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-08-
|
|
10
|
+
date: 2026-08-27 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: diffy
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.4'
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 3.4.4
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - "~>"
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '3.4'
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 3.4.4
|
|
32
|
+
- !ruby/object:Gem::Dependency
|
|
33
|
+
name: mimemagic
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - "~>"
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '0.4'
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: 0.4.3
|
|
42
|
+
type: :runtime
|
|
43
|
+
prerelease: false
|
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - "~>"
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0.4'
|
|
49
|
+
- - ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: 0.4.3
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
53
|
+
name: new_rfc_2047
|
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - "~>"
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '1.0'
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 1.0.0
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.0'
|
|
69
|
+
- - ">="
|
|
70
|
+
- !ruby/object:Gem::Version
|
|
71
|
+
version: 1.0.0
|
|
72
|
+
- !ruby/object:Gem::Dependency
|
|
73
|
+
name: io-console
|
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
|
75
|
+
requirements:
|
|
76
|
+
- - "~>"
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '0.9'
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: 0.9.2
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '0.9'
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 0.9.2
|
|
84
92
|
description: Post-processor for Usenet-articles created in flnews
|
|
85
93
|
email: michael.uplawski@uplawski.eu
|
|
86
94
|
executables:
|
|
87
|
-
|
|
95
|
+
- flnews_post_proc
|
|
88
96
|
extensions: []
|
|
89
97
|
extra_rdoc_files: []
|
|
90
98
|
files:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
99
|
+
- README.md
|
|
100
|
+
- bin/flnews_post_proc
|
|
101
|
+
- changes.txt
|
|
102
|
+
- doc/fr/html/flnews_post_proc.html
|
|
103
|
+
- doc/fr/man/flnews_post_proc.1.gz
|
|
104
|
+
- doc/fr/pdf/flnews_post_proc.pdf
|
|
105
|
+
- doc/fr/rst/flnews_post_proc.rst
|
|
106
|
+
- doc/html/flnews_post_proc.html
|
|
107
|
+
- doc/license.txt
|
|
108
|
+
- doc/man/flnews_post_proc.1.gz
|
|
109
|
+
- doc/pdf/flnews_post_proc.pdf
|
|
110
|
+
- doc/rst/flnews_post_proc.rst
|
|
111
|
+
- lib/basic_logging.rb
|
|
112
|
+
- lib/body.rb
|
|
113
|
+
- lib/color_output.rb
|
|
114
|
+
- lib/configuration.rb
|
|
115
|
+
- lib/flnews_post_proc.conf
|
|
116
|
+
- lib/flnews_post_proc.rb
|
|
117
|
+
- lib/headers.rb
|
|
118
|
+
- lib/newsgroups.rb
|
|
119
|
+
- lib/override.rb
|
|
120
|
+
- lib/ruby_dlg
|
|
121
|
+
- lib/version.rb
|
|
114
122
|
licenses:
|
|
115
|
-
|
|
123
|
+
- WTFPL
|
|
116
124
|
metadata:
|
|
117
|
-
homepage_uri:
|
|
118
|
-
documentation_uri:
|
|
119
|
-
changelog_uri:
|
|
125
|
+
homepage_uri: https://www.uplawski.eu/software/flnews_post_proc/
|
|
126
|
+
documentation_uri: https://www.uplawski.eu/div/flnews/gem_doc/html/flnews_post_proc.html
|
|
127
|
+
changelog_uri: https://www.uplawski.eu/div/flnews/gem_doc/changes.txt
|
|
120
128
|
rdoc_options: []
|
|
121
129
|
require_paths:
|
|
122
|
-
|
|
130
|
+
- lib
|
|
123
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
132
|
requirements:
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
version: "4.0"
|
|
133
|
+
- - ">="
|
|
134
|
+
- !ruby/object:Gem::Version
|
|
135
|
+
version: '4.0'
|
|
129
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
137
|
requirements:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
version: "0"
|
|
138
|
+
- - ">="
|
|
139
|
+
- !ruby/object:Gem::Version
|
|
140
|
+
version: '0'
|
|
135
141
|
requirements: []
|
|
136
|
-
rubygems_version: 4.
|
|
142
|
+
rubygems_version: 4.0.18
|
|
137
143
|
specification_version: 4
|
|
138
|
-
summary:
|
|
144
|
+
summary: Modify news posts, before flnews sends them.
|
|
139
145
|
test_files: []
|