Skip to content

Instantly share code, notes, and snippets.

@vodolaz095
Created December 18, 2024 21:11
Show Gist options
  • Save vodolaz095/ff4653552a64299129a430a3c5e1ace6 to your computer and use it in GitHub Desktop.
Save vodolaz095/ff4653552a64299129a430a3c5e1ace6 to your computer and use it in GitHub Desktop.
check for new email by curl via imap
#!/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