ports/115753: [PATCH] sysutils/conky doesn't update mbox count.

Roland Smith rsmith at xs4all.nl
Thu Aug 23 11:30:03 UTC 2007

>Number:         115753
>Category:       ports
>Synopsis:       [PATCH] sysutils/conky doesn't update mbox count.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 23 11:30:02 GMT 2007
>Originator:     Roland Smith
>Release:        FreeBSD 6.2-STABLE amd64
System: FreeBSD slackbox.xs4all.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Aug 9 01:39:44 CEST 2007 rsmith at slackbox.xs4all.nl:/usr/obj/usr/src/sys/RFS amd64

	Conky only re-reads the mailbox after new messages have been
	appended. Not when messages have been deleted and the mailbox has
	been closed (by mutt). This problem has existed for several
	versions of conky.
	Use conky with an mbox-style mailbox.

The following patch fixes the problem. Conky now scans the mbox every 10 
--------------- patch-src-mail.c ---------------
--- src/mail.c.orig	2007-08-23 12:58:14.000000000 +0200
+++ src/mail.c	2007-08-23 12:58:36.000000000 +0200
@@ -107,7 +107,7 @@
 	/* mbox format */
-	if (buf.st_mtime != last_mail_mtime) {
+	if (1) {
 		/* yippee, modification time has changed, let's read mail count! */
 		static int rep;
 		FILE *fp;
--------------- patch-src-mail.c ---------------


More information about the freebsd-ports-bugs mailing list