adding an extra subreport to a lire report template (was: Re: trying to understand the new config format)

Joost van Baal joostvb at logreport.org
Tue Jun 28 09:29:39 CEST 2005


Hi!

On Tue, Jun 28, 2005 at 12:15:49AM +0200, Matthew Wood wrote:
> Hi all--
> 
> finally upgraded (actually a completely new install) to Lire 2.0.1 after
> using 1.3 for a long time.
> 
> I'm just trying to do something rather simple: get Tracked Users
> functionality back to my email reports.  I note they are not part of the
> email_default.xml template.  In fact, I'm looking to do a report that is
> just Tracked Users.  In the old .cfg file format, this was easy, just
> comment and uncomment lines.  In the new XML style, I can't even read
> where I should put things and where I shouldn't.
> 
> So I guess I need to make a new template, and just use the two reports
> from the 'email' reports directory:
> 
> tracked-recipients.xml
> tracked-senders.xml
> 
> Could someone point me in the direction of where I might learn (I know I
> should learn more about XML :) how to add those two reports to a new
> template?  any help would be appreciated!

What I'd do: copy

/usr/share/lire/templates/email_default.xml to ~/.lire/templates/email.xml .

Add a new

  <param name="section">
   ...
  </param>

stanza.  It could look like this:

  <param name="section">
    <param name="specs">
      <param name="email:tracked-recipients">
        <param name="tracked_email_re">joe.*</param>
      </param>
      <param name="email:tracked-senders">
        <param name="tracked_email_re">ann.*</param>
      </param>
    </param>
    <param name="title">Tracked Users</param>
    <param name="superservice">email</param>
  </param>

I don't think there's an interface in the lire(1) tool to make this more
userfriendly...

Bye,

Joost

-- 
.    .                                        http://logreport.com/
| '.|                        /^LogReport$/
| Lire                                        http://logreport.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.logreport.org/pipermail/questions/attachments/20050628/26f712b7/attachment.bin 


More information about the Questions mailing list