aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--driver.c6
-rw-r--r--fetchmail-FAQ.html8
-rw-r--r--fetchmail.c5
-rw-r--r--imap.c10
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 <rhardy@webcon.net>'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 @@
<table width="100%" cellpadding=0><tr>
<td width="30%">Back to <a href="index.html">Fetchmail Home Page</a>
<td width="30%" align=center>To <a href="/~esr/sitemap.html">Site Map</a>
-<td width="30%" align=right>$Date: 1997/10/20 16:51:41 $
+<td width="30%" align=right>$Date: 1997/10/27 13:41:00 $
</table>
<HR>
<H1>Frequently Asked Questions About Fetchmail</H1>
@@ -356,7 +356,7 @@ Sadly, there is at present (October 1997) no OTP or APOP-like facility
generally available on IMAP servers.<P>
<hr>
-<h2><a name="G9">G9. Is any special configuration needed to use a dynamic IP address?</a><h2>
+<h2><a name="G9">G9. Is any special configuration needed to use a dynamic IP address?</a></h2>
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:<p>
with no netmask specified. (It's possible to configure slirp to present
other addresses, but that's the default.)
-<li> If you have a static IP address, run `ifconfig <device>', where <device>
+<li> If you have a static IP address, run `ifconfig &lt;device&gt;', where &lt;device&gt;
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.<p>
<table width="100%" cellpadding=0><tr>
<td width="30%">Back to <a href="index.html">Fetchmail Home Page</a>
<td width="30%" align=center>To <a href="/~esr/sitemap.html">Site Map</a>
-<td width="30%" align=right>$Date: 1997/10/20 16:51:41 $
+<td width="30%" align=right>$Date: 1997/10/27 13:41:00 $
</table>
<P><ADDRESS>Eric S. Raymond <A HREF="mailto:esr@thyrsus.com">&lt;esr@snark.thyrsus.com&gt;</A></ADDRESS>
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;