Open Bug 103865 Opened 23 years ago Updated 2 years ago

Improve Filter Logging - add archive filter log capability

Categories

(MailNews Core :: Filters, enhancement)

enhancement

Tracking

(Not tracked)

Future

People

(Reporter: timeless, Unassigned)

References

(Blocks 1 open bug)

Details

I can split this into a few bugs, but for now i'll describe what i have and what
might be better...

in nc4 i have a mail filter log file it's just over 100mb.
to get that file, i went to edit>message filters, checked the [x] Log Filter Use
option and then collected a lot of mail.
When I want to view the log (well, w/ some account w/ a smaller log...) I click
the <View Log> button.

Adding back the checkbox and the button is 4xp

However it should be noted that a 100mb log file isn't very usable.  

A colleague suggested we implement the behavior from rc5 or at least newsyslog

DESCRIPTION
     Newsyslog is a program that should be scheduled to run periodically by
     cron(8).  When it is executed it archives log files if necessary.  If a
     log file is determined to require archiving, newsyslog rearranges the
     files so that ``logfile'' is empty, ``logfile.0'' has the last period's
     logs in it, ``logfile.1'' has the next to last period's logs in it, and
     so on, up to a user-specified number of archived logs.  Optionally the
     archived logs can be compressed to save space.

     A log can be archived for three reasons:

           1.   It is larger than the configured size (in kilobytes).

           2.   A configured number of hours have elapsed since the log was
                last archived.

           3.   This is the specific configured hour for rotation of the log.
--RC5 has the additional option of FIFO logging where it will delete some
records from the front to make space for new entries (this option is also
available in NT's logging system).

in mozilla it appears i can only enable filter logging by quiting mozilla
changing the rules.dat and running mozilla again...
timeless, implementing the Filter Log feature is included in the Message Filter 
spec here: http://www.mozilla.org/mailnews/specs/filters/#Msg Filters D

Its slightly different than 4.x, but very similar. A "Filter Log" button opens a 
dialog (http://www.mozilla.org/mailnews/specs/filters/images/FilterE1.gif) which 
allows the user to enable/disable the filter log and view the contents of the 
log. (it moves the Enable check box to the Filter Log dialog so users who don't 
care about this feature don't see it on the Main filter dialog).

Maybe getting the basic filter log ui to work is one bug and then adding the 
enhancements you suggest is a second bug?  

Potentially the enhancements you mention could be control from this "Filter Log" 
dialog. 
Target Milestone: --- → Future
mass re-assign.
Assignee: naving → sspitzer
Product: MailNews → Core
boiling down to one issue
Assignee: sspitzer → nobody
QA Contact: laurel → filters
Summary: Improve Logging → Improve Logging - add archive capability
Product: Core → MailNews Core
Blocks: tb-logging
Summary: Improve Logging - add archive capability → Improve Filter Logging - add archive filter log capability
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.