Originally Posted by andre1970
...Is there a way to open (e.g.) gmail with a primitive text-based program ....
You could have gmail auto-forward a copy of your emails to another pop3 mail account and then download it to a text-based client.
It is also possible to fetch gmail directly with a pop3 text-client but there are some very specific settings you have to use in your email client to make it work.