You can use the bash command “curl” to read your imap emails like this: curl –url "imaps://imapserver.somewhere.net" –user "username:password" Note: your password will be visible on the command line, so don’t use this on a public server. So it is actually better to create a file, for instance called secret, then write your password in