Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Created June 6, 2013 14:00
Show Gist options
  • Save gustavohenrique/5721719 to your computer and use it in GitHub Desktop.
Save gustavohenrique/5721719 to your computer and use it in GitHub Desktop.
playing with gmail via telnet
openssl s_client -crlf -connect imap.gmail.com:993
tag login [email protected] passwordhere
tag list "" "*"
tag select "inbox"
tag fetch 1:3 body[header]
tag fetch 3 body[header]
tag fetch 3 body[text]
tag fetch 2 all
tag fetch 2 fast
tag fetch 2 full
tag fetch 1 (body[header.fields (from to subject date)])
tag fetch 2 rfc822.text
tag search subject "text here"
tag search text "text here"
tag search charset "utf-8" subject "text here"
tag examine inbox.label2
tag select inbox.label2
tag close
tag logout
http://bobpeers.com/technical/telnet_imap
@panioglovadim
Copy link

Could you write what is the command for deleting a message, because "tag delete %d" or "dele %d" or "tag dele %d" were not recognized as commands. Thanks in advance ;)

@sigxcpu76
Copy link

@panioglovadim https://tools.ietf.org/html/rfc3501
Look for \Deleted and EXPUNGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment