We’re going to kick it oldschool and learn how to read and send emails using the command line. Why commandline email? The answer to that question will differ from user to user. For some, it is just less distracting, while others are in the command line anyway.
A practical reason to use it is the efficiency once you get used to searching and indexing. A tool such as Grep, which uses regular expressions, is powerful when used properly. Most of the email clients for the command line have these search features and also index the mails so you can find what you want to read.
If you need to send any logs from your activities, you can also use most clients for this. Any results that you get can be parsed by other tools and then sent in any format you like.
Most emails are just a few paragraphs about a particular subject. Sometimes, though, you need to format your output before you put it in your email. This job takes a few other tools to get right and, in combination, can make reports and other creations look consistent. Despite being command line, you can read HTML and other formats via tools available for this purpose.
Mail in a nutshell
The email protocol is one of the oldest on the internet. It handles both the format of the mails and the communication between nodes. The use of email has been and still is vast – the Linux kernel still has a mailing list as the main developer communication tool.
Understanding the email protocols at a high level is useful when you want to maximise the benefit. With regular clients, everything is set up automatically. Old command-line tools require effort and knowledge. Sending and receiving are two different things!
This story is from the April 2023 edition of Linux Format.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber ? Sign In
This story is from the April 2023 edition of Linux Format.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber? Sign In
Create your first WebSocket service
Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.
Fantastic Mr Firefox
Nick Peers takes a trip down memory lane to reveal the story behind the rise - and slight fall - of Mozilla's popular web browser.
Set up your terminal and email like it's 1983
Jump in the hot terminal time machine with Mats Tage Axelsson who emails from the command line using the latest technology.
Universal layer text effects with GIMP
Posters use them, films and presentations are hard to imagine without them: text effects. Attract attention with Karsten Günther and GIMP.
Jump to a federated social network
Nick Peers reveals how you can get up and running with this free, decentralised and non-profit alternative to Twitter.
Free our SOFTWARE!
Taking anything for granted is dangerous, so Jonni Bidwell and Mike Saunders revisit how the free software movement got started to help free us from proprietary tyranny!
Master RPI.GPIO
Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -
Waveshare Zero to Pi3
Transform your Pi Zero into a Pi 3, they promised Les Pounder, but it's more like adding on go-faster stripes.
The Best OPEN SOURCE Software Ever!
In an attempt to trigger controversy, Michael Reed and Neil Mohr unequivocally state these are the greatest free software apps ever. Probably. We’re just trying to be helpful.
Linux-Mandrake 7
Simplicity and a wide range of applications make this a great distribution for all Linux users.