Skip to content

Instantly share code, notes, and snippets.

@vodolaz095
Created July 27, 2025 22:08
Show Gist options
  • Save vodolaz095/61074a1450917ee7c3d98622934371c7 to your computer and use it in GitHub Desktop.
Save vodolaz095/61074a1450917ee7c3d98622934371c7 to your computer and use it in GitHub Desktop.
Scan IMAP server capabilities using curl
#!/usr/bin/env
curl --url "imaps://imap.example.org/" --user "vodolaz095:******" -X "CAPABILITY"
# CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE ACL RIGHTS=texk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment