Bug#367443: procmeter3: The inbox count only goes up, never down

2006-09-04 Thread Benjamin A. Okopnik
[EMAIL PROTECTED] (Andrew M. Bishop) wrote:

> Thanks for the patch, but I don't like it.

[laugh] I'm not surprised; my C skills are extremely rusty through long
neglect. My apologies for applying my dull axe to your code. :)

> Can I propose a different patch that only causes the file to be
> re-read if the modification time or the access time or the size of the
> file changes.  For this particular problem the file size does change,
> so this should pick it up.

Looks like it would work just fine. If this gets folded into the next
update, I think we can call this bug closed.

Thanks for your effort!


Regards,
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#367443: procmeter3: The inbox count only goes up, never down

2006-07-10 Thread Benjamin A. Okopnik
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.0 -0400
--- biff.c  2006-07-10 16:19:58.0 -0400
*** int Update(time_t now,ProcMeterOutput *o
*** 173,180 
 count=size=0;
  else
{
!if(mtimehttp://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-3X11 Inter-Client Exchange library
ii  libsm6  1:1.0.0-4X11 Session Management library
ii  libx11-62:1.0.0-6X11 client-side library
ii  libxaw7 1:1.0.1-5X11 Athena Widget library
ii  libxext61:1.0.0-4X11 miscellaneous extension librar
ii  libxi6  1:1.0.0-5X11 Input extension library
ii  libxmu6 1:1.0.1-3X11 miscellaneous utility library
ii  libxt6  1:1.0.0-5X11 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]



Bug#367443: procmeter3: The inbox count only goes up, never down

2006-05-15 Thread Benjamin A. Okopnik
Package: procmeter3
Version: 3.4e-1
Severity: normal


The inbox count displayed in procmeter3 does not decrease when the
emails are deleted from the inbox, although it does increase when new
email arrives. Relevant ~/.procmeterrc configuration:

--
[Biff]
# label-foreground = blue
text-font = neep-alt-bold-14
foreground = white
run = rmutt
# update = 5

[Biff.Inbox_Count]
label = 
--

Just FYI, here's what the file looks like before and after email
deletion:

--
[EMAIL PROTECTED]:~$ ls -l /var/mail/ben
-rw-rw 1 ben mail 136069 2006-05-15 19:52 /var/mail/ben
[EMAIL PROTECTED]:~$ grep -c '^From ' /var/mail/ben
18
[EMAIL PROTECTED]:~$ ls -l /var/mail/ben
-rw-rw 1 ben mail 131318 2006-05-15 19:52 /var/mail/ben
[EMAIL PROTECTED]:~$ grep -c '^From ' /var/mail/ben
17
--

The first 'ls -l' was executed just before deletion with Mutt; the
second was several minutes after. In both cases, procmeter3 showed '18
emails'.


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-7  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 :he GIMP Toolkit set of widgets fo
ii  libice6 1:1.0.0-3X11 Inter-Client Exchange library
ii  libsm6  1:1.0.0-4X11 Session Management library
ii  libx11-62:1.0.0-6X11 client-side library
ii  libxaw7 1:1.0.1-5X11 Athena Widget library
ii  libxext61:1.0.0-4X11 miscellaneous extension librar
ii  libxi6  1:1.0.0-5X11 Input extension library
ii  libxmu6 1:1.0.1-3X11 miscellaneous utility library
ii  libxt6  1:1.0.0-4X11 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]