diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 06:34:46 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 06:34:46 +0000 |
commit | 65b310a77efb75cd01d355df779cf4721156f89e (patch) | |
tree | 53c41d5c9db2ffeb91546fb12c5071d8fc97e10d /fetchmail.c | |
parent | 2cc82b76e6597d6d5c984a27abf041666ed7aa1b (diff) | |
download | fetchmail-65b310a77efb75cd01d355df779cf4721156f89e.tar.gz fetchmail-65b310a77efb75cd01d355df779cf4721156f89e.tar.bz2 fetchmail-65b310a77efb75cd01d355df779cf4721156f89e.zip |
Implemented support for RFC2177 IDLE command.
svn path=/trunk/; revision=2790
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index faaf52f4..ee2d4ee9 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -972,6 +972,7 @@ static void optmerge(struct query *h2, struct query *h1, int force) FLAG_MERGE(pass8bits); FLAG_MERGE(dropstatus); FLAG_MERGE(mimedecode); + FLAG_MERGE(idle); FLAG_MERGE(limit); FLAG_MERGE(warnings); FLAG_MERGE(fetchlimit); @@ -1138,6 +1139,7 @@ static int load_params(int argc, char **argv, int optind) DEFAULT(ctl->pass8bits, FALSE); DEFAULT(ctl->dropstatus, FALSE); DEFAULT(ctl->mimedecode, FALSE); + DEFAULT(ctl->idle, FALSE); DEFAULT(ctl->server.dns, TRUE); DEFAULT(ctl->server.uidl, FALSE); #ifdef SSL_ENABLE @@ -1673,6 +1675,9 @@ static void dump_params (struct runctl *runp, printf(_(" MIME decoding is %s (mimedecode %s).\n"), ctl->mimedecode ? _("enabled") : _("disabled"), ctl->mimedecode ? "on" : "off"); + printf(_(" Idle after poll is %s (idle %s).\n"), + ctl->idle ? _("enabled") : _("disabled"), + ctl->idle ? "on" : "off"); printf(_(" Nonempty Status lines will be %s (dropstatus %s)\n"), ctl->dropstatus ? _("discarded") : _("kept"), ctl->dropstatus ? "on" : "off"); |