diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-01-18 06:04:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-01-18 06:04:54 +0000 |
commit | d71cb2abc85c55777928ce3f4084360101c9e2e6 (patch) | |
tree | fde622ce6620b0fb53e7b3065924491171583803 /options.c | |
parent | d1852f76ae3d7e7487ca4cf43f49bf91c5b3fcab (diff) | |
download | fetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.tar.gz fetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.tar.bz2 fetchmail-d71cb2abc85c55777928ce3f4084360101c9e2e6.zip |
Added smtpaddress option.
svn path=/trunk/; revision=1592
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -44,16 +44,17 @@ #define LA_LIMIT 26 #define LA_FOLDER 27 #define LA_SMTPHOST 28 -#define LA_BATCHLIMIT 29 -#define LA_FETCHLIMIT 30 -#define LA_EXPUNGE 31 -#define LA_MDA 32 -#define LA_INTERFACE 33 -#define LA_MONITOR 34 -#define LA_YYDEBUG 35 -#define LA_QVIRTUAL 36 +#define LA_SMTPADDR 29 +#define LA_BATCHLIMIT 30 +#define LA_FETCHLIMIT 31 +#define LA_EXPUNGE 32 +#define LA_MDA 33 +#define LA_INTERFACE 34 +#define LA_MONITOR 35 +#define LA_YYDEBUG 36 +#define LA_QVIRTUAL 37 -/* options still left: CDgGhHjJoORTUwWxXYzZ */ +/* options still left: CgGhHjJoORTUwWxXYzZ */ static const char *shortoptions = "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:b:B:e:m:I:M:y"; @@ -94,6 +95,8 @@ static const struct option longoptions[] = { {"folder", required_argument, (int *) 0, LA_FOLDER }, {"smtphost", required_argument, (int *) 0, LA_SMTPHOST }, + {"smtpaddress", required_argument, (int *) 0, LA_SMTPADDR }, + {"batchlimit",required_argument, (int *) 0, LA_BATCHLIMIT }, {"fetchlimit",required_argument, (int *) 0, LA_FETCHLIMIT }, {"expunge", required_argument, (int *) 0, LA_EXPUNGE }, @@ -298,6 +301,10 @@ struct query *ctl; /* option record to be initialized */ ((cp = strtok((char *)NULL, ","))); ocount++; break; + case 'D': + case LA_SMTPADDR: + ctl->smtpaddress = xstrdup(optarg); + break; case 'b': case LA_BATCHLIMIT: c = atoi(optarg); @@ -390,6 +397,7 @@ struct query *ctl; /* option record to be initialized */ fputs(" -l, --limit don't fetch messages over given size\n", stderr); fputs(" -S, --smtphost set SMTP forwarding host\n", stderr); + fputs(" -D, --smtpaddress set SMTP delivery domain to use\n", stderr); fputs(" -b, --batchlimit set batch limit for SMTP connections\n", stderr); fputs(" -B, --fetchlimit set fetch limit for server connections\n", stderr); fputs(" -e, --expunge set max deletions between expunges\n", stderr); |