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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 23 11:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Roland Smith
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
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


	
>Description:
	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.
>How-To-Repeat:
	Use conky with an mbox-style mailbox.
>Fix:

The following patch fixes the problem. Conky now scans the mbox every 10 
seconds.
--------------- 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 @@
 	}
 #endif
 	/* 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 ---------------



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list