git clone https://github.com/prateekkumarweb/imap_smtp_client
cd imap_smtp_client
mkdir build
cd build
cmake ..
cd build
./client
In the cli, multiple commands are available to send, read, delete, etc. mails from differnet mail boxex by connecting to the server. The cli supports terminal like tab completion and history on up and down arrow keys.
create
: Creates a new mailbox using IMAP protocol.delete
: Deletes a mail of given uid from a given mail using IMAP protocol.deletemb
: Deletes a given mailbox using IMAP protocol.help
: Lists all the commands.list
: Lists all the mailboxes available offline.move
: Moves a given mail from one mailbox to another using IMAP protocol.noop
: No operation. Just to keep IMAP connection alive.quit
: Quits the CLI.read
: Read a mail stored offline.rename
: Rename a mailbox using IMAP protocol.search
: Search for mails using different criteria using IMAP protocol.send
: Send a mail using SMTP protocol.sync
: Sync mails across mailboxes using IMAP protocol.
- Prateek Kumar
- Vaibhav Sinha