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>
* 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>
* 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>
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>
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>
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>