Thomas Hochstein
dc66bfa3f5
Bump version (0.9-prelease).
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-14 22:15:31 +02:00
Thomas Hochstein
994d975969
Release 0.8.1 (Maintenance Release)
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-14 22:04:00 +02:00
Thomas Hochstein
ba8ae1cfe5
Fix broken implementation of "Program" in .yapfaqrc.
...
Fixes #4 .
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-14 21:58:15 +02:00
Thomas Hochstein
cdfec198d6
Release 0.8
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-13 22:00:21 +02:00
Thomas Hochstein
2d8e5cdbc7
Documentation: Add Git repository and bug tracker.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-13 19:33:40 +02:00
Thomas Hochstein
bdbb9d7043
Making use of Getopt::Std's --help and --version.
...
Fixes #3 .
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-13 19:33:25 +02:00
Thomas Hochstein
39cb5672df
Add "Program" to .yapfaqrc.
...
Fixes #2 .
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-13 19:31:49 +02:00
Thomas Hochstein
0e741504fe
Drop PGP support.
...
You may use tinews.pl from
ftp://ftp.tin.org/tin/tools/tinews.pl instead.
Fixes #1 .
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-05-13 19:24:44 +02:00
Thomas Hochstein
8f067a2ffb
Fix: Consistency check for MID-Format fixed (regexp).
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
Fix.
2010-04-14 23:31:37 +02:00
Thomas Hochstein
13ce8c26a3
Add: MID-Format may now contain %t for a Unix timestamp.
...
%t will be replaced by the number of seconds since the epoch.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 23:31:23 +02:00
Thomas Hochstein
605916ef61
Add comments pointing to .yapfaqrc to source.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 10:10:28 +02:00
Thomas Hochstein
9817f98a91
Fix: Add "-V", NNTPSERVER to documentation, add more examples.
...
Added examples for -s and -c.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 10:02:48 +02:00
Thomas Hochstein
b802358a60
readconfig(): Add file name to verbose output.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 09:38:23 +02:00
Thomas Hochstein
7ef63844b5
Reset default for NNTPServer to "unset".
...
Since yapfaq fill fall back to Perl's build-in defaults,
that should be no problem; furthermore user may now
override this setting via .yapfaqrc without changing
the code.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 09:11:45 +02:00
Thomas Hochstein
e16539c99c
Change sample yapfaq.cfg (mark optional settings).
...
Optional settings are mostly commented out.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 09:10:05 +02:00
Thomas Hochstein
647af2ea07
Bump version (0.8-prelease).
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 09:07:19 +02:00
Thomas Hochstein
ace701c4a6
Release 0.7
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-14 08:00:30 +02:00
Thomas Hochstein
ac69c3ee90
readconfig(): Make mid-format optional.
...
Set defaults for expires and mid-format when they're invalid
(defaults were already set in postfaq() if undefined).
Change documentation accordingly; make it more clear if
parameters are optional or mandatory.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-13 23:59:43 +02:00
Thomas Hochstein
2ef9b9cd23
Fix: Wrong text for content check (configuration file).
...
Check for Message-ID had text from check for Expires.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-12 00:20:48 +02:00
Thomas Hochstein
5a6670c7ff
Fix: Save status information only after successful posting.
...
* New Function: updatestaus
Move status information save to updatestatus.
* post() now returns exit code.
* postfaq() will update status information only
when post() was successful.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-11 23:23:12 +02:00
Thomas Hochstein
227afd47f6
Update documentation for .rcfile.
...
Add the according sections to the POD documentation.
Fix some wording.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 22:07:18 +02:00
Thomas Hochstein
86c0a10044
Add option '-c': define another .rcfile.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 22:07:08 +02:00
Thomas Hochstein
6f235aca38
Add sample .yapfaqrc with defaults.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 22:06:59 +02:00
Thomas Hochstein
d60c2d5fdf
Add rcfile (.yapfaqrc) for configuration.
...
All configuration data is read from .yapfaqrc
with defaults set in yapfaq.pl
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 22:06:49 +02:00
Thomas Hochstein
2507947f17
Moved configuration to a hash (%Config).
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 22:05:40 +02:00
Thomas Hochstein
b855559ee3
Add option '-s': pipe article to script.
...
Use an external program to post - or otherwise handle -
the article.
Amend documentation.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 02:14:59 +02:00
Thomas Hochstein
55bfbd3cde
-t CONSOLE: Change delimiter.
...
No leading \n is necessary.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 01:43:19 +02:00
Thomas Hochstein
b955062245
Add some more comments.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 01:42:25 +02:00
Thomas Hochstein
a052296f3b
Add option '-V': print version and copyright information.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 01:05:55 +02:00
Thomas Hochstein
ae3b1b7906
-h: Replace version/usage information with man page.
...
Feed script to perldoc when called with -h.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 01:05:25 +02:00
Thomas Hochstein
d69ba0bb34
Change: Authenticate only if $NNTPUser is set.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-10 00:49:24 +02:00
Thomas Hochstein
dbca4ad8a1
Add checks for mandatory content in configuration file.
...
Enhance and optimize existing checks.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-08 08:33:01 +02:00
Thomas Hochstein
40847f71a0
Add check for MID-Format and fallback to FQDN.
...
Uses hostfqdn from Net::Domain.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-08 08:30:21 +02:00
Thomas Hochstein
366322b2c8
Code optimisation (verbose output).
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-04-08 08:00:04 +02:00
Thomas Hochstein
6b42155376
Release 0.6.2
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-26 09:33:32 +01:00
Thomas Hochstein
7823ece977
Fix default for Expires.
...
Bug introduced in v0.6.1.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-26 09:29:01 +01:00
Thomas Hochstein
fd0f4fcfae
Release 0.6.1
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-26 08:33:35 +01:00
Thomas Hochstein
5ddba442da
Fix: Test mode must not update status information.
...
Also fix runtime warning concerning expires.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-26 08:28:06 +01:00
Thomas Hochstein
afd3e33441
Release 0.6
...
Add changelog entries.
Bump version number.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 19:32:51 +01:00
Thomas Hochstein
c2cafcca00
Merge branch 'documentation'
2010-02-25 19:22:28 +01:00
Thomas Hochstein
a0605478dd
Merge branch 'Options'
...
Conflicts:
yapfaq.pl
2010-02-25 19:22:15 +01:00
Thomas Hochstein
272b024313
Add documentation in POD format.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 17:44:49 +01:00
Thomas Hochstein
0c6ebe7841
Add variable expiry.
...
* New Function: calcdelta
Move date calculation for new posting date to
calcdelta
* Add 'Expires' to yapfaq.cfg
Parse 'Expires'
Use calcdelta to calculate expiry.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 16:21:18 +01:00
Thomas Hochstein
4251e5451c
Add commandline options.
...
Using Getopt::Std.
Implement option '-h': display version and usage information.
Implement option '-v': Print progress information to STDOUT
on reading the configuration, skipping a FAQ, preparing it
for posting, posting it and writing status information to disk.
Implement option '-f': limit operation to the given project
name. Skip parsing all other information from yapfaq.cfg,
skip posting all other FAQs.
Add option '-d': 'dry run', simulation mode: nothing is posted.
Add option '-p': 'post anyway', files are unconditionally
posted irrespective of Posting-Frequency settings.
Add option '-t <newsgroups>': 'test mode', post to
(an)other newsgroup(s) given on the command line or to
STDOUT ('console').
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 16:19:02 +01:00
Thomas Hochstein
d196f6ed59
Cleanup on yapfaq.cfg
...
Reformat, translate to English language, add descriptions.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 16:16:49 +01:00
Thomas Hochstein
5f5909d225
Change: Default $NNTPServer to 'localhost'
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 15:15:57 +01:00
Thomas Hochstein
744071463a
Change: Add script name and Warning/Error to warn() and die() output.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-25 09:23:14 +01:00
Thomas Hochstein
1ee30cc37f
Add .gitignore.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-24 22:17:54 +01:00
Thomas Hochstein
114be30251
Change: Inform user when writing to ERROR.dat.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-21 19:14:15 +01:00
Thomas Hochstein
c2f107a55e
Change: Don't output line number if .cfg file can't be opened.
...
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-21 18:56:06 +01:00