Fedora 6 and Red Hat Enterprise Linux Bible

Running a close second to Web browsers is the e-mail reader (referred to in network standards terms as a Mail User Agent, or MUA). Evolution is the recommended e-mail client for Fedora and RHEL. However, Mozilla Thunderbird is the new kid on the block of e-mail clients .

Other e-mail options include the Sylpheed mail client and the KDE KMail program. There's also a groupware application that comes with KDE called Kontact that includes an e-mail client. Mail programs that have been around in Linux and other UNIX systems since the time when most mail was plain text include mutt, pine, and mail. In other words, there is no shortage of choices for e-mail clients in Linux.

Here are some pros and cons for different e-mail clients that are available for Fedora and RHEL:

After covering some e-mail basics, this section leads you through the steps that allow you to use e-mail with Evolution and Thunderbird. If you are interested in text-based, command-driven mail tools, some of which have been around UNIX systems for many years , you will also find descriptions of many of those commands in this section.

E-mail Basics

E-mail is one of the oldest uses of computer networks - predating the Web by more than 20 years. In fact, e-mail was one of the first applications used to transport information on the Internet, when the Internet consisted of only a few computers.

Today, there are millions of users around the world who have e-mail addresses. Although there are several different styles of e-mail addressing, by far the most popular e-mail address format is the domain style address (used with the Internet and other TCP/IP networks). The e-mail address consists of a user name and domain name , separated by an @ sign. For example:

webmaster@handsonhistory.com

As someone using e-mail, you need an e-mail client (such as Evolution) that enables you to get your e-mail, manage your e-mail messages, and send messages. Although mail messages were originally only plain text, and still are in most cases today, there are some newer features that let you enhance the kinds of content that you can send and receive, such as:

Caution 

To people who use text-based mail clients, HTML content can't be interpreted (it shows up as a bunch of markers that overwhelm the text). In general, don't use HTML in messages that are being distributed to a large group of people (such as in a newsgroup). Also, e-mail was never intended to transport large attachments. For larger files, try copying to an FTP site instead of sending e-mail attachments.

Depending on the e-mail client you are using, e-mail management features let you direct incoming e-mail into different folders and sort messages by date, sender, or other attributes. E-mail sending features let you reply to messages, forward messages, and draw names from an address book or directory server.

Cross-Reference 

If you don't have an e-mail account, you can set up your own e-mail server using Fedora Core. For information on setting up a mail server, see Chapter 19.

If you want to change your default e-mail application in GNOME from Evolution, select System Preferences More Preferences Preferred Applications. When the Preferred Applications window appears, select the Mail Reader tab and choose the mail reader you want from the Select drop-down box. (You can also change your default Web browser and Terminal window from the Preferred Applications window.) In KDE, open the KDE Control Center (kcontrol) and select KDE-Components Choose Components Email program to see a list of e-mail applications you can choose.

Using Evolution e-mail

Evolution is the preferred application for sending and managing e-mail in Fedora Core and RHEL. Fedora Core developers gave it a prime spot on the desktop, just to the right of the System menu and Web browser icon. After you launch Evolution for the first time and run the Startup Assistant, the Evolution window appears, showing the different types of operations you can perform.

Figure 9-6 shows an example of the Evolution window. Evolution is a groupware application, combining several types of applications that help groups of people communicate and work together. The features of Evolution include:

Figure 9-6: Evolution can be used to manage your e-mail, appointments, and tasks.

In the next section, I focus on the Preferences and e-mail features of Evolution.

Setting Evolution Preferences

To really make Evolution your own, you can set preferences that are particular to you, such as how your e-mail is gathered and sorted. You can change Mail Accounts settings by performing the following steps:

  1. From the Evolution main window, select Edit Preferences.

  2. Click Mail Accounts in the left column.

  3. Select the mail account to change and click Edit. The Evolution Account Editor appears.

  4. Here are a few items you may want to change for your e-mail account:

    • Signature - Have a signature appear on every e-mail message you send. Either click the Default signature box and select Autogenerated (to use name and e-mail address as a signature) or click Add New Signature to create a signature in a text editor.

    • Receiving Options - By default, Evolution doesn't check your mail server for your messages unless you ask it to. You can change that by clicking the Automatically check for new mail every … box on the Receiving Options tab, to have Evolution check your mail server for your mail every 10 minutes. Once downloaded, each message is erased from the server. Select Leave messages on server to change that behavior.

    • Automatic copy - You can have every message you send copied to one or more other users. This is a nice feature if you write important e-mail that you want to archive to a different e-mail account. Select the Defaults tab, and then click the check box next to Always Cc or Always Bcc. Next, type the correct e-mail address.

    • Security - To help validate that you are who you say you are and keep your e-mail private, Evolution lets you use PGP/GPG (Pretty Good Privacy/GNU Privacy Guard) encryption keys. Click the Security tab, and then enter your PGP/GPG Key ID. Choose settings for signing and encryption as appropriate.

  5. Click OK to apply the changes.

Receiving, Composing, and Sending e-mail

Evolution offers a full set of features for sending, receiving, and managing your e-mail. The folder bar in the left part of the Evolution window makes it easy to create and use multiple mail folders.

Here are some tips for sending, reading, and receiving mail:

Cross-Reference 

Refer to Chapter 19 for information on using Spamassassin, along with Evolution filters, to sort out spam from your real e-mail messages. Evolution also includes built-in junk e-mail filtering, using Bayesian statistical analysis.

Besides the features mentioned in the previous sections, Evolution supports many common features, such as printing, saving, and viewing e-mail messages in various ways. The help system that comes with Evolution (click the Help button) includes a good manual, FAQ, and service for reporting bugs.

Thunderbird Mail Client

As a companion to its Firefox Web browser, the Mozilla project created the Thunderbird e-mail client. If you installed Thunderbird (thunderbird package) from the Fedora Core media that comes with this book, you can launch it from your Applications menu by selecting Internet Thunderbird Email.

The first time you run Thunderbird, an import wizard opens, allowing you to import preferences, account settings, address books, and other data from other e-mail clients. Have information about your e-mail account (user name, incoming and outgoing servers, and so on) ready so you can enter it before Thunderbird starts up. Figure 9-7 shows an example of the Thunderbird window.

Figure 9-7: Thunderbird is an efficient e-mail client that includes advanced junkmail and message filtering.

In many ways, the layout and selections in the Thunderbird client are similar to those in Evolution. In general, however, Thunderbird seems to offer better performance than Evolution. Here are some features of Thunderbird that may interest you:

After using the Thunderbird e-mail client, the biggest improvement over other graphical e-mail clients I have used is performance. Sorting and searching messages is much faster than I've experienced on other clients. Switching to different mail folders and opening messages also seems to work much faster.

Text-Based Mail Programs

If you don't mind text-based interfaces, or if you are a UNIX person who likes to sort, gre ol , and cat your e-mail, there are still plenty of UNIX-like mail tools around. The mail command itself provides an easy-to-use interface for plain-text messages sent to other users on your UNIX system or on your LAN. There are text-based mail applications, such as the mutt command, that let you handle mail attachments.

Many text-based mail programs have been around for a long time, so they are full of features and have been well debugged . Because they are not used much anymore, however, don't expect them to have the latest spiffy features. As a group, text-based mail clients are not very intuitive. The following sections describe some text-based mail clients.

Tip 

Most of these programs use the value of your $MAIL environment variable as your local mailbox. Usually, that location is /var/spool/mail/ user , where user is your user name. To set your $MAIL so that it points to your Mozilla mailbox (so you can use a text-based mail program or graphical mail client), add the following line to one of your startup files:

export MAIL=$HOME/.mozilla/default/*/Mail/ hostname /Inbox

If you usually use Mozilla for mail, set this variable temporarily to try out some of these mail programs.

Mail Readers and Managers

The mail readers described in the following sections are text-based and use the entire screen. Although some features are different, menu bars show available options right on the screen.

Mutt Mail Reader

Note 

To use the mutt mail reader you must have the mutt software package installed from the DVD or CDs that come with this book.

The mutt command is a text-based, full-screen mail user agent for reading and sending e-mail. The interface is quick and efficient. Type mutt to start the mail program. Click the up and down arrow keys to select from your listed messages. Press Enter to see a mail message and type i to return to the Main menu.

The menu bar indicates how to mark messages for deletion or undelete them, save messages to a directory, or reply to a message. Type m to compose a new message and it opens your default editor (for me, vi) to create the message. Type y to send the message. If you want to read mail without having your fingers leave your keyboard, mutt is a nice choice. (It even handles attachments!)

Pine Mail Reader

Note 

The pine package is not distributed with Fedora or RHEL, but you can get pine from the Pine project site: www.washington.edu/pine/getpine/linux.html . RPM packages for older versions of Fedora or RHEL are available from http://dag.wieers.com/packages/pine .

The pine mail reader is another full-screen mail reader, but it offers many more features than does mutt. With pine, you can manage multiple mail folders. You can also manage newsgroup messages, as well as mail messages. As text-based applications go, pine is quite easy to use. It was developed by a group at the University of Washington for use by students on campus, but has become widely used in UNIX and Linux environments.

Start this mail program by typing pine . The following menu is displayed, from which you can select items by typing the associated letter or using up and down arrows and pressing Enter:

? HELP -Get help using Pine C COMPOSE MESSAGE -Compose and send a message I MESSAGE INDEX -View messages in current folder L FOLDER LIST -Select a folder to view A ADDRESS BOOK -Update address book S SETUP -Configure Pine Options Q QUIT -Leave the Pine program

To read your e-mail, select either I or L . Commands are listed along the bottom of the screen and change to suit the content you are viewing. Left (?) and right (?) arrow keys let you step backward and forward among the pine screens.

Mail Reader

The mail command was the first mail reader for UNIX. It is text-based, but not screen-oriented . Type mail and you will see the messages in your mailbox. Because mail is not screen-oriented, you just get a prompt after message headings are displayed - you are expected to know what to do next. (You can use the Enter key to step through messages.) Type ? to see which commands are available.

While in mail , type h to see mail headings again. Simply type a message number to see the message. Type d# (replacing # with a message number) to delete a message. To create a new message, type m . To respond to a message, type r# (replacing # with the message number). Type man mail to learn more about the mail command.

Категории