Created
December 18, 2024 21:11
-
-
Save vodolaz095/ff4653552a64299129a430a3c5e1ace6 to your computer and use it in GitHub Desktop.
check for new email by curl via imap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
auth="username:password" | |
host=imaps://imap.example.org | |
curl -u $auth $host -X 'LIST "" "*"' | |
curl -u $auth $host -X 'STATUS INBOX (MESSAGES)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment