Commit graph

13 commits

Author SHA1 Message Date
Thomas Hochstein a0605478dd Merge branch 'Options'
Conflicts:
	yapfaq.pl
2010-02-25 19:22:15 +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
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