Skip to content

Commit

Permalink
add check inbox scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhoy committed Sep 6, 2023
1 parent 301dc50 commit 67b4cbc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bin/check-inbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# Run offline imap, just check the inbox, record that I checked the inbox.

set -e

DATE=`date +%s`

# OFFLINEIMAP=/usr/local/bin/offlineimap
OFFLINEIMAP=offlineimap

echo $DATE >> ~/.check-inbox-data

# Check all of fastmail
$OFFLINEIMAP -a mjh
15 changes: 15 additions & 0 deletions bin/check-inbox-quick
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# Run offline imap, just check the inbox, record that I checked the inbox.

set -e

DATE=`date +%s`

# OFFLINEIMAP=/usr/local/bin/offlineimap
OFFLINEIMAP=offlineimap

echo $DATE >> ~/.check-inbox-data

# fastmail inbox
$OFFLINEIMAP -f INBOX -a mjh

0 comments on commit 67b4cbc

Please sign in to comment.