aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-02 03:06:13 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-02 03:06:13 +0000
commitb5ce06b90ea4283596a70458d72b474bcc9d24da (patch)
tree3d258bde9cb3a95f2b0c8dcd08dd1bd242ce770a /options.c
parent1fcf9c01862b261c150dd0c55519699fec23615c (diff)
downloadfetchmail-b5ce06b90ea4283596a70458d72b474bcc9d24da.tar.gz
fetchmail-b5ce06b90ea4283596a70458d72b474bcc9d24da.tar.bz2
fetchmail-b5ce06b90ea4283596a70458d72b474bcc9d24da.zip
Lica Olivetti's qvirtual option.
svn path=/trunk/; revision=1465
Diffstat (limited to 'options.c')
-rw-r--r--options.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/options.c b/options.c
index fc610f6b..2a719bda 100644
--- a/options.c
+++ b/options.c
@@ -50,10 +50,11 @@
#define LA_INTERFACE 32
#define LA_MONITOR 33
#define LA_YYDEBUG 34
+#define LA_QVIRTUAL 35
-/* options still left: CDgGhHjJoOqQRTUwWxXYzZ */
+/* options still left: CDgGhHjJoORTUwWxXYzZ */
static const char *shortoptions =
- "?Vcsvd:NqL:f:i:p:UP:A:t:E:u:akKFnl:r:S:b:B:e:m:I:M:y";
+ "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:b:B:e:m:I:M:y";
static const struct option longoptions[] = {
/* this can be const because all flag fields are 0 and will never get set */
@@ -77,6 +78,7 @@ static const struct option longoptions[] = {
{"auth", required_argument, (int *) 0, LA_AUTHENTICATE},
{"timeout", required_argument, (int *) 0, LA_TIMEOUT },
{"envelope", required_argument, (int *) 0, LA_ENVELOPE },
+ {"qvirtual", required_argument, (int *) 0, LA_QVIRTUAL },
{"user", required_argument, (int *) 0, LA_USERNAME },
{"username", required_argument, (int *) 0, LA_USERNAME },
@@ -238,6 +240,10 @@ struct query *ctl; /* option record to be initialized */
case LA_ENVELOPE:
ctl->server.envelope = xstrdup(optarg);
break;
+ case 'Q':
+ case LA_QVIRTUAL:
+ ctl->server.qvirtual = xstrdup(optarg);
+ break;
case 'u':
case LA_USERNAME:
@@ -371,6 +377,7 @@ struct query *ctl; /* option record to be initialized */
fputs(" -A, --auth authentication type (password or kerberos)\n",stderr);
fputs(" -t, --timeout server nonresponse timeout\n",stderr);
fputs(" -E, --envelope envelope address header\n",stderr);
+ fputs(" -Q, --qvirtual prefix to remove from local user id\n",stderr);
fputs(" -u, --username specify users's login on server\n", stderr);
fputs(" -a, --all retrieve old and new messages\n", stderr);