Commit graph

30 commits

Author SHA1 Message Date
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 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 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 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
Thomas Hochstein 7aaba0e0ae Update header/introduction, bump version/copyright information.
Fix typo/language in header/introduction.
Add new author / copyright information.
Bump version to 0.6-unreleased.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-21 18:51:39 +01:00
Thomas Hochstein 8e1cb154c3 Fix: Accept case-insensitive Last-modified pseudo header.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-21 18:39:05 +01:00
Thomas Hochstein 15dd764aad Don't use PGP by default.
Change default: Do not sign by default.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-21 18:38:27 +01:00
Thomas Hochstein dc88d13997 Initial commit.
Check-in of original author's version.
Original author is Marc Brockschmidt <marc@marcbrockschmidt.de>.
Last change: 2003-02-16

Signed-off-by: Thomas Hochstein <thh@inter.net>
2010-02-20 17:03:56 +01:00