David Guerizec <[EMAIL PROTECTED]> writes:

> Fixed a bug that prevented tmda-pending from displaying summary in
> interactive mode (in default behavior).

This re-introduces the bug of printing all sorts of nonsense in batch
mode, doesn't it?  If neither '-s' nor '-t' are specified, for
instance in a command line like this

$ tmda-pending -bdq -O 30

the full summary will be printed for each message.  But nothing should
be printed!  Maybe we should check self.verbose in Queue.showMessage.

Something like:

    def showMessage(self, M):
        if self.terse:
            self.Print(M.terse(tsv=1))
        elif self.verbose:
            self.Print()
            self.Print(M.summary(self.count, self.total, self.summary))

I think this works because 'verbose' defaults to true, so only if '-q'
has been specified will 'verbose' be false.  Does that make sense to
you?


Tim
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to