aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-03-01 17:22:15 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-03-01 17:22:15 +0000
commit53039729f2d69520544423eef13c73422ca64c3b (patch)
tree74ea0d20cb79d0a964226741ae056f3ffa77544e /options.c
parentdeb0bafed2482b821c03a69860d4afeaef6f5342 (diff)
downloadfetchmail-53039729f2d69520544423eef13c73422ca64c3b.tar.gz
fetchmail-53039729f2d69520544423eef13c73422ca64c3b.tar.bz2
fetchmail-53039729f2d69520544423eef13c73422ca64c3b.zip
Allow --idle on the command line.
svn path=/branches/BRANCH_6-3/; revision=4704
Diffstat (limited to 'options.c')
-rw-r--r--options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/options.c b/options.c
index 9ffc09fc..67da077e 100644
--- a/options.c
+++ b/options.c
@@ -49,6 +49,7 @@ enum {
LA_FETCHSIZELIMIT,
LA_FASTUIDL,
LA_LIMITFLUSH,
+ LA_IDLE,
};
/* options still left: CgGhHjJoORTWxXYz */
@@ -78,6 +79,7 @@ static const struct option longoptions[] = {
{"protocol", required_argument, (int *) 0, 'p' },
{"proto", required_argument, (int *) 0, 'p' },
{"uidl", no_argument, (int *) 0, 'U' },
+ {"idle", no_argument, (int *) 0, LA_IDLE},
{"port", required_argument, (int *) 0, 'P' },
{"service", required_argument, (int *) 0, 'P' },
{"auth", required_argument, (int *) 0, LA_AUTH},
@@ -334,6 +336,9 @@ struct query *ctl; /* option record to be initialized */
case 'U':
ctl->server.uidl = FLAG_TRUE;
break;
+ case LA_IDLE:
+ ctl->idle = FLAG_TRUE;
+ break;
case 'P':
ctl->server.service = optarg;
break;