Tag: email

bash ansi codes to html for html reports from shell script

How many times you have felt that there was some simple way to convert bash ansi escape sequences ( colors as well in terminal ) to html equivalent so that you can send the same as html report in email. Here is simple solution. One way is to use ccze if you are using this for logs – colorize your logs and for more generic solution.

 

dnf install python3-ansi2html.noarch

after this is installed, you can use something like this:

/usr/bin/python3-ansi2html -l -f 12 -i

You can see the help for ansi2html to see what parameters mean and which ones suit you best ūüôā

sysreporter on Fedora – basic system report in email

From the packages github page:

 

SysReporter

SysReporter (System Reporter) is a bash script that runs and aggregates a set of reports about its host system. The report can then be emailed to the system administrator on a daily, hourly, minutely basis.

and from dnf info

Name        : sysreporter
Arch        : noarch
Epoch       : 0
Version     : 3.0.4
Release     : 1.fc24
Size        : 17 k
Repo        : @System
From repo   : updates
Summary     : Basic system reporter with emailing
URL         : https://github.com/onesimus-systems/sysreporter
License     : MIT
Description : Basic system reporter with emailing

To install the package:

dnf install sysreporter

 

and to run :

sysreport run email
# OR
sysreport run stdout

 

geary mail – gnome mail client

A new mail client is coming in town.

Gnome is working on new mail client called geary. Currently only supports imap accounts.

Description:

              Geary is a new email reader for GNOME designed to let you read your
email quickly and effortlessly. Its interface is based on
conversations, so you can easily read an entire discussion without
having to click from message to message. Geary is still in early
development and has limited features today, but we’re planning to add
drag-and-drop attachments, lightning-fast searching, multiple account
support and much more. Eventually we’d like Geary to have an
extensible plugin architecture so that developers will be able to add
all kinds of nifty features in a modular way.

So, do keep a watch on the client. The looks of the client are very nice and I liked the interface too much. Waiting for them to support more type of accounts and also support configuration of authentication types.