Date: Thu, 23 Aug 2007 13:13:34 +0200 (CEST) From: Roland Smith <rsmith@xs4all.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/115753: [PATCH] sysutils/conky doesn't update mbox count. Message-ID: <20070823111334.0C8ACB833@slackbox.xs4all.nl> Resent-Message-ID: <200708231130.l7NBU2GK078589@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070823111334.0C8ACB833>