diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-02 03:06:13 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-02 03:06:13 +0000 |
commit | b5ce06b90ea4283596a70458d72b474bcc9d24da (patch) | |
tree | 3d258bde9cb3a95f2b0c8dcd08dd1bd242ce770a /options.c | |
parent | 1fcf9c01862b261c150dd0c55519699fec23615c (diff) | |
download | fetchmail-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.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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); |