[Mailman-Developers] bin/config_list not working as expected (in current CVS)

Barry A. Warsaw barry@zope.com
Mon, 7 Jan 2002 23:54:47 -0500


>>>>> "F" == Fil  <fil@rezo.net> writes:

    | I tried to 
    | # cat > toto
    | bounce_score_threshold = 4.0
    | bounce_info_stale_after = 15
    | bounce_you_are_disabled_warnings = 3
    | bounce_you_are_disabled_warnings_interval = 15

    | # bin/config_list -i toto listname
    | (no error)

    F> then go to http://SERVER/mailman/admin/listname/bounce

    | just to find that 
    | bounce_score_threshold = 4.0
    | bounce_info_stale_after = 0
    | bounce_you_are_disabled_warnings = 3
    | bounce_you_are_disabled_warnings_interval = 0

    F> Only one in two has been taken into account !?

    F> bin/config_list -o - listname gives:

    | bounce_info_stale_after = 1296000
    | bounce_you_are_disabled_warnings_interval = 1296000

Not a bug, actually.  The attributes bounce_info_stale_after and
bounce_you_are_disabled_warnings_interval are stored as a float number
of seconds but are displayed in the web page as an integral number of
days.  This conversion occurs automatically when the web page is
displayed.

So when 15 seconds are converted are converted to an integral number
of days, you get 0 days.  That's also why you see the big numbers when
you print those values out with config_list.

-Barry