TODO and WHISHLIST (in sparse order):

- Sync virott* with rottlog

- Add to size use of + char: if size is gt specified dimension, file is managed

- Add use of "set +p" when executing actions and scripts?
- Add check to deny use of shell variables in first/last action
- Add exit function (in trap) to mail to admin if used mailopt all 
- maxage:
  +Remove rotated logs older than <count> days. The age is only checked
  +if the logfile is to be rotated. The files are mailed to the
  +configured address if \fBmaillast\fR and \fBmail\fR are configured.
  (se usato come global senza numero il default  1)

- dateext:
  +Archive old versions of log files adding a daily extension like YYYYMMDD
  +instead of simply adding a number.

- Remove restriction about rotate and time related meta-variables.



- Start translation from bash to sh to make port this script to original sh??

- Move 'mailopt all' to main rc config file. Add use of global 'mailopt' 
  parameter accepting parameters (a combination of):
  stat		-> mail statistical results
  all		-> mail all handled logfile in all config files
  monthly	-> mail all handled logfile in monthly config file
  weekly	-> mail all handled logfile in weekly config file
  daily		-> mail all handled logfile in daily config file
  custom	-> mail all handled logfile in custom config file

- Re-add mailopt stat in config files (not rc) to obtain statistical 
  informations about only one file. Must be added another control file
  containing statical informations.

- Something to clean-up old .rtt control files

- Add use of something to handle .@DEF_EXT extension only for compressed logs

- logpart: from second time a log is handled (using B or L) must be cut x 
  Bytes or x Lines from beginning of logfile. (To prevents double archiving
  of same data)

- Add default_period option in main rc file?

- Add a @ERRORSCRIPT metavariable activated by "mailopt err" that add in 
  pre/post rotate scripts something like:
  if [ $? -ne 0 ]; then
    echo "Error in (x)rotate script"|mail -s "error script" $touser
  fi
  It's better to call @ERRORSCRIPT a macro.

- Add a parameter to --checkrc option to choice to allow or not actions 
  and/or scripts

- In actions can be used $TDIR to reference to a temporary dir.
  In TDIR there is the same value expanded in @TEMPDIR in other sections.

- add a CUI and/or a GUI to edit configuration 

- Add a 'permanentinfo' option to search for previously saved informations
  about a logfile. This speed up handling of logfiles and add other
  infos impossbile to use without this.

- Add check in virott* for collect/tarcollect
- Add check on recursive use of "collect" (monthly points to a weekly
  logfile containing a collect directive to a daily log...)

- Add a @X_STOREFILE to use already expanded storefile (to be used
  in postrotate scripts) ????
- Add a @X_STOREDIR to use already expanded storedir (to be used
  in postrotate scripts) ????

- Add a Log2Rot script to convert config files from logrotate to Rot[t]Log

- Add "def[pre,post]rotate" script in main RC file??

- Add use of gettext? 

- Add in install.sh script capability to add a crontab entry for LOG_OWN??

