Updated documentation and logging for an obsolete option switch

This commit is contained in:
Michiel Broek 2005-08-26 18:26:38 +00:00
parent 531cfcd22b
commit fcc97c6b06
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<div align=right><h5>Last update 07-Aug-2002</h5></div> <div align=right><h5>Last update 26-Aug-2005</h5></div>
<div align=center><H1>mbfido, the fidonet mail and files processor.</H1></div> <div align=center><H1>mbfido, the fidonet mail and files processor.</H1></div>
<h3>Synopsis.</H3> <h3>Synopsis.</H3>
@ -247,9 +247,6 @@ This switch doesn't work with the news command, only for echomail and tic files.
Quiet mode, all output to the current tty is supressed. Use this flag if Quiet mode, all output to the current tty is supressed. Use this flag if
you toss mail from a script (started by cron) after mail is received. you toss mail from a script (started by cron) after mail is received.
<P> <P>
<code><strong>mbfido</strong> toss -a</code> Toss mail and allow to autocreate
new message areas. See the <A HREF="../setup/emareas.html"> message area setup</A>
how to set this up.
<code><strong>mbfido</strong> toss -unsecure</code> <code><strong>mbfido</strong> toss -unsecure</code>
Toss mail without checking if the echomail is for your own system en without Toss mail without checking if the echomail is for your own system en without
checking if the sending node is connected to your system. Nodes who are checking if the sending node is connected to your system. Nodes who are

View File

@ -64,6 +64,7 @@
#define UNPACK_FACTOR 300 #define UNPACK_FACTOR 300
int do_obs_a = FALSE; /* Obsolete command used */
int do_areas = FALSE; /* Process area taglists */ int do_areas = FALSE; /* Process area taglists */
int do_toss = FALSE; /* Toss flag */ int do_toss = FALSE; /* Toss flag */
int do_scan = FALSE; /* Scan flag */ int do_scan = FALSE; /* Scan flag */
@ -461,7 +462,7 @@ int main(int argc, char **argv)
else if (strncmp(tl(argv[i]), "-q", 2) == 0) else if (strncmp(tl(argv[i]), "-q", 2) == 0)
do_quiet = TRUE; do_quiet = TRUE;
else if (strncmp(tl(argv[i]), "-a", 2) == 0) else if (strncmp(tl(argv[i]), "-a", 2) == 0)
WriteError("The -a option is obsolete, adjust your setup"); do_obs_a = TRUE;
else if (strncmp(tl(argv[i]), "-unp", 4) == 0) else if (strncmp(tl(argv[i]), "-unp", 4) == 0)
do_unprot = TRUE; do_unprot = TRUE;
else if (strncmp(tl(argv[i]), "-uns", 4) == 0) else if (strncmp(tl(argv[i]), "-uns", 4) == 0)
@ -495,6 +496,8 @@ int main(int argc, char **argv)
Syslog(' ', "MBFIDO v%s", VERSION); Syslog(' ', "MBFIDO v%s", VERSION);
Syslog(' ', cmd); Syslog(' ', cmd);
free(cmd); free(cmd);
if (do_obs_a)
WriteError("The -a option is obsolete, adjust your setup");
/* /*
* Not yet locked, if anything goes wrong, exit with die(MBERR_NO_PROGLOCK) * Not yet locked, if anything goes wrong, exit with die(MBERR_NO_PROGLOCK)