From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 23 11:30:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7DDE16A41A for ; Thu, 23 Aug 2007 11:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ACD4C13C46C for ; Thu, 23 Aug 2007 11:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7NBU2ws078594 for ; Thu, 23 Aug 2007 11:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7NBU2GK078589; Thu, 23 Aug 2007 11:30:02 GMT (envelope-from gnats) Resent-Date: Thu, 23 Aug 2007 11:30:02 GMT Resent-Message-Id: <200708231130.l7NBU2GK078589@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roland Smith Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39FBB16A418 for ; Thu, 23 Aug 2007 11:24:37 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id CAECE13C46B for ; Thu, 23 Aug 2007 11:24:36 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id l7NBDY1H052130 for ; Thu, 23 Aug 2007 13:13:34 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0C8ACB833; Thu, 23 Aug 2007 13:13:34 +0200 (CEST) Message-Id: <20070823111334.0C8ACB833@slackbox.xs4all.nl> Date: Thu, 23 Aug 2007 13:13:34 +0200 (CEST) From: Roland Smith To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/115753: [PATCH] sysutils/conky doesn't update mbox count. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roland Smith List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 11:30:03 -0000 >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: