Add conversion script for old status files.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
de5163c877
commit
c969b7c2c1
2 changed files with 17 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
yapfaq 1.1.0 (unreleased)
|
||||
* --test: Set Supersedes and don't modify Message-ID if -o is set.
|
||||
* --test: Force -o if -n is not set.
|
||||
* Add conversion script for old status files.
|
||||
|
||||
yapfaq 1.0.1 (2025-01-24)
|
||||
* Add %t placeholder for Message-ID (feature parity with 0.9).
|
||||
|
|
|
|||
16
contrib/convert.pl
Executable file
16
contrib/convert.pl
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#! /usr/bin/perl -w
|
||||
#
|
||||
# Convert pre-1.0 yapfaq status file to new format
|
||||
#
|
||||
# Usage: convert.pl < old.txt.cfg > new.cfg
|
||||
|
||||
while (<>) {
|
||||
if (/Lastpost/) {
|
||||
$_ =~ /Lastpost:\s(\d\d?\.\d\d?\.\d\d\d\d)/;
|
||||
print "Last-Posted: $1\n";
|
||||
}
|
||||
if (/LastMID/) {
|
||||
$_ =~ /LastMID:\s(<[^>]+>)/;
|
||||
print "Last-Message-ID: $1\n";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue