aboutsummaryrefslogtreecommitdiff
path: root/bin/.local
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-07-24 18:03:14 -0400
committerDaniel <[email protected]>2024-07-24 18:03:14 -0400
commitb2b684d7000418418d15cd83a84aa1d7278f672d (patch)
tree21d069a95f125da4c786f4f01c25d425346ce1b8 /bin/.local
parentc7cafeb8a86f6bc655cca38bb1f630c8b99047e2 (diff)
wip: rewrite checkmail in perl
Diffstat (limited to 'bin/.local')
-rwxr-xr-xbin/.local/bin/scripts/perl/checkmail13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/.local/bin/scripts/perl/checkmail b/bin/.local/bin/scripts/perl/checkmail
new file mode 100755
index 0000000..4530334
--- /dev/null
+++ b/bin/.local/bin/scripts/perl/checkmail
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+my $log_file="$HOME/.cache/checkmail"
+
+sub update_mail {
+ system("mbsync -a");
+ system("notmuch new");
+ # read log file in append mode '>>' and log date synced
+ open(log_file, ">>")
+}