Monitor commands -monitorfile, -monitordir and -monitoremail can be customized using -actionclass option and Java programming.
Customization is simple:
- Add clemail-<version>.jar to your Java development environment CLASSPATH. Add also Java Mail and Jakarta Commons CLI classes to CLASSPATH if you develop custom class for monitor email command (easiest solution is to add all jar-files from lib directory to CLASSPATH).
- Implement interface com.softabar.clemail.options.monitor.IFileChanged for -monitorfile and -monitordir commands. Interface IMailReceived is for -monitoremail command. See JavaDoc.
- Compile your class and package it to a jar-file.
- Add your jar-file to lib-directory where you installed Softabar Command Line Email Client.
- Execute Softabar Command Line Email Client with -actionclass your.class.name option.

































