--- zpm 2014-09-07 21:40:20.610702474 +0200
+++ /usr/local/bin/zpm  2014-09-07 10:32:34.186183103 +0200
@@ -10,6 +10,7 @@
 #                      Put variables in separate config file in /etc/default/
 # 2014-01-27 16:46     Used associative arrays for the mirror disks. Requires Bash 4.0 or higher.
 # 2014-02-22 23:58     Fixed base error in week function.
+# 2014-09-07 10:32     E-mail report even when no errors are found (for Arne, so the scrub is visibly working).
 
 # Todo
 # - add logging functions (to syslog?) for more verbosity
@@ -92,6 +93,16 @@
                                  echo -e "Er werden fouten vastgesteld op \"$zfspool\". Hieronder de meldingen die het systeem doorgaf. \n \n" && \
                                  cat /tmp/"$zfspool" ; 
                                  } | /usr/bin/mailx -s "Statusupdate voor ZFS-pool \"$zfspool\"" "$email"
+                       else
+                               if_en && {
+                                 echo -e "No errors have been found in \"$zfspool\". Scrub completed successfully. \n \n " && \
+                                 cat /tmp/"$zfspool" ;
+                                 } | /usr/bin/mailx -s "Status update for ZFS pool \"$zfspool\"" "$email"
+
+                               if_nl && {
+                                 echo -e "Er werden geen fouten vastgesteld op \"$zfspool\". Controle succesvol uitgevoerd. \n \n " && \
+                                  cat /tmp/"$zfspool" ;
+                                 } | /usr/bin/mailx -s "Statusupdate voor ZFS-pool \"$zfspool\"" "$email"
                        fi
 
                        # Clean up
