When the fetchall option is given for imap protocol, the logs show
that all the messages are seen:
$ fetchmail -a -p imap bombay.retortsoft.com
9 messages (9 seen) for shetye at bombay.retortsoft.com.
...
Though this (probably) does not affect the downloading of the mails
later, this message is misleading.
This patch should fix it:
==================================================================
diff -Naur fetchmail-5.8.4.orig/imap.c fetchmail-5.8.4/imap.c
--- fetchmail-5.8.4.orig/imap.c Sat May 12 12:13:25 2001
+++ fetchmail-5.8.4/imap.c Tue May 22 12:18:37 2001
@@ -565,7 +565,8 @@
}
} while
(tag[0] != '\0' && strncmp(buf, tag, strlen(tag)));
- }
+ } else
+ unseen = -1;
*newp = unseen;
expunged = 0;
==================================================================
Sunil Shetye.