how to create and change reports in Lire 20011017 (was: Re: Failed submissions to hibou responder for 10/15/01)

Francis J. Lacoste francis.lacoste at Contre.COM
Fri Oct 26 18:04:35 CEST 2001


On Sat, Oct 20, 2001 at 05:17:00PM +0000, Raghav Sood wrote:
> 
> hi all
> installed logreport on solaris 8 . it gives me a top 10 report. which i
> later modified to give me a top 50 report. but now i want to know if it is
> also possible with logreport to know whom all did a user send mail to in a
> day ??  ie to which all email id's did he send mails to ?? i am using qmail
> as MTA.
> 

Presently, there are no reports that can give you the informations you
want, but is easy to write a report specification for that. I'm
including a "Tracked Sender Email" report specification that I think
gives you what you want. It took 10 minutes to cook up. 

Copy the tracked-sender.xml file to 
<lire-installation-directory>/share/lire/reports/email/tracked-sender.xml

And enable the report by adding the line 

tracked-sender tracked_sender_re=".*"

to your $HOME/.lire/etc/email.cfg (You should have such a file since you
changed to top 10 to a top 50 report. If not, simply copy the file
<prefix>/etc/lire/email.cfg)

You can change the tracked_sender_re parameter to a regular expression
matching the sender you want included in the report. The .* regex
include all sender. 

You will get a report listing all the recipients with the number of 
messages they received for each sender.

Hope this answer your needs.

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tracked-sender.xml
Type: text/xml
Size: 1424 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20011026/a5001607/attachment.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20011026/a5001607/attachment.bin 


More information about the Questions mailing list