Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
efe91b09
...
efe91b09111eadace7845bd35d02e825a1adb3b5
authored
2002-02-14 09:19:55 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Removed confusing print_help() function.
1 parent
b1fe0e48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
35 deletions
mail.local/main.c
mail.local/main.c
View file @
efe91b0
...
...
@@ -28,9 +28,6 @@ int lock_timeout = 300;
#define MAXFD 64
#define EX_QUOTA() (ex_quota_tempfail ? EX_TEMPFAIL : EX_UNAVAILABLE)
static
void
print_help
(
void
);
static
void
print_license
(
void
);
static
void
print_version
(
void
);
void
close_fds
();
int
switch_user_id
(
uid_t
uid
);
FILE
*
make_tmp
(
const
char
*
from
,
char
**
tempfile
);
...
...
@@ -183,7 +180,10 @@ main (int argc, char *argv[])
argv
+=
arg_index
;
if
(
!
argc
)
print_help
();
{
mu_error
(
"Missing arguments. Try --help for more info"
);
return
EX_USAGE
;
}
maildir
=
mu_normalize_maildir
(
maildir
);
if
(
!
maildir
)
...
...
@@ -730,37 +730,7 @@ guess_retval (int ec)
exit_code
=
EX_UNAVAILABLE
;
}
void
print_help
()
{
static
char
help_message
[]
=
"Usage: mail.local [OPTIONS] recipient [recipient...]
\n
"
"Options are:
\n
"
" -f, --from ADDR Specify the sender's name
\n
"
" -h, --help Display this help and exit
\n
"
" -L, --license Display GNU General Public License
\n
"
" -m, --maildir PATH Specify path to mailspool directory
\n
"
#ifdef USE_DBM
" -q, --quota-db FILE Specify path to quota database.
\n
"
#endif
#ifdef WITH_GUILE
" -s, --source PATTERN Set name pattern for user-defined mail filters.
\n
"
#endif
" -t, --timeout NUMBER Set timeout for acquiring the lockfile
\n
"
#ifdef WITH_GUILE
" -x, --debug guile Start with guile debugging evaluator and backtraces
\n
"
#endif
" -x, --debug NUMBER Set debugging level
\n
"
" -v, --version Display program version and exit.
\n
"
" --ex-multiple-delivery-success Don't return errors when delivering to
\n
"
" multiple recipients
\n
"
" --ex-quota-tempfail Return temporary failure if disk or mailbox quota
\n
"
" is exceeded
\n
"
"
\n
Report bugs to bug-mailutils@gnu.org
\n
"
;
printf
(
"%s"
,
help_message
);
exit
(
0
);
}
...
...
Please
register
or
sign in
to post a comment