From 30b707bc3633d8442a05a892446dca65d35d76d7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 27 Oct 1997 13:41:01 +0000 Subject: Various minor bug fixes. svn path=/trunk/; revision=1530 --- NEWS | 3 +++ driver.c | 6 +----- fetchmail-FAQ.html | 8 ++++---- fetchmail.c | 5 +++++ imap.c | 10 +++++++++- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/NEWS b/NEWS index a8c2dfdc..81662d2b 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ ------------------------------------------------------------------------------ fetchmail-4.3.3 () * Robert Hardy 's patch to use IMAP EXAMINE in check mode. +* Accommodate the PMDF IMAP server's pickiness about set syntax. + +There are 263 people on fetchmail-friends and 68 on fetchmail-announce. fetchmail-4.3.2 (Wed Oct 22 20:30:14 EDT 1997) * More slow-UIDL patches from Wolfgang Wander. diff --git a/driver.c b/driver.c index 482adbb1..0da54aae 100644 --- a/driver.c +++ b/driver.c @@ -1164,7 +1164,7 @@ int num; /* index of message */ n = stuffline(ctl, buf); if (n != -1) { - sprintf(buf, "\tby %s (fetchmail-%s %s run by %s)\n", + sprintf(buf, "\tby %s (fetchmail-%s %s run for %s)\n", fetchmailhost, RELEASE_ID, protocol->name, @@ -1448,10 +1448,6 @@ const struct method *proto; /* protocol method table */ tagnum = 0; tag[0] = '\0'; /* nuke any tag hanging out from previous query */ ok = 0; - if (errors_to_syslog) - error_init(-1); - else - error_init(poll_interval == 0 && !logfile); /* set up the server-nonresponse timeout */ sigsave = signal(SIGALRM, timeout_handler); diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index e4f8f158..c214eebb 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 1997/10/20 16:51:41 $ +$Date: 1997/10/27 13:41:00 $

Frequently Asked Questions About Fetchmail

@@ -356,7 +356,7 @@ Sadly, there is at present (October 1997) no OTP or APOP-like facility generally available on IMAP servers.


-

G9. Is any special configuration needed to use a dynamic IP address?

+

G9. Is any special configuration needed to use a dynamic IP address?

No. Fetchmail itself doesn't care whether the IP address you use is static (fixed) or dynamic (varying, allocated at connection time by @@ -646,7 +646,7 @@ To determine the address and netmask:

with no netmask specified. (It's possible to configure slirp to present other addresses, but that's the default.) -

  • If you have a static IP address, run `ifconfig ', where +
  • If you have a static IP address, run `ifconfig <device>', where <device> is whichever one you've determined. Use the IP address given after "inet addr:". That is the IP address for your end of the link, and is what you need. You won't need to specify a netmask. @@ -1617,7 +1617,7 @@ will look right.

    Back to Fetchmail Home Page To Site Map -$Date: 1997/10/20 16:51:41 $ +$Date: 1997/10/27 13:41:00 $

    Eric S. Raymond <esr@snark.thyrsus.com>
    diff --git a/fetchmail.c b/fetchmail.c index 4fde4363..7109a69f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -322,8 +322,13 @@ int main (int argc, char **argv) */ #if defined(HAVE_SYSLOG) if (errors_to_syslog) + { openlog(program_name, LOG_PID, LOG_MAIL); + error_init(-1); + } + else #endif + error_init(poll_interval == 0 && !logfile); if (poll_interval) { diff --git a/imap.c b/imap.c index 873aaffc..4729186e 100644 --- a/imap.c +++ b/imap.c @@ -470,7 +470,15 @@ static int imap_getsizes(int sock, int count, int *sizes) { char buf [POPBUFSIZE+1]; - gen_send(sock, "FETCH 1:%d RFC822.SIZE", count); + /* + * Some servers (as in, PMDF5.1-9.1 under OpenVMS 6.1) + * won't accept 1:1 as valid set syntax. Some implementors + * should be taken out and shot for excessive anality. + */ + if (count == 1) + gen_send(sock, "FETCH 1 RFC822.SIZE", count); + else + gen_send(sock, "FETCH 1:%d RFC822.SIZE", count); for (;;) { int num, size, ok; -- cgit v1.2.3