Re: format logwatch reports as html [Solved]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim:
>> Just for the sake of curiosity, what is in that file from
>> the rawhide version?


Claude Jones:
> # cat /usr/share/logwatch/default.conf/html/header.html
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 
> Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd";>
> <html>
> <head>
> <title>Logwatch  $Version  ( $VDate )</title>
> <meta name="generator" content="Logwatch  $Version ( $VDate )">
> <style type="text/css">
>   h1 {color: gray; border-bottom: 3px double silver}
>   h2,h3 {color: gray; border-bottom: 1px solid silver}
>   .ref {padding-left: 1%}
>   .service {padding-left: 1%; font-family: Monospace}
>   .return_link {border-top: 1px; border-bottom: 1px;
>   padding: 1%; margin-top: 1%; margin-bottom: 1%;}
>   .copyright {color: black; border-top: 1px solid grey;
>   border-bottom: 1px solid grey;
>   padding: 1%; margin-top: 1%; margin-bottom: 1%;}
> </style>
> </head>
> <body style="width:90%; margin-left: 5%; margin-right: 5%" bgcolor="#FFFFFF">
> <hr>
> <!-- End header.html -->
> 
> There's also a footer file in that same folder which is called footer.html
> I'm no coder, however. Writing the above would not have been in my 
> skill-set... 

I dare say that, if you didn't mind a plain HTML output, you could have
gotten away with making your own header file of:

<html><title>logwatch output</title><body>

And a footer file of just: </body></html>

It's been my experience that much of the HTML trickery gets ignored in
mail clients, anyway.  For example, although Evolution supports HTML, it
doesn't seem to care about how it presents it.

-- 
(This box runs FC6, my others run FC4 & FC5, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux