On Thu, 16 Oct 2008, Trent W. Buck wrote:
> I'm interested in (ab)using fetchmail as a kind of imap biff -- that
> is, I want it to print a line whenever the number of \seen mail in my
> IMAP inbox changes. This nearly works with fetchmail --check --idle,
> but unfortunately it doesn't update when I *remove* mail INBOX:
Please try the attached patch and let me know if it helps.
--
Matthias Andree
Index: driver.c
===================================================================
--- driver.c (Revision 5220)
+++ driver.c (Arbeitskopie)
@@ -1324,7 +1324,7 @@
report(stdout, GT_("Polling %s\n"), ctl->server.truename);
else if (count != 0)
{
- if (newm != -1 && (count - newm) > 0)
+ if (newm != -1 && (count - newm) != 0)
report_build(stdout, ngettext("%d message (%d %s) for %s", "%d messages (%d %s) for %s", (unsigned long)count),
count,
count - newm,