This is the announceEmail.pl that works
authorAndrew DeFaria <Andrew@DeFaria.com>
Fri, 7 Jan 2022 18:17:02 +0000 (10:17 -0800)
committerAndrew DeFaria <Andrew@DeFaria.com>
Fri, 7 Jan 2022 18:17:02 +0000 (10:17 -0800)
bin/announceEmail.pl
web/Resumes/Andrew/cPanel.png [new file with mode: 0644]

index 073e039..3b9d52a 100755 (executable)
@@ -262,9 +262,9 @@ sub MonitorMail() {
     if ($hour >= 7) {
       $log->msg($logmsg);
       $log->dbug("Calling speak");
     if ($hour >= 7) {
       $log->msg($logmsg);
       $log->dbug("Calling speak");
-      speak $msg;
+      speak $msg, $log;
     } else {
     } else {
-      $log->msg("$logmsg [silent]");
+      $log->msg("$logmsg [silent nighttime]");
     } # if
 
     $unseen{$_} = 1;
     } # if
 
     $unseen{$_} = 1;
@@ -274,7 +274,7 @@ sub MonitorMail() {
   my $startTime = time;
 
   # Re-establish callback
   my $startTime = time;
 
   # Re-establish callback
-  $log->msg("Calling IMAP->idle");
+  $log->dbug("Calling IMAP->idle");
   eval {
     $IMAP->idle(\&MonitorMail, $opts{timeout})
   };
   eval {
     $IMAP->idle(\&MonitorMail, $opts{timeout})
   };
diff --git a/web/Resumes/Andrew/cPanel.png b/web/Resumes/Andrew/cPanel.png
new file mode 100644 (file)
index 0000000..9b82168
Binary files /dev/null and b/web/Resumes/Andrew/cPanel.png differ