Debian Bug report logs - #312460
fetchyahoo: Bad warning about reaching "100% of your 10MB limit"

version graph

Package: fetchyahoo; Maintainer for fetchyahoo is Don Armstrong <don@debian.org>; Source for fetchyahoo is src:fetchyahoo (PTS, buildd, popcon).

Reported by: Hamish <hamish_nospam@yahoo.com>

Date: Wed, 8 Jun 2005 10:03:01 UTC

Severity: minor

Tags: patch

Found in version 2.8.6-5

Fixed in versions 2.8.7-1, fetchyahoo/2.8.8-1

Done: Chris Lawrence <lawrencc@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Chris Lawrence <lawrencc@debian.org>:
Bug#312460; Package fetchyahoo. (full text, mbox, link).


Acknowledgement sent to Hamish <hamish_nospam@yahoo.com>:
New Bug report received and forwarded. Copy sent to Chris Lawrence <lawrencc@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Hamish <hamish_nospam@yahoo.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: fetchyahoo: Bad warning about reaching "100% of your 10MB limit"
Date: Wed, 08 Jun 2005 21:47:22 +1200
Package: fetchyahoo
Version: 2.8.6-5
Severity: minor
Tags: patch

Fetchyahoo is giving me erroneous error messages such as:

Warning: You are using 100% of your 10MB limit (warning-level=80%).

The "10MB" limit jumps around depending on the stochasticity.


I have "warning-level = 80" set in ~/.fetchyahoorc.

The cause is Yahoo's box limit upping to 2GB. The parser looks for "MB".

Here's a patch:
--- /usr/bin/fetchyahoo 2005-04-11 16:07:57.000000000 +1200
+++ fetchyahoo  2005-06-08 21:41:26.000000000 +1200
@@ -625,13 +625,13 @@
     MyDie("Failed: Yahoo user $username does not exist\n");
 }

-# parses out quota used/limit (by looking for 'xx% ... xxMB')
-if ( $content =~ /(\d+(?:\.\d+)?)%.+?(\d+(?:\.\d+)?)MB/ ) {
+# parses out quota used/limit (by looking for 'xx% ... xxGB')
+if ( $content =~ /(\d+(?:\.\d+)?)%.+?(\d+(?:\.\d+)?)GB/ ) {
   my ($percentUsed, $limitMB) = ($1, $2);
-  printf "You are using %s%% of your %sMB limit.\n", $percentUsed, $limitMB
+  printf "You are using %s%% of your %sGB limit.\n", $percentUsed, $limitMB
     unless $quiet;
   if( $warningLevel && $percentUsed >= $warningLevel){
-    printf "Warning: You are using %s%% of your %sMB limit ".
+    printf "Warning: You are using %s%% of your %sGB limit ".
         "(warning-level=%d%%).\n", $percentUsed, $limitMB, $warningLevel
         unless $noerrors;
   }



thanks,
Hamish



Reply sent to Chris Lawrence <lawrencc@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Hamish <hamish_nospam@yahoo.com>:
Bug acknowledged by developer. (full text, mbox, link).


Message #10 received at 312460-done@bugs.debian.org (full text, mbox, reply):

From: Chris Lawrence <lawrencc@debian.org>
To: 312460-done@bugs.debian.org
Subject: Fixed in 2.8.7-1
Date: Mon, 21 Aug 2006 16:26:41 -0500
Package: fetchyahoo
Version: 2.8.7-1

This bug is fixed in fetchyahoo 2.8.7 and later; closing.


Chris
-- 
Chris Lawrence <lawrencc@debian.org> - http://blog.lordsutch.com/



Marked as fixed in versions fetchyahoo/2.8.8-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:46 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 29 Nov 2013 07:40:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Oct 11 00:25:09 2017; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.