diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-04 17:58:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-04 17:58:17 +0000 |
commit | 50b3d54cadeda8be3e837358f43e0e9b904d091a (patch) | |
tree | 053b6784c6706e60e870986e78c52b1085a7f09d /options.c | |
parent | c6a786da423edc936db3d62e00ce2dc06b2e2a44 (diff) | |
download | fetchmail-50b3d54cadeda8be3e837358f43e0e9b904d091a.tar.gz fetchmail-50b3d54cadeda8be3e837358f43e0e9b904d091a.tar.bz2 fetchmail-50b3d54cadeda8be3e837358f43e0e9b904d091a.zip |
Restore --mda, with cleaner implementation this time.
svn path=/trunk/; revision=214
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -33,13 +33,14 @@ #define LA_REMOTEFILE 13 #define LA_PORT 14 #define LA_SMTPHOST 15 -#define LA_LOGFILE 16 -#define LA_QUIT 17 -#define LA_NOREWRITE 18 -#define LA_HELP 19 -#define LA_YYDEBUG 20 +#define LA_MDA 16 +#define LA_LOGFILE 17 +#define LA_QUIT 18 +#define LA_NOREWRITE 19 +#define LA_HELP 20 +#define LA_YYDEBUG 21 -static char *shortoptions = "PVaKkvS:sFd:f:u:r:L:qN?"; +static char *shortoptions = "PVaKkvS:m:sFd:f:u:r:L:qN?"; static struct option longoptions[] = { {"version", no_argument, (int *) 0, LA_VERSION }, {"all", no_argument, (int *) 0, LA_ALL }, @@ -57,6 +58,7 @@ static struct option longoptions[] = { {"remote", required_argument, (int *) 0, LA_REMOTEFILE }, {"port", required_argument, (int *) 0, LA_PORT }, {"smtphost", required_argument, (int *) 0, LA_SMTPHOST }, + {"mda", required_argument, (int *) 0, LA_MDA }, {"logfile", required_argument, (int *) 0, LA_LOGFILE }, {"quit", no_argument, (int *) 0, LA_QUIT }, {"norewrite", no_argument, (int *) 0, LA_NOREWRITE }, @@ -172,6 +174,10 @@ struct hostrec *queryctl; case LA_REMOTEFILE: strncpy(queryctl->remotefolder,optarg,sizeof(queryctl->remotefolder)-1); break; + case 'm': + case LA_MDA: + strncpy(queryctl->mda,optarg,sizeof(queryctl->mda)); + break; case 'P': case LA_PORT: queryctl->port = atoi(optarg); |