Package: procmeter3
Version: 3.4e-1
Followup-For: Bug #367443
Following up on the previous report with this subject:
It appears that Mutt does not change the mtime of the mailbox when deleting
email; therefore, the 'Update' function in the 'biff' module, which checks
for a changed mtime, never triggers. The included patch will simply check
the mailbox every 'update' seconds (the value is hard-wired in the module,
and can be re-defined in the ~/.procmeterrc file) and reset the email count
regardless of the mbox mtime.
------------------------------------------------------------------------
*** biff.c.orig 2006-07-10 16:03:48.000000000 -0400
--- biff.c 2006-07-10 16:19:58.000000000 -0400
*************** int Update(time_t now,ProcMeterOutput *o
*** 173,180 ****
count=size=0;
else
{
! if(mtime<buf.st_mtime)
! {
FILE *f=fopen(filename,"r");
count=0;
--- 173,180 ----
count=size=0;
else
{
! // if(mtime<buf.st_mtime)
! // {
FILE *f=fopen(filename,"r");
count=0;
*************** int Update(time_t now,ProcMeterOutput *o
*** 196,202 ****
utimebuf.actime=atime;
utimebuf.modtime=mtime;
utime(filename,&utimebuf);
! }
}
last=now;
--- 196,202 ----
utimebuf.actime=atime;
utimebuf.modtime=mtime;
utime(filename,&utimebuf);
! // }
}
last=now;
------------------------------------------------------------------------
Sincere regards,
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://linuxgazette.net *
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages procmeter3 depends on:
ii libc6 2.3.6-15 GNU C Library: Shared libraries
pi libglib1.2 1.2.10-ximian.2 The GLib library of C routines
ii libgtk1.2 1.2.10-ximian.31 The GIMP Toolkit set of widgets fo
ii libice6 1:1.0.0-3 X11 Inter-Client Exchange library
ii libsm6 1:1.0.0-4 X11 Session Management library
ii libx11-6 2:1.0.0-6 X11 client-side library
ii libxaw7 1:1.0.1-5 X11 Athena Widget library
ii libxext6 1:1.0.0-4 X11 miscellaneous extension librar
ii libxi6 1:1.0.0-5 X11 Input extension library
ii libxmu6 1:1.0.1-3 X11 miscellaneous utility library
ii libxt6 1:1.0.0-5 X11 toolkit intrinsics library
procmeter3 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]