diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 10:52:51 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-21 10:52:51 +0000 |
commit | cc0f8a09d93ed7093792a23218177c141b34f0c2 (patch) | |
tree | 34ae54133584cb0d5b558bc4a5c0858ebe21209d /options.c | |
parent | 330d0365531e63bd8fb86c3df7e96f6667748242 (diff) | |
download | fetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.tar.gz fetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.tar.bz2 fetchmail-cc0f8a09d93ed7093792a23218177c141b34f0c2.zip |
Add full support for --service option.
svn path=/trunk/; revision=4307
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -87,10 +87,9 @@ #define LA_FETCHSIZELIMIT 61 #define LA_FASTUIDL 62 - /* don't use 63-122: they could clash with short options */ - #define LA_LIMITFLUSH 128 +#define LA_SERVICE 129 /* options still left: CDgGhHjJoORwWxXYz */ static const char *shortoptions = @@ -120,6 +119,7 @@ static const struct option longoptions[] = { {"proto", required_argument, (int *) 0, LA_PROTOCOL }, {"uidl", no_argument, (int *) 0, LA_UIDL }, {"port", required_argument, (int *) 0, LA_PORT }, + {"service", required_argument, (int *) 0, LA_SERVICE }, {"auth", required_argument, (int *) 0, LA_AUTH}, {"timeout", required_argument, (int *) 0, LA_TIMEOUT }, {"envelope", required_argument, (int *) 0, LA_ENVELOPE }, @@ -387,6 +387,7 @@ struct query *ctl; /* option record to be initialized */ break; case 'P': case LA_PORT: + case LA_SERVICE: ctl->server.service = optarg; break; case LA_AUTH: @@ -680,7 +681,8 @@ struct query *ctl; /* option record to be initialized */ P(GT_(" -p, --protocol specify retrieval protocol (see man page)\n")); P(GT_(" -U, --uidl force the use of UIDLs (pop3 only)\n")); - P(GT_(" -P, --port TCP/IP service port to connect to\n")); + P(GT_(" -P, --port TCP port to connect to (obsolete, use --service)\n")); + P(GT_(" --service TCP service to connect to (can be numeric TCP port)\n")); P(GT_(" --auth authentication type (password/kerberos/ssh/otp)\n")); P(GT_(" -t, --timeout server nonresponse timeout\n")); P(GT_(" -E, --envelope envelope address header\n")); |