# You may override the default .rc file (.yapfaqrc) by using "-c .rc file"
my $RCFile = '.yapfaqrc';
# Valid configuration variables for use in a .rc file
-my @ValidConfVars = ('NNTPServer','NNTPUser','NNTPPass','Sender','ConfigFile');
+my @ValidConfVars = ('NNTPServer','NNTPUser','NNTPPass','Sender','ConfigFile','Program');
################################### Defaults ###################################
# Please do not change anything in here!
NNTPUser => "",
NNTPPass => "",
Sender => "",
- ConfigFile => "yapfaq.cfg");
+ ConfigFile => "yapfaq.cfg",
+ Program => "");
################################# Main program #################################
warn "$0: W: .rc file $RCFile does not exist!\n";
}
+$Options{'s'} = $Config{'Program'} if (!defined($Options{'s'}));
+
# read configuration (configured FAQs)
my @Config;
readconfig (\$Config{'ConfigFile'}, \@Config, \$Faq);
The configuration file defining the FAQ(s) to post. Must be set (or
omitted; the default is "yapfaq.cfg").
+=item B<Program> = I<file name> (optional)
+
+A program the article is piped to instead of posting it to Usenet.
+See option "-f" below (which takes preference).
+
+This setting is optional.
+
=back
=head3 Example runtime configuration file
NNTPPass = ''
Sender = ''
ConfigFile = 'yapfaq.cfg'
+ Program = ''
=head3 Using more than one runtime configuration
or the much more powerful replacement I<tinews.pl> from
I<ftp://ftp.tin.org/tin/tools/tinews.pl> which is able to sign postings.
+If I<Program> is also defined in the runtime configuration file (by default
+F<.yapfaqrc>), B<-s> takes preference.
+
=item B<-c> I<.rc file>
Load another runtime configuration file (.rc file) than F<.yaofaq.rc>.