(But fetchmail -V reports the timeout option set correctly. Are server
timeouts really broken? We must find a way to test this.)
+ Heads-up!
+
+The .poprc compatibility hack that allows your first user declaration
+per server to omit the "username" keyword. has been causing some
+confusion (see question F3 in the FAQ for details). Use of the
+feature now generates a warning to standard error. In a future
+release, probably 4.0, this hack will be removed and the leading
+`username' token required for every user entry.
+
Release Notes:
------------------------------------------------------------------------------
* -U option to force UIDL use under POP3 (thanks, Ingmar Baumgart).
-There are 249 people on the fetchmail-friends list.
+bugs --
+
+* George Sipe sent a fix for the --monitor code.
+
+There are 261 people on the fetchmail-friends list.
------------------------------------------------------------------------------
fetchmail-3.8 (Fri Mar 7 17:34:02 EST 1997)
------------------------------------------------------------------------------
fetchmail-3.5 (Sat Feb 15 15:19:36 EST 1997)
-Note: The .poprc compatibility hack that allows your first user declaration
-per server to omit the "username" keyword. has been causing some confusion (see
-question F3 in the FAQ for details). Use of the feature now generates a
-warning to standard error. In a future release, probably 4.0, this hack
-will be removed and the leading `username' token required for every user
-entry.
-
features --
* The host that ETRN specifies is now set by the smtphost option.
* Major FAQ reorganization and additions.
+* .poprc-style `user'-less entry now triggers a warning.
+
bugs --
* The counter referred to by the batchlimit option used to count not only
#ifdef linux
+#include <config.h>
#include <stdio.h>
#include <string.h>
#if defined(STDC_HEADERS)
int result;
if (socket_fd < 0 || !stats_file)
- result = -1;
+ result = FALSE;
else
result = _get_ifinfo_(socket_fd, stats_file, ifname, ifinfo);
if (socket_fd >= 0)
/* save interface I/O counts */
{
ifinfo_t ifinfo;
+ struct query *ctl;
/* if not monitoring link, all done */
if (!hp->monitor)
/* get the current I/O stats for the monitored link */
if (get_ifinfo(hp->monitor, &ifinfo))
- hp->monitor_io = ifinfo.rx_packets + ifinfo.tx_packets;
+ /* update this and preceeding host entries using the link
+ (they were already set during this pass but the I/O
+ count has now changed and they need to be re-updated)
+ */
+ for (ctl = querylist; ctl; ctl = ctl->next) {
+ if (!strcmp(hp->monitor, ctl->server.monitor))
+ ctl->server.monitor_io =
+ ifinfo.rx_packets + ifinfo.tx_packets;
+ /* do NOT update host entries following this one */
+ if (&ctl->server == hp)
+ break;
+ }
#ifdef ACTIVITY_DEBUG
(void) error(0, 0, "activity on %s -noted- as %d",
- hp->names->id, hp->monitor_io);
+ hp->monitor, hp->monitor_io);
#endif
}
#ifdef ACTIVITY_DEBUG
(void) error(0, 0, "activity on %s checked as %d",
- hp->names->id, hp->monitor_io);
+ hp->monitor, hp->monitor_io);
#endif
/* if monitoring, check link for activity if it is up */
if (get_ifinfo(hp->monitor, &ifinfo) &&