flnews_post_proc 2.05 → 2.09
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 +5 -0
- data/bin/flnews_post_proc +1 -0
- data/changes.txt +32 -0
- data/doc/fr/html/flnews_post_proc.html +92 -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 +64 -4
- data/doc/html/flnews_post_proc.html +31 -2
- data/doc/man/flnews_post_proc.1 +648 -0
- data/doc/pdf/flnews_post_proc.pdf +0 -0
- data/doc/rst/flnews_post_proc.rst +23 -1
- data/lib/basic_logging.rb +8 -4
- data/lib/body.rb +9 -2
- data/lib/configuration.rb +1 -1
- data/lib/flnews_post_proc.conf +9 -2
- data/lib/headers.rb +6 -2
- data/lib/newsgroups.rb +6 -2
- data/lib/version.rb +1 -1
- data/man/flnews_post_proc.1 +648 -0
- metadata +6 -4
- data/doc/man/flnews_post_proc.1.gz +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 18f792835e686af8a36729221515ac5c0c8a098ffa9af305c5fc0b8c9c238ee9
|
|
4
|
+
data.tar.gz: 7934370fa70a6c604e940889859adf606a4b811d3b0b7ca49bf15a6555fc5cd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf57d03010ef6b7eb4791593c28391463166793a16ff93a091bc547d107447ec6afbcb56fc4b6c3aad8155c9d0c25fa8d3b4937242fe762eb395ef5e5d16970c
|
|
7
|
+
data.tar.gz: eafa122440c8870fa7fcc308f2e738513d5092f09f22ec26bbdf9ce9d5ce63c1953b66b5d0e55dae05f14be438e1f024c02275e43f9875be60da944eca712543
|
data/README.md
CHANGED
|
@@ -47,6 +47,11 @@ This way, the gem file will be downloaded from rubygems.org and installed in
|
|
|
47
47
|
the designated path for ruby-gems. If the installation completes without
|
|
48
48
|
errors, the command **flnews_post_proc** will become immediately available.
|
|
49
49
|
|
|
50
|
+
To have the man page at your disposal when you call *man flnews_post_proc*,
|
|
51
|
+
you need to install the 'manpages' gem (**gem install manpages**). Then, having
|
|
52
|
+
installed flnews_post_proc as explained above, execute also
|
|
53
|
+
**gem manpages --update-all**.
|
|
54
|
+
|
|
50
55
|
For other uses of the gem utility, see the output of
|
|
51
56
|
user@machine:~$ **gem --help**
|
|
52
57
|
|
data/bin/flnews_post_proc
CHANGED
data/changes.txt
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
V. 2.09
|
|
2
|
+
*) Upon installation of the program, the English man page can be made
|
|
3
|
+
accessible in the ordinary way, if the manpages gem is already
|
|
4
|
+
installed.
|
|
5
|
+
|
|
6
|
+
V. 2.08
|
|
7
|
+
*) Bugfix: A random signature could not be set due to
|
|
8
|
+
the interfering process of rearranging them in the signature
|
|
9
|
+
file. -> Changed the order of actions.
|
|
10
|
+
*) The gem tool suddenly imposes duplication of the homepage
|
|
11
|
+
URL in the specs. Okay. Done. Beats me.
|
|
12
|
+
|
|
13
|
+
v. 2.07
|
|
14
|
+
*) Logging: exception in case of invalid target file is now handled.
|
|
15
|
+
*) Configuration variable “NAME_POSTPROCESSOR” can be set to true
|
|
16
|
+
or yes in order to create a custom header
|
|
17
|
+
X-Post-Processor: flnews_post_proc [version]
|
|
18
|
+
The default is empty, no or false, i.e. no additional header.
|
|
19
|
+
The setting is independent of the presence of other custom headers
|
|
20
|
+
and cannot be influenced in the Override Dialog, only in the
|
|
21
|
+
configuration file.
|
|
22
|
+
|
|
23
|
+
v. 2.06
|
|
24
|
+
*) The content of the signature file is (again) rearranged after
|
|
25
|
+
having picked a random signature, to provide for better randomness.
|
|
26
|
+
It is not proven that this is better but something must be done.
|
|
27
|
+
|
|
28
|
+
*) Ruby 4.1.0 chokes again at an encoding mismatch, when calling
|
|
29
|
+
Array.join('delimiter') before the encoding is enforced. I have
|
|
30
|
+
forced UTF-8 an all Array elements prior join(). This works now.
|
|
31
|
+
|
|
1
32
|
v.2.05
|
|
2
33
|
*) Gemspec: Dependency for io-console added.
|
|
34
|
+
|
|
3
35
|
v.2.04
|
|
4
36
|
*) Gemspec: Dependencies added
|
|
5
37
|
-) gem New_rfc_2047 was missing from the specs.
|
|
@@ -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
|
|
|
@@ -346,6 +346,24 @@
|
|
|
346
346
|
</li>
|
|
347
347
|
</ul>
|
|
348
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
|
+
|
|
349
367
|
<p>En tapant Esc ou en poussant le bouton « Annuler » du
|
|
350
368
|
dialogue, vous pouvez interrompre le processus, flnews ne
|
|
351
369
|
va pas envoyer l'article.</p>
|
|
@@ -517,6 +535,27 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
517
535
|
- 'X-Another-Header: care not!'</pre>
|
|
518
536
|
</blockquote>
|
|
519
537
|
|
|
538
|
+
<p><strong>NAME_POSTPROCESSOR</strong>
|
|
539
|
+
</p>
|
|
540
|
+
|
|
541
|
+
<blockquote>
|
|
542
|
+
<p>Si la valeur est "yes" ou "true", ajoute une entête
|
|
543
|
+
"X-Post-Processor" avec le nom et la version du
|
|
544
|
+
programme. Laissez vide ou notez explicitement "no" ou
|
|
545
|
+
"false" afin d'éviter la création de l'entête. Ce réglage
|
|
546
|
+
est indépendant de la présence ou absence d'autres
|
|
547
|
+
entêtes supplémentaires et ne peut pas être manipulé dans
|
|
548
|
+
le dialog graphique avant l'envoi d'un message, seulement
|
|
549
|
+
dans le fichier de configuration.</p>
|
|
550
|
+
|
|
551
|
+
<p>CONTENU : yes, YES, True, no, NO, vide, False et
|
|
552
|
+
variations.</p>
|
|
553
|
+
|
|
554
|
+
<p>PAR DÉFAUT : Vide</p>
|
|
555
|
+
|
|
556
|
+
<p>EXEMPLE : Yes</p>
|
|
557
|
+
</blockquote>
|
|
558
|
+
|
|
520
559
|
<p><strong>NO_ARCHIVE_GROUPS</strong>
|
|
521
560
|
</p>
|
|
522
561
|
|
|
@@ -682,7 +721,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
682
721
|
|
|
683
722
|
<p>PAR DÉFAUT : yes</p>
|
|
684
723
|
|
|
685
|
-
<p>EXEMPLE: No</p>
|
|
724
|
+
<p>EXEMPLE : No</p>
|
|
686
725
|
</blockquote>
|
|
687
726
|
|
|
688
727
|
<p><strong>USE_OLD</strong>
|
|
@@ -699,14 +738,49 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
699
738
|
<p>Ne changez pas cette variable ou notez la valeur
|
|
700
739
|
'false' afin d'ignorer les changements de l'objet.</p>
|
|
701
740
|
|
|
702
|
-
<p>PAR
|
|
741
|
+
<p>PAR DÉFAUT : false</p>
|
|
703
742
|
|
|
704
|
-
<p>EXEMPLE: yes</p>
|
|
743
|
+
<p>EXEMPLE : yes</p>
|
|
744
|
+
</blockquote>
|
|
745
|
+
|
|
746
|
+
<p id="draft-dir"><strong>DRAFT_DIR</strong>
|
|
747
|
+
</p>
|
|
748
|
+
|
|
749
|
+
<blockquote>
|
|
750
|
+
<p>Chemin d'accès au répertoire contenant les brouillons
|
|
751
|
+
de messages.</p>
|
|
752
|
+
|
|
753
|
+
<p>Vous pouvez activer l'option <em>DRAFT_ONLY</em> dans
|
|
754
|
+
la boîte de <cite>Dialogue pour désactiver des
|
|
755
|
+
options</cite>. Le message en cours sera alors enregistré
|
|
756
|
+
dans ce répertoire, <strong>au lieu d'être
|
|
757
|
+
publié</strong> sur Usenet. Si vous ne renseignez pas
|
|
758
|
+
cette option, un répertoire temporaire ($TEMP) sera
|
|
759
|
+
utilisé à la place. Les fichiers de brouillon seront
|
|
760
|
+
nommés selon le schéma suivant :</p>
|
|
761
|
+
|
|
762
|
+
<blockquote>
|
|
763
|
+
<p>[n][1er_groupe][++].draft</p>
|
|
764
|
+
</blockquote>
|
|
765
|
+
|
|
766
|
+
<p>où <em>n</em> correspond au nombre de fichiers dans ce
|
|
767
|
+
répertoire, <em>1er_groupe</em> au premier groupe de
|
|
768
|
+
discussion auquel le message était adressé et <em>++</em>
|
|
769
|
+
à un suffixe facultatif, indiquant qu’il y a d’autres
|
|
770
|
+
groupes de discussion dans la liste (publication
|
|
771
|
+
croisée). Le contenu d’un fichier brouillon correspond au
|
|
772
|
+
corps actuel du message, précédé de la liste des groupes
|
|
773
|
+
de discussion.</p>
|
|
774
|
+
|
|
775
|
+
<p>PAR DÉFAUT : vide</p>
|
|
776
|
+
|
|
777
|
+
<p>EXEMPLE : ~/flnews_brouillons</p>
|
|
705
778
|
</blockquote>
|
|
706
779
|
</section>
|
|
707
780
|
</section>
|
|
708
781
|
|
|
709
|
-
<section id="autres-informations">
|
|
782
|
+
<section id="autres-informations-1">
|
|
783
|
+
<span id="autres-informations"></span>
|
|
710
784
|
<h2>Autres Informations</h2>
|
|
711
785
|
|
|
712
786
|
<section id="changement-de-l-objet-1">
|
|
@@ -908,7 +982,18 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
908
982
|
"https://creativecommons.org/licenses/by-nd/4.0/deed.fr">CC
|
|
909
983
|
BY-ND 4.0</a></p>
|
|
910
984
|
|
|
911
|
-
<p>Date: 2026-
|
|
985
|
+
<p>Date: 2026-09-22</p>
|
|
986
|
+
|
|
987
|
+
<p>On peut accéder aux pages de manuel de la manière
|
|
988
|
+
habituelle, en exécutant <em>man</em>
|
|
989
|
+
<strong>flnews_post_proc</strong>, <strong>si</strong> le
|
|
990
|
+
gem <a class="reference external" href=
|
|
991
|
+
"https://rubygems.org/gems/manpages">manpages</a> est
|
|
992
|
+
installé. Au départ, l'exécution de <em>gem manpages
|
|
993
|
+
--update-all</em> garantira que les pages de manuel de tous
|
|
994
|
+
les paquets qui fournissent une telle documentation soient
|
|
995
|
+
copiées aux emplacements par défaut des pages de
|
|
996
|
+
manuel.</p>
|
|
912
997
|
|
|
913
998
|
<p><strong>Ω</strong>
|
|
914
999
|
</p>
|
|
@@ -917,7 +1002,7 @@ alt.fr.test: /home/[utilisateur]/.signatures</pre>
|
|
|
917
1002
|
</main>
|
|
918
1003
|
|
|
919
1004
|
<div id='page_dt'>
|
|
920
|
-
2026-
|
|
1005
|
+
2026-09-22
|
|
921
1006
|
</div>
|
|
922
1007
|
</body>
|
|
923
1008
|
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -5,6 +5,8 @@ flnews_post_proc
|
|
|
5
5
|
=======================
|
|
6
6
|
|
|
7
7
|
.. |program| replace:: **flnews_post_proc**
|
|
8
|
+
.. _CC By-ND 4.0: https://creativecommons.org/licenses/by-nd/4.0/deed.fr
|
|
9
|
+
.. _manpages: https://rubygems.org/gems/manpages
|
|
8
10
|
|
|
9
11
|
------------------------------------------
|
|
10
12
|
Post-Traitement pour flnews
|
|
@@ -142,6 +144,15 @@ Vous **ne pouvez pas** activer des options qui n'ont pas été activées au pré
|
|
|
142
144
|
|
|
143
145
|
* L'écriture d'un protocole peut être arrêtée.
|
|
144
146
|
|
|
147
|
+
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 :
|
|
148
|
+
|
|
149
|
+
* Le message en cours peut être enregistré comme brouillon, au lieu d'être publié sur Usenet.
|
|
150
|
+
|
|
151
|
+
Si votre configuration contient le chemin d'accès à un répertoire destiné à ces
|
|
152
|
+
brouillons (option *DRAFT_DIR*), celui-ci sera utilisé pour stocker ces
|
|
153
|
+
brouillons ; sinon, c'est le répertoire temporaire défini par la variable
|
|
154
|
+
d'environnement *$TEMP* qui sera utilisé.
|
|
155
|
+
|
|
145
156
|
En tapant Esc ou en poussant le bouton « Annuler » du dialogue, vous pouvez
|
|
146
157
|
interrompre le processus, flnews ne va pas envoyer l'article.
|
|
147
158
|
|
|
@@ -271,6 +282,22 @@ Options de configuration
|
|
|
271
282
|
- 'X-My-Header: nothing fancy'
|
|
272
283
|
- 'X-Another-Header: care not!'
|
|
273
284
|
|
|
285
|
+
**NAME_POSTPROCESSOR**
|
|
286
|
+
|
|
287
|
+
Si la valeur est "yes" ou "true", ajoute une entête "X-Post-Processor" avec
|
|
288
|
+
le nom et la version du programme. Laissez vide ou notez explicitement "no"
|
|
289
|
+
ou "false" afin d'éviter la création de l'entête.
|
|
290
|
+
Ce réglage est indépendant de la présence ou absence d'autres entêtes
|
|
291
|
+
supplémentaires et ne peut pas être manipulé dans le dialog graphique avant
|
|
292
|
+
l'envoi d'un message, seulement dans le fichier de configuration.
|
|
293
|
+
|
|
294
|
+
CONTENU : yes, YES, True, no, NO, vide, False et variations.
|
|
295
|
+
|
|
296
|
+
PAR DÉFAUT : Vide
|
|
297
|
+
|
|
298
|
+
EXEMPLE : Yes
|
|
299
|
+
|
|
300
|
+
|
|
274
301
|
**NO_ARCHIVE_GROUPS**
|
|
275
302
|
|
|
276
303
|
Les newsgroups, où les entêtes « Archive: no » et « X-No-Archive: yes »
|
|
@@ -393,7 +420,7 @@ Options de configuration
|
|
|
393
420
|
|
|
394
421
|
PAR DÉFAUT : yes
|
|
395
422
|
|
|
396
|
-
EXEMPLE: No
|
|
423
|
+
EXEMPLE : No
|
|
397
424
|
|
|
398
425
|
**USE_OLD**
|
|
399
426
|
|
|
@@ -404,10 +431,36 @@ Options de configuration
|
|
|
404
431
|
Ne changez pas cette variable ou notez la valeur 'false' afin d'ignorer
|
|
405
432
|
les changements de l'objet.
|
|
406
433
|
|
|
407
|
-
PAR
|
|
434
|
+
PAR DÉFAUT : false
|
|
408
435
|
|
|
409
|
-
EXEMPLE: yes
|
|
436
|
+
EXEMPLE : yes
|
|
410
437
|
|
|
438
|
+
.. _DRAFT_DIR:
|
|
439
|
+
|
|
440
|
+
**DRAFT_DIR**
|
|
441
|
+
|
|
442
|
+
Chemin d'accès au répertoire contenant les brouillons de messages.
|
|
443
|
+
|
|
444
|
+
Vous pouvez activer l'option *DRAFT_ONLY* dans la boîte de `Dialogue pour
|
|
445
|
+
désactiver des options`. Le message en cours sera alors enregistré dans ce
|
|
446
|
+
répertoire, **au lieu d'être publié** sur Usenet. Si vous ne renseignez pas
|
|
447
|
+
cette option, un répertoire temporaire ($TEMP) sera utilisé à la place. Les
|
|
448
|
+
fichiers de brouillon seront nommés selon le schéma suivant :
|
|
449
|
+
|
|
450
|
+
[n][1er_groupe][++].draft
|
|
451
|
+
|
|
452
|
+
où *n* correspond au nombre de fichiers dans ce répertoire, *1er_groupe* au
|
|
453
|
+
premier groupe de discussion auquel le message était adressé et *++* à un
|
|
454
|
+
suffixe facultatif, indiquant qu’il y a d’autres groupes de discussion dans
|
|
455
|
+
la liste (publication croisée). Le contenu d’un fichier brouillon
|
|
456
|
+
correspond au corps actuel du message, précédé de la liste des groupes de
|
|
457
|
+
discussion.
|
|
458
|
+
|
|
459
|
+
PAR DÉFAUT : vide
|
|
460
|
+
|
|
461
|
+
EXEMPLE : ~/flnews_brouillons
|
|
462
|
+
|
|
463
|
+
.. _Autres Informations:
|
|
411
464
|
|
|
412
465
|
Autres Informations
|
|
413
466
|
===================
|
|
@@ -526,7 +579,7 @@ Auteur
|
|
|
526
579
|
|
|
527
580
|
Ce document
|
|
528
581
|
-------------
|
|
529
|
-
|
|
582
|
+
|
|
530
583
|
.. |date| date::
|
|
531
584
|
|
|
532
585
|
©Michael Uplawski <michael.uplawski@uplawski.eu>
|
|
@@ -535,4 +588,11 @@ License: `CC BY-ND 4.0`_
|
|
|
535
588
|
|
|
536
589
|
Date: |date|
|
|
537
590
|
|
|
591
|
+
|
|
592
|
+
On peut accéder aux pages de manuel de la manière habituelle, en exécutant
|
|
593
|
+
*man* |program|, **si** le gem `manpages`_ est installé. Au départ,
|
|
594
|
+
l'exécution de *gem manpages --update-all* garantira que les pages de manuel
|
|
595
|
+
de tous les paquets qui fournissent une telle documentation soient copiées
|
|
596
|
+
aux emplacements par défaut des pages de manuel.
|
|
597
|
+
|
|
538
598
|
**Ω**
|
|
@@ -485,6 +485,26 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
485
485
|
- 'X-Another-Header: care not!'</pre>
|
|
486
486
|
</blockquote>
|
|
487
487
|
|
|
488
|
+
<p><strong>NAME_POSTPROCESSOR</strong>
|
|
489
|
+
</p>
|
|
490
|
+
|
|
491
|
+
<blockquote>
|
|
492
|
+
<p>Can be used to set a custom header "X-Post-Processor"
|
|
493
|
+
with the name of the program and its current version.
|
|
494
|
+
Leave empty or set to no or false to avoid the creation
|
|
495
|
+
of this header. This setting is independent of the
|
|
496
|
+
presence or absence of other custom headers and cannot be
|
|
497
|
+
manipulated in the Override Dialog, only in the
|
|
498
|
+
configuration file.</p>
|
|
499
|
+
|
|
500
|
+
<p>CONTENT: yes, YES, True, no, NO, empty string, False
|
|
501
|
+
and variations.</p>
|
|
502
|
+
|
|
503
|
+
<p>DEFAULT: Empty</p>
|
|
504
|
+
|
|
505
|
+
<p>EXAMPLE: Yes</p>
|
|
506
|
+
</blockquote>
|
|
507
|
+
|
|
488
508
|
<p><strong>NO_ARCHIVE_GROUPS</strong>
|
|
489
509
|
</p>
|
|
490
510
|
|
|
@@ -866,9 +886,18 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
866
886
|
"https://creativecommons.org/licenses/by-nd/4.0/">CC
|
|
867
887
|
BY-ND 4.0</a></p>
|
|
868
888
|
|
|
869
|
-
<p>Date: 2026-
|
|
889
|
+
<p>Date: 2026-09-22</p>
|
|
870
890
|
</blockquote>
|
|
871
891
|
|
|
892
|
+
<p>The man page can be accessed in the ordinary way, by
|
|
893
|
+
executing <em>man</em> <strong>flnews_post_proc</strong>,
|
|
894
|
+
<strong>if</strong> the <a class="reference external" href=
|
|
895
|
+
"https://rubygems.org/gems/manpages">manpages</a> gem is
|
|
896
|
+
installed. Initially, executing <em>gem manpages
|
|
897
|
+
--update-all</em> will ensure that the man pages for all
|
|
898
|
+
packages which provide such documentation are copied to the
|
|
899
|
+
default locations for man pages.</p>
|
|
900
|
+
|
|
872
901
|
<p><strong>Ω</strong>
|
|
873
902
|
</p>
|
|
874
903
|
</section>
|
|
@@ -876,7 +905,7 @@ comp.*: /home/[user]/.my_sigs</pre>
|
|
|
876
905
|
</main>
|
|
877
906
|
|
|
878
907
|
<div id='page_dt'>
|
|
879
|
-
2026-
|
|
908
|
+
2026-09-22
|
|
880
909
|
</div>
|
|
881
910
|
</body>
|
|
882
911
|
</html>
|